/*
Theme Name: Sai Srinivas
Theme URI: https://www.saisrinivas.net
Author: Sai Srinivas Website Team
Description: A dignified public-facing WordPress theme for Sai Srinivas Lankalapalli.
Version: 1.3.5
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: sai-srinivas
*/

:root {
  --ink: #172033;
  --muted: #607086;
  --line: #d9e1ea;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --deep: #163b56;
  --green: #257064;
  --saffron: #c8792a;
  --red: #a7423d;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.utility-bar {
  position: relative;
  z-index: 51;
  background: #102f45;
  color: #eef6fb;
  font-size: 0.78rem;
  font-weight: 700;
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}

.utility-contact,
.social-links {
  display: flex;
  align-items: center;
}

.utility-contact {
  gap: 22px;
}

.utility-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.utility-contact a:hover {
  color: #ffd991;
}

.utility-contact svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.social-links {
  gap: 6px;
}

.social-links a {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: #ffd991;
  background: #ffd991;
  color: var(--deep);
}

.social-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.social-links .icon-x {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 250px;
}

.brand-logo {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-title {
  color: var(--deep);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--deep);
}

.nav-toggle-lines {
  display: grid;
  gap: 4px;
  width: 20px;
}

.nav-toggle-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: #314056;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--deep);
  background: var(--soft);
}

.menu-item-has-children {
  position: relative;
}

.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -4px 0 0 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 10;
  display: none;
  width: 285px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  list-style: none;
}

.sub-menu a {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  line-height: 1.35;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.section {
  padding: 78px 0;
}

section[id] {
  scroll-margin-top: 78px;
}

.section-soft {
  background: var(--soft);
}

.section-title {
  max-width: 780px;
  margin: 0 0 28px;
  color: var(--deep);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.16;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  font-weight: 800;
}

.button:hover {
  background: #0d2c42;
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--deep);
}

.button.secondary:hover {
  background: var(--soft);
}

.button-notification {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1.5px solid #fff;
  border-radius: 9px;
  background: #e03131;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.7);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(224, 49, 49, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(224, 49, 49, 0);
  }
}

.video-embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 118px);
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(12, 30, 46, 0.96), rgba(18, 58, 71, 0.92) 56%, rgba(37, 112, 100, 0.82)),
    var(--hero-image, linear-gradient(135deg, #163b56, #257064 62%, #c8792a)) center/cover;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--saffron), var(--red));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  gap: 46px;
  align-items: center;
  width: min(100% - 32px, var(--max));
  flex: 1 1 auto;
  margin: 0 auto;
  padding: 30px 0 24px;
}

.hero-content {
  min-width: 0;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-kicker {
  margin: 0 0 18px;
  color: #ffd991;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 800;
}

.hero-role {
  max-width: 690px;
  margin-top: 18px;
  color: #edf5fb;
  font-size: 1.05rem;
  font-weight: 750;
}

.hero-intro {
  max-width: 680px;
  margin-top: 18px;
  color: #dbe7ef;
  font-size: 1rem;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 430px;
}

.hero-photo {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius);
  background: #0d2c42;
  box-shadow: 0 18px 42px rgba(4, 18, 27, 0.28);
}

.hero-photo-main {
  grid-row: 1 / -1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 320ms ease, transform 320ms ease;
}

.hero-photo img.is-changing {
  opacity: 0.22;
  transform: scale(1.02);
}

.hero-photo-main img {
  object-position: 49% center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card,
.post-card,
.gallery-card,
.contact-card,
.value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.stat-card {
  display: block;
  min-width: 0;
  padding: 4px 0 4px 15px;
  border-left: 3px solid var(--green);
}

.stat-card:nth-child(2) {
  border-left-color: var(--saffron);
}

.stat-card:nth-child(3) {
  border-left-color: var(--red);
}

.stat-card:nth-child(4) {
  border-left-color: var(--green);
}

.stat-card:nth-child(5) {
  border-left-color: var(--saffron);
}

.stat-card strong {
  display: block;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 7px;
  color: #dbe7ef;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.hero-stats {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 17px 0 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 22, 33, 0.34);
  backdrop-filter: blur(8px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 48px;
  align-items: start;
}

.profile-panel {
  padding: 30px;
  border-left: 6px solid var(--saffron);
  background: var(--soft);
}

.profile-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.profile-panel dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-panel dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card {
  padding: 28px;
  min-height: 220px;
}

.pillar-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #e4f2ef;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 900;
}

.pillar-card h3,
.post-card h3,
.gallery-card h3 {
  margin: 0 0 10px;
  color: var(--deep);
  font-size: 1.2rem;
  line-height: 1.3;
}

.timeline {
  margin-top: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 12px;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--green) var(--line);
  scrollbar-width: thin;
}

.timeline::-webkit-scrollbar {
  height: 7px;
}

.timeline::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--line);
}

