/* =========================
INVIYA - Internal Pages Styling
========================= */

/* Brand Page Hero Optimizations */
.brand-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: grid;
  place-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--color-deep-navy);
}

.brand-hero-section * {
  color: white;
}

@media (min-width: 767px) {

  .brand-hero-section .container {
    display: grid;
    place-content: center;
  }
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-hero-section:hover .hero-bg-img {
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /*background: linear-gradient(90deg, rgba(0, 37, 90, 0.9) 0%, rgba(0, 37, 90, 0.4) 50%, rgba(0, 37, 90, 0.2) 100%);*/
  z-index: 2;
}

.brand-hero-section .container {
  position: relative;
  z-index: 10;
}

.brand-hero-section .hero-content {
  max-width: 800px;
}

.brand-hero-section .page-title {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
}


.page-hero {
  background: var(--color-deep-navy);

}

.page-hero .container {
  display: grid;
  place-content: center center;
  text-align: center;
  justify-items: center;
}

.page-hero .container * {
  color: white;
}

.brand-hero-section .page-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  max-width: 45ch;
  margin: 0;
  text-align: left;
}

.info-block,
.contact-info {
  display: grid;
  gap: 15px;

}

.page-content {
  padding: 160px 0;
  /* Increased breathing space */
  background: var(--bg-secondary);
}

.article-main-content *,
.article-main-content .content-section * {
  font-family: var(--font-primary) !important;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  /* Larger cards */
  gap: 20px;
  /* Increased gap */
}

.resource-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-core-blue);
}

.resource-icon {
  width: 60px;
  height: 60px;
  background: var(--color-light-grey);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--color-core-blue);
}

.resource-icon svg {
  width: 30px;
  height: 30px;
}

.resource-image {
  width: 100%;
  /* height: 200px; */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-deep-blue);
  text-align: center;
  padding-bottom: 10px;
}

.resource-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--color-light-grey);
  color: var(--color-core-blue);
  border-radius: var(--radius-button);
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-download:hover {
  background: var(--color-core-blue);
  color: var(--color-white);
}

.btn-download svg {
  width: 18px;
  height: 18px;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Brand Specific Styling - Immersive Systems */

/* ECOModa100 - Sustainable & Soft */
.brand-page-ecomoda {
  --brand-primary: var(--color-ecomoda);
  --brand-bg: #f7fff2;
}

.brand-page-ecomoda #brand-hero {
  background: var(--brand-bg);
  color: var(--color-deep-navy);
  position: relative;
  overflow: hidden;
}

.brand-page-ecomoda .hero-content {
  z-index: 10;
}

.brand-page-ecomoda .organic-blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(126, 195, 82, 0.2) 0%, rgba(126, 195, 82, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(60px);
}

/* BLAKC - Technical & Powerful */
.brand-page-blakc {
  --brand-primary: var(--color-blakc);
  --brand-bg: #000000;
}

.brand-page-blakc #brand-hero {
  background: var(--brand-bg);
  color: var(--color-white);
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
}

/* Immersive Grid */
.immersive-grid {
  display: grid;

  gap: var(--space-xl);
  align-items: center;
}

.immersive-content {
  grid-column: 1 / 7;
}

.immersive-visual {
  grid-column: 7 / 13;
  position: relative;
}

/* Dyeable I-500 - Lab & Research Inspired */
.brand-page-dyeable {
  --brand-primary: var(--color-core-blue);
  --brand-bg: #f4f7f9;
}

.brand-page-dyeable #brand-hero {
  background: var(--brand-bg);
  background-image: radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.05) 1px, transparent 0);
  background-size: 40px 40px;
}

.lab-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 105, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 105, 200, 0.05) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
}

.tech-spec-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 105, 200, 0.1);
  border: 1px solid var(--color-core-blue);
  color: var(--color-core-blue);

  font-size: 0.7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Immersive Listing Grid */

.pagination-wrapper {
  display: flex;
  margin: 20px;
  justify-content: center;
  gap: 10px;
}

