@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Space+Grotesk:wght@400;500&display=swap");


.ind {
  --ind-bg: #e6ecf7;
  --ind-ink: #0d1117;
  --ind-collapsed: 1;      
  --ind-expanded: 10;     
  --ind-speed: .6s;
  --ind-ease: cubic-bezier(.4, 0, .2, 1);

  box-sizing: border-box;
  width: 100%;
  padding: 48px 6vw;
  background: var(--ind-bg);
  color: var(--ind-ink);
  font-family: "Inter", sans-serif;
}

.ind *,
.ind *::before,
.ind *::after {
  box-sizing: border-box;
}

/* ---------- Header ---------- */
.ind .ind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 32px;
  padding: 0 16px;

  border: 1px solid #27b9d5;
  border-radius: 16px;

  background: rgba(255,255,255,.35);

  color: #111111;

  font-family: "Geist", sans-serif;

  font-size: 13px;
  font-weight: 400;

  line-height: 1;
  text-transform: uppercase;

  margin-bottom: 8px;
}

.ind .ind-title {
  font-family: "Geist", sans-serif;
  font-weight: 400;
  font-size: clamp(25px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  padding: 0;
  color: #000000;
}

.ind .ind-intro {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 560px;
  margin: 16px 0 28px;
  padding: 0;
  color: #101d40;
}

/* ---------- Accordion ---------- */
.ind .ind-accordion {
  display: flex;
  height: clamp(360px, 42vw, 620px);
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.ind .ind-panel {
  position: relative;
  flex: var(--ind-collapsed) 1 0;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  background-color: #111;
  background-size: cover;
  background-position: center;
  transition: flex-grow var(--ind-speed) var(--ind-ease);
}

/* Replace these with your own images */
.ind .ind-p1 { background-image: url("../assets/industries/11.webp"); }
.ind .ind-p2 { background-image: url("../assets/industries/12.webp"); }
.ind .ind-p3 { background-image: url("../assets/industries/13.webp"); }
.ind .ind-p4 { background-image: url("../assets/industries/14.webp"); }
.ind .ind-p5 { background-image: url("../assets/industries/15.webp"); }

.ind .ind-p6 { background-image: url("../assets/industries/log.webp"); }
.ind .ind-p7 { background-image: url("../assets/industries/bank.webp"); }
.ind .ind-p8 { background-image: url("../assets/industries/ener.webp"); }
.ind .ind-p9 { background-image: url("../assets/industries/media.webp"); }
.ind .ind-p10 { background-image: url("../assets/industries/agri.webp"); }

.ind .ind-panel:hover,
.ind .ind-accordion:not(:hover) .ind-panel:first-child {
  flex-grow: var(--ind-expanded);
}

.ind .ind-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.7) 25%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.25) 80%, transparent 100%);
  pointer-events: none;
}

.ind .ind-label {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: "Inter", sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.1;
  max-height: 60%;
  text-align: left;
  opacity: 1;
  transition: opacity .3s ease;
}

.ind .ind-content {
  position: absolute;
  left: 30px;
  bottom: 26px;
  z-index: 1;
  width: min(440px, calc(100% - 60px));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.ind .ind-content h3 {
  font-family: "Geist", "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px);
  margin: 0 0 12px;
  padding: 0;
  color: #fff;
}

.ind .ind-content p {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.92);
}

.ind .ind-panel:hover .ind-label,
.ind .ind-accordion:not(:hover) .ind-panel:first-child .ind-label {
  opacity: 0;
}

.ind .ind-panel:hover .ind-content,
.ind .ind-accordion:not(:hover) .ind-panel:first-child .ind-content {
  opacity: 1;
  transform: none;
  transition-delay: .25s;   
}

@media (max-width: 768px) {
  .ind .ind-accordion { flex-direction: column; height: 560px; }
  .ind .ind-label {
    writing-mode: horizontal-tb;
    transform: none;
    left: 20px; bottom: auto; top: 50%;
    translate: 0 -50%;
    max-height: none;
  }
  .ind .ind-content { left: 20px; bottom: 18px; width: calc(100% - 40px); }
  .ind .ind-content p { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .ind .ind-panel, .ind .ind-label, .ind .ind-content { transition: none; }
}

/* ---------- Paging: Page A (first 5) -> View More -> Page B (next 5) ----------
   Panel markup: .ind-a = page 1 (panels 1-5), .ind-b = page 2 (panels 6-10).
   js/main.js toggles .is-page-b on the accordion when the button is pressed. */

.ind .ind-accordion .ind-b { display: none; }

.ind .ind-accordion.is-page-b .ind-a { display: none; }
.ind .ind-accordion.is-page-b .ind-b { display: block; }

/* On page B, rest the accordion on its first panel (p6 = .ind-b-first). */
.ind .ind-accordion.is-page-b:not(:hover) .ind-b-first {
  flex-grow: var(--ind-expanded);
}
.ind .ind-accordion.is-page-b:not(:hover) .ind-b-first .ind-label {
  opacity: 0;
}
.ind .ind-accordion.is-page-b:not(:hover) .ind-b-first .ind-content {
  opacity: 1;
  transform: none;
  transition-delay: .25s;
}

/* ---------- View More / View Less button ---------- */

.ind .ind-more {
  display: flex;
  justify-content: center;
  margin: 30px 0 0;
}

.ind .ind-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1.5px solid #1b1464;
  border-radius: 999px;
  background: #ffffff;
  color: #1b1464;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.ind .ind-more-btn:hover {
  background-color: #1b1464;
  color: #ffffff;
}

.ind .ind-more-btn:focus-visible {
  outline: 2px solid #1b1464;
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .ind .ind-more-btn {
    padding: 11px 24px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ind .ind-more-btn,
  .ind .ind-more-label::after { transition: none; }
}