.timeline::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--green);
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  min-width: 1110px;
  height: 430px;
  padding: 0 12px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  left: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--deep);
  transform: translateY(-50%);
}

.timeline-track::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 9px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--deep);
  transform: translateY(-50%);
}

.timeline-item {
  position: relative;
  min-width: 0;
  height: 430px;
  scroll-snap-align: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green);
  transform: translate(-50%, -50%);
}

.timeline-item::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 3px;
  border-radius: 999px;
  background: var(--saffron);
  transform-origin: left center;
}

.timeline-item:nth-child(odd)::after {
  transform: rotate(-54deg);
}

.timeline-item:nth-child(even)::after {
  transform: rotate(54deg);
}

.timeline-year {
  position: absolute;
  right: 6px;
  left: 6px;
  text-align: center;
  color: var(--saffron);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.timeline-item:nth-child(odd) .timeline-year {
  top: 8px;
}

.timeline-item:nth-child(even) .timeline-year {
  bottom: 8px;
}

.timeline-body {
  position: absolute;
  right: 5px;
  left: 5px;
  display: grid;
  min-height: 122px;
  padding: 14px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.timeline-item:nth-child(odd) .timeline-body {
  top: 38px;
}

.timeline-item:nth-child(even) .timeline-body {
  bottom: 38px;
}

.leadership-band {
  background: var(--deep);
  color: #f6fbff;
}

.leadership-band .section-title,
.leadership-band .eyebrow {
  color: #fff;
}

.leadership-band p {
  color: #d9e8f2;
}

.quote-band {
  padding: 70px 0;
  background: #f7efe5;
  color: var(--deep);
}

.quote-band blockquote {
  margin: 0;
  max-width: 980px;
  font-size: clamp(1.85rem, 4vw, 3.4rem);
  font-weight: 850;
  line-height: 1.12;
}

.quote-band cite {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.posts-grid,
.gallery-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  display: grid;
  min-height: 230px;
  padding: 24px;
}

.post-meta {
  color: var(--saffron);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card p,
.gallery-card p,
.pillar-card p {
  color: var(--muted);
}

.gallery-card {
  overflow: hidden;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover {
  border-color: #b8c7d1;
  box-shadow: 0 12px 28px rgba(13, 38, 57, 0.1);
  transform: translateY(-3px);
}

.gallery-card[hidden] {
  display: none;
}

.gallery-grid-full {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-media {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dfe9ef, #f3e7d6);
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-media:hover .gallery-thumb,
.gallery-media:focus-visible .gallery-thumb {
  transform: scale(1.035);
}

.gallery-card-body {
  padding: 16px 18px 18px;
}

.gallery-card-body h3 {
  margin: 5px 0 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.gallery-category {
  margin: 0;
  color: var(--saffron) !important;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.gallery-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.gallery-filter {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--deep);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.gallery-filter:hover,
.gallery-filter:focus-visible,
.gallery-filter.is-active {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}

.gallery-lightbox {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}

.gallery-lightbox::backdrop {
  background: rgba(5, 14, 21, 0.92);
}

.gallery-lightbox-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(80vh, 760px);
}

.gallery-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 24, 36, 0.78);
  color: #fff;
  font: inherit;
  font-size: 1.8rem;
  cursor: pointer;
}

.gallery-lightbox-close {
  top: 0;
  right: 0;
}

.gallery-lightbox-prev {
  left: 8px;
}

.gallery-lightbox-next {
  right: 8px;
}

.gallery-lightbox-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-weight: 750;
}

.gallery-lightbox-count {
  color: #b9c8d2;
  white-space: nowrap;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: #3c4b5f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding: 42px 0 34px;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 0.95rem;
  font-weight: 850;
}

.footer-about {
  max-width: 330px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #53657a;
  font-size: 0.94rem;
}

.footer-links a:hover {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-quote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-quote strong {
  color: var(--deep);
}

.footer-meta {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  text-align: right;
}

.footer-credit {
  font-size: 0.78rem;
}

.footer-credit a {
  color: var(--deep);
  font-weight: 800;
}

.footer-credit a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero {
  padding: 76px 0;
  background: linear-gradient(90deg, #12354e, #236b5f);
  color: #fff;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.content {
  max-width: 900px;
  font-size: 1.04rem;
}

.content h2 {
  margin: 2.4rem 0 0.8rem;
  color: var(--deep);
  font-size: 1.65rem;
  line-height: 1.24;
}

.content ul {
  padding-left: 1.2rem;
}

.value-card {
  padding: 22px;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--deep);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-video {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  width: min(440px, calc(100vw - 44px));
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: #05090c;
  box-shadow: 0 18px 45px rgba(3, 18, 28, 0.32);
}

.floating-video[hidden] {
  display: none;
}

.floating-video-container {
  display: flex;
  flex-direction: row;
  background: #05090c;
  border-radius: 6px;
  overflow: hidden;
  align-items: stretch;
}

.floating-video-sidebar {
  width: 96px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  justify-content: center;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.floating-thumb-btn {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  outline: none;
  transition: all 0.2s ease;
}

.floating-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.floating-thumb-btn .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.floating-thumb-btn .play-overlay svg {
  color: #ffffff;
  opacity: 0.7;
  transition: all 0.2s ease;
}

/* Active state */
.floating-thumb-btn.is-active {
  border-color: var(--saffron);
  box-shadow: 0 0 10px rgba(242, 101, 34, 0.7);
}

.floating-thumb-btn.is-active img {
  opacity: 0.9;
}

.floating-thumb-btn.is-active .play-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.floating-thumb-btn.is-active .play-overlay svg {
  color: var(--saffron);
  opacity: 1;
  transform: scale(1.1);
}

/* Hover state */
.floating-thumb-btn:hover:not(.is-active) img {
  opacity: 0.8;
}

.floating-thumb-btn:hover:not(.is-active) .play-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.floating-thumb-btn:hover:not(.is-active) .play-overlay svg {
  color: #ffffff;
  opacity: 1;
}

.floating-video-player-wrapper {
  flex-grow: 1;
  position: relative;
}

.floating-video-player,
.floating-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 5px;
  background: #000;
}


.floating-video-close {
  position: absolute;
  top: -13px;
  right: -13px;
  z-index: 2;
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #102f43;
  color: #fff;
  box-shadow: 0 5px 16px rgba(3, 18, 28, 0.28);
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.floating-video-close:hover,
.floating-video-close:focus-visible {
  background: #b5483f;
}

.subject-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.folder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  text-decoration: none;
  color: inherit;
}

.folder-card:hover:not(.is-disabled) {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(37, 112, 100, 0.06);
}

.folder-icon {
  width: 56px;
  height: 56px;
  color: #c8792a;
  margin-bottom: 16px;
  transition: transform 180ms ease;
}

.folder-card:hover:not(.is-disabled) .folder-icon {
  transform: scale(1.08);
}

.folder-card.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.folder-card.is-disabled .folder-icon {
  color: var(--muted);
}

.folder-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--deep);
  margin: 0 0 6px;
}

.folder-meta {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.folder-badge-soon {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 8px;
}

.document-browser {
  margin-top: 24px;
}

.browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.browser-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 180ms ease;
}

.browser-back-btn:hover {
  background: var(--soft);
  color: var(--deep);
}

.browser-subject-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--deep);
  margin: 0;
}

.browser-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
}

.browser-files-section {
  min-width: 0;
}

.browser-tabs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.browser-tab-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.browser-tab-btn:hover {
  background: var(--soft);
  color: var(--deep);
}

.browser-tab-btn.is-active {
  background: var(--soft);
  color: var(--deep);
  border-color: var(--line);
}

.file-rows-list {
  display: grid;
  gap: 12px;
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.file-row:hover {
  transform: translateY(-1px);
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(37, 112, 100, 0.04);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.file-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #fdf2f2;
  color: var(--red);
  flex-shrink: 0;
}

.file-details {
  min-width: 0;
}

.file-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep);
  margin: 0;
  line-height: 1.3;
}

