/* ── Subpage Hero ── */
.subpage-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 280px;
  padding-bottom: 90px;
  padding-left: 5vw;
  padding-right: 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: 
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(23, 184, 174, 0.16) 0%, transparent 80%),
    linear-gradient(180deg, rgba(7, 11, 17, 0.85) 0%, var(--void) 100%),
    url('../Temsil/hii.png');
  background-size: cover;
  background-position: center 70%;
}

.subpage-hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.subpage-hero .hero-subtitle {
  font-size: 15px;
  color: var(--teal);
  font-family: 'Outfit', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

/* ── Page Layout: Sidebar + Content ── */
.rep-page-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 70vh;
}

/* ── Sidebar ── */
.rep-sidebar {
  position: sticky;
  top: 160px;
  height: fit-content;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 32px 12px 32px 2vw;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.rep-sidebar h3 {
  font-family: 'Outfit', sans-serif !important;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel-light);
  margin-bottom: 20px;
  padding-left: 16px;
}

.rep-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rep-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif !important;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.rep-sidebar-nav li a img {
  width: 90px;
  height: 42px;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
  padding: 3px;
  flex-shrink: 0;
}

.rep-sidebar-nav li a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.rep-sidebar-nav li a.active {
  color: var(--teal-bright);
  background: rgba(23, 184, 174, 0.06);
  border-color: rgba(23, 184, 174, 0.15);
}

.rep-sidebar-nav li a.active img {
  box-shadow: 0 0 8px rgba(23, 184, 174, 0.3);
}

/* ── Content Area ── */
.rep-content-area {
  padding: 48px 5vw 100px 48px;
}

.rep-panel {
  display: none;
  animation: fadeInPanel 0.4s ease;
}

.rep-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel header */
.rep-panel-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rep-panel-logo {
  width: 290px;
  height: 130px;
  background: #ffffff !important;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.rep-panel-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rep-panel-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  text-transform: none;
  line-height: 1.2;
  letter-spacing: 0;
}

.rep-panel-title .rep-tag {
  font-family: 'Outfit', sans-serif !important;
  font-size: 12px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Panel body */
.rep-panel-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.rep-panel-body p.lead {
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
}

.rep-panel-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 16px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.rep-panel-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.rep-panel-body ul li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rep-panel-body ul li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: var(--teal);
  font-size: 18px;
  font-weight: 700;
}

/* Featured image */
.rep-featured-img {
  margin: 32px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  max-height: 420px;
}

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

/* Info chips row */
.rep-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.rep-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(23, 184, 174, 0.06);
  border: 1px solid rgba(23, 184, 174, 0.15);
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'Outfit', sans-serif !important;
  font-size: 12px;
  color: var(--teal-bright);
  letter-spacing: 0.02em;
}

/* ── Mobile Sidebar ── */
.rep-mobile-select {
  display: none;
  padding: 20px 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rep-mobile-select select {
  width: 100%;
  padding: 14px 18px;
  background: var(--panel-raised);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px;
  font-weight: 500;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2317b8ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .subpage-hero { padding-top: 200px; }
  .rep-page-layout {
    grid-template-columns: 1fr;
  }
  .rep-sidebar {
    display: none;
  }
  .rep-mobile-select {
    display: block;
  }
  .rep-content-area {
    padding: 40px 5vw 80px;
  }
}

@media (max-width: 580px) {
  .subpage-hero h1 { font-size: 28px; }
  .subpage-hero { padding-top: 160px; padding-bottom: 60px; }
  .rep-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .rep-panel-logo {
    width: 80px;
    height: 80px;
  }
}

/* ── Panel Photo Carousel ── */
.rep-carousel {
  margin-top: 36px;
  margin-bottom: 28px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-raised);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rep-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  overflow: hidden;
  background: #04070b;
}

.rep-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.rep-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.rep-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rep-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 11, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.rep-carousel-btn:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.rep-carousel-btn.prev {
  left: 16px;
}

.rep-carousel-btn.next {
  right: 16px;
}

.rep-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  background: rgba(7, 11, 17, 0.6);
}

.rep-carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.rep-carousel-dots .dot:hover {
  background: rgba(23, 184, 174, 0.6);
}

.rep-carousel-dots .dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(23, 184, 174, 0.5);
}