.listing-card {
  position: relative;
  /* Taller cards for cinematic look */
  overflow: hidden;
  border-radius: 10px;
  /* Softer corners */
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.15);
}

.listing-card:hover {
  transform: translateY(-20px) scale(1.02);

}

.listing-card img {
  /* width: 100%;
    height: 100%;
    object-fit: cover; */
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.listing-card:hover img {
  transform: scale(1.1);
}

.listing-card-content {

  padding: 20px;
  /* More breathing space inside card */

  z-index: 2;
}

.listing-card-content h3 {
  font-size: 2.2rem;
  /* Larger title */
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .immersive-list-grid {
    grid-template-columns: 1fr;
  }

  .immersive-content {
    grid-column: 1 / 8;
  }

}


/*------------- pages ------------*/

.fs-root {
  position: relative;
  width: 100%;
  min-height: 90vh;
  height: 90vh;

  overflow: hidden;

}

/* BG IMAGE */
.fs-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.fs-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fs-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(0 37 90) 0%, rgb(0 0 0 / 0%) 50%, rgb(0 0 0 / 0%) 100%);
}

/* CONTENT */
.fs-content {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: min(440px, 40%);
}

.fs-num {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
  display: block;
  font-weight: 500;
}

.fs-title {

  font-size: clamp(36px, 5vw, 60px);
  color: #fff;
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.fs-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  max-height: 110px;
  overflow-y: auto;
  padding-right: 6px;
}

.fs-desc::-webkit-scrollbar {
  width: 3px;
}

.fs-desc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* PROGRESS BAR */
.fs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 20;
  width: 0%;
}

/* THUMB TRACK WRAPPER */
.fs-thumb-outer {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(620px, 52%);
  z-index: 15;
  padding-bottom: 16px;
}

/* ARROWS */
.fs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.25s;
  user-select: none;
  line-height: 1;
}

.fs-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.fs-arrow-left {
  left: 4px;
}

.fs-arrow-right {
  right: 4px;
}

/* THUMB SCROLL TRACK */
.fs-thumb-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 36px 0 36px;
}

.fs-thumb-track::-webkit-scrollbar {
  display: none;
}

/* CARD */
.fs-card {
  flex: 0 0 140px;
  width: 140px;
  height: 185px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(.22, 1, .36, 1), border-color 0.3s;
  position: relative;
  background: #111;
}

.fs-card.active {
  transform: translateY(-12px);
  border-color: rgba(255, 255, 255, 0.4);
}

.fs-card:hover:not(.active) {
  transform: translateY(-5px);
}

.fs-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.fs-card:hover img {
  transform: scale(1.06);
}

.fs-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%);
}

.fs-card-info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
}

.fs-card-info span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
  font-weight: 500;
  text-transform: uppercase;
}

.fs-card-info h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* DOTS */
.fs-dots {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 5%;
  bottom: 22px;
  z-index: 15;
}

.fs-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s;
  cursor: pointer;
}

.fs-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 4px;
}

/* MOBILE */
@media(max-width:700px) {
  .immersive-visual {
    display: none;
  }

  .brand-hero-section {
    height: 70vh !important;
  }

  .fs-root {
    height: auto;
    min-height: 50vh;
    padding-bottom: 215px;
  }

  .fs-content {
    left: 0;
    right: 0;
    width: 100%;
    top: auto;
    bottom: 200px;
    transform: none;
    padding: 0 20px;
  }

  .fs-thumb-outer {
    width: 100%;
    left: 0;
    right: 0;
    padding-bottom: 12px;
  }

  .fs-thumb-track {
    padding: 0 32px;
  }

  .fs-card {
    flex: 0 0 110px;
    width: 110px;
    height: 148px;
    border-radius: 14px;
  }

  .fs-card.active {
    transform: translateY(-7px);
  }

  .fs-dots {
    bottom: 12px;
  }

  .fs-title {
    font-size: 34px;
  }
}