.file-name a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.file-name a:hover {
  color: var(--green);
}

.file-meta-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.file-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 180ms ease;
  flex-shrink: 0;
}

.file-action-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.tet-empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--muted);
}

.tet-empty-state-icon {
  font-size: 2.2rem;
  color: var(--line);
  margin-bottom: 12px;
}

.tet-empty-state p {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .primary-menu a {
    width: 100%;
  }

  .menu-item-has-children > a::after {
    display: none;
  }

  .sub-menu {
    position: static;
    display: grid;
    width: auto;
    margin: 0 0 4px 14px;
    padding: 2px 0 2px 12px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .sub-menu a {
    min-height: 38px;
    color: var(--muted);
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 0 28px;
  }

  .hero-visual {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 1fr;
    height: 230px;
  }

  .hero-photo-main {
    grid-row: auto;
  }

  .hero-stats {
    overflow-x: auto;
  }

  .hero-stats .stats-grid {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 18px;
  }

  .hero-stats .stat-card {
    flex: 0 0 190px;
  }

  .split,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .posts-grid,
  .gallery-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-quote {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }

  .browser-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .browser-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 0;
    padding-bottom: 16px;
    order: -1;
  }

  .browser-tab-btn {
    width: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .floating-video {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(320px, calc(100vw - 24px));
  }

  .floating-video-sidebar {
    width: 76px;
    padding: 6px;
    gap: 6px;
  }

  .floating-video-close {
    top: -10px;
    right: -10px;
  }

  .utility-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 12px;
    padding: 7px 0;
  }

  .utility-contact {
    width: 100%;
    justify-content: center;
    gap: 14px;
    font-size: 0.72rem;
  }

  .social-links {
    justify-content: center;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-title {
    font-size: 0.94rem;
  }

  .brand-subtitle {
    max-width: 205px;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(12, 30, 46, 0.86), rgba(12, 30, 46, 0.74)),
      var(--hero-image, linear-gradient(135deg, #163b56, #257064 62%, #c8792a)) center/cover;
  }

  .hero-inner {
    width: min(100% - 24px, var(--max));
    gap: 18px;
    padding: 34px 0 30px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .hero-role {
    margin-top: 14px;
    font-size: 0.94rem;
  }

  .hero-intro {
    margin-top: 14px;
    font-size: 0.94rem;
  }

  .hero-content .btn-row {
    margin-top: 20px;
  }

  .hero-visual {
    order: -1;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.3fr 0.8fr;
    gap: 8px;
    height: 180px;
  }

  .hero-photo-main {
    grid-column: 1 / -1;
  }

  .pillars-grid,
  .posts-grid,
  .gallery-grid,
  .values-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox {
    width: calc(100% - 20px);
  }

  .gallery-lightbox-frame {
    min-height: 70vh;
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 8px;
  }

  .gallery-lightbox-meta {
    padding: 0 4px;
    font-size: 0.88rem;
  }

  .timeline {
    margin-right: -12px;
    padding-right: 12px;
  }

  .timeline-track {
    grid-template-columns: repeat(7, 150px);
    min-width: 1122px;
  }
}

/* Announcement Popup Modal */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.popup-modal {
  position: relative;
  background-color: transparent;
  max-width: 540px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.is-active .popup-modal {
  transform: scale(1);
}

.popup-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.popup-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.popup-close-btn:hover {
  background-color: rgba(230, 92, 0, 0.9);
  transform: scale(1.1);
}

.popup-close-btn:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

@media (max-width: 576px) {
  .popup-overlay {
    padding: 12px;
  }
  
  .popup-modal {
    max-width: 100%;
  }
  
  .popup-close-btn {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

/* Latest Updates Ticker Bar */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: #FFE600; /* Attention-grabbing yellow */
  color: #111111;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 0;
  box-sizing: border-box;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.05);
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker-slide 32s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-text {
  padding-right: 80px;
  display: inline-block;
  letter-spacing: 0.02em;
}

.ticker-text strong {
  background-color: #000000;
  color: #FFE600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  display: inline-block;
}

.ticker-text a {
  color: #d14100;
  text-decoration: underline;
  margin-left: 12px;
  font-weight: 800;
  transition: color 0.2s ease;
}

.ticker-text a:hover {
  color: #000000;
}

@keyframes ticker-slide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Footer Visitor Counter */
.footer-visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 15px;
}

.footer-visitor-counter .count-val {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--light);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.05em;
}

/* Representations Traditional Cards Grid */
.rep-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 20px;
  text-align: left;
}

@media (min-width: 600px) {
  .rep-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .rep-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rep-card {
  background: var(--light);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.rep-card:hover {
  transform: translateY(-4px);
  border-color: var(--saffron);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.rep-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rep-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.rep-card-badge.pdf-badge {
  background-color: rgba(209, 65, 0, 0.1);
  color: #d14100;
}

.rep-card-badge.img-badge {
  background-color: rgba(10, 37, 64, 0.1);
  color: var(--navy);
}

.rep-card-type-icon {
  color: var(--muted);
  display: flex;
  align-items: center;
}

.rep-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.rep-card-desc {
  font-size: 0.85rem;
  color: var(--dark-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.rep-card-action {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--saffron);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: color 0.2s ease;
}

.rep-card:hover .rep-card-action {
  color: var(--navy);
}

/* Modal Overlay for Images */
.rep-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.rep-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.rep-modal-close:hover {
  background: var(--saffron);
  transform: scale(1.1);
}

.rep-modal-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.rep-modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background-color: #fff;
}

.rep-modal-caption {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* TET Subject Category Switcher Tabs */
.tet-category-tabs {
  display: none;
  gap: 15px;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 8px;
}

.category-tab-btn {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  padding: 6px 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.category-tab-btn:hover {
  color: var(--navy);
}

.category-tab-btn.is-active {
  font-weight: 700;
  color: var(--navy);
}

.category-tab-btn .active-indicator {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--saffron);
  border-radius: 2px;
}

/* WhatsApp/Instagram-style Stories Modal styles */
.story-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.story-viewport {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 780px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

@media (max-width: 480px) {
  .story-viewport {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
}

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

.story-header {
  position: absolute;
  top: 24px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 15;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.story-header * {
  pointer-events: auto;
}

.story-mute-btn {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: background 0.2s;
  pointer-events: auto !important;
}

.story-mute-btn:hover {
  background: rgba(0,0,0,0.8);
}

.story-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 1220;
  transition: opacity 0.2s;
  line-height: 1;
}

.story-close-btn:hover {
  opacity: 0.8;
}

.story-hotspots {
  position: absolute;
  top: 80px;
  bottom: 120px;
  left: 0;
  right: 0;
  display: flex;
  z-index: 5;
}

.story-hotspot-left {
  width: 35%;
  height: 100%;
  cursor: w-resize;
}

.story-hotspot-right {
  width: 65%;
  height: 100%;
  cursor: e-resize;
}

.story-content-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.story-content-container img,
.story-content-container video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Floating Instagram-style Story Bubble */
.floating-story-bubble {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-story-bubble:hover {
  transform: scale(1.08) translateY(-4px);
}

.floating-story-bubble:active {
  transform: scale(0.95);
}

.story-ring {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f26522, #dc3545, #ffc107);
  padding: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s;
}

.floating-story-bubble:hover .story-ring {
  box-shadow: 0 12px 30px rgba(220, 53, 69, 0.4);
}

.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: hidden;
  background: #fff;
}

.story-ring-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-live-badge {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #dc3545;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  animation: badge-pulse 1.5s infinite;
}

.story-bubble-label {
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 95px;
  line-height: 1.1;
}

@media (max-width: 640px) {
  .floating-story-bubble {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .story-ring {
    width: 56px;
    height: 56px;
    padding: 2.5px;
  }
  .story-live-badge {
    font-size: 0.55rem;
    padding: 1px 6px;
  }
  .story-bubble-label {
    font-size: 0.62rem;
    padding: 1px 6px;
    max-width: 80px;
  }
}

@keyframes badge-pulse {
  0% {
    background-color: #dc3545;
  }
  50% {
    background-color: #f26522;
  }
  100% {
    background-color: #dc3545;
  }
}

/* Story Navigation Buttons for Desktop */
.story-nav-btn {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1210;
  transition: all 0.2s ease;
  line-height: 1;
}

.story-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.story-nav-btn.prev {
  left: -60px;
}

.story-nav-btn.next {
  right: -60px;
}

@media (min-width: 580px) {
  .story-nav-btn {
    display: flex;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination-btn, .pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f4f6f8;
  border: 1px solid #e2e8f0;
  color: var(--navy);
  text-decoration: none;
  font-family: inherit;
}

.pagination-btn:hover, .pagination .page-numbers:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.pagination-btn.is-active, .pagination .page-numbers.current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.pagination-btn:disabled, .pagination .page-numbers.prev.disabled, .pagination .page-numbers.next.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}
