/* ========================================================
   SKYLUS WORKSPACES - RESOURCES STYLESHEET
   Unified with Skylus Workspaces & FAQ Design System
   ======================================================== */

:root {
  --sky-navy: #0f2238;
  --sky-navy-light: #162f4e;
  --sky-cyan: #0ea5e9;
  --sky-cyan-hover: #0284c7;
  --sky-cyan-light: #38bdf8;
  --sky-text-dark: #0f172a;
  --sky-text-body: #475569;
  --sky-bg-gray: #f8fafc;
  --sky-card-border: #e2e8f0;
}

body {
  background-color: var(--sky-bg-gray);
  color: var(--sky-text-body);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
}

/* ─────────────────────────────────────────
   HERO / BREADCRUMB BANNER (IDENTICAL TO FAQ)
───────────────────────────────────────── */
.resources-hero {
  position: relative;
  background: #061121 url('../image/1st-Bottom-Background.jpg') center center / cover no-repeat !important;
  padding: 72px 0 68px;
  color: #ffffff;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: inset 0 25px 35px -15px rgba(0, 0, 0, 0.75);
}
.resources-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
      rgba(5, 17, 34, 0.78) 0%, 
      rgba(10, 30, 56, 0.62) 48%, 
      rgba(5, 16, 32, 0.88) 100%) !important;
  pointer-events: none;
}
.resources-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #0284c7 20%, #38bdf8 50%, #0284c7 80%, transparent 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  pointer-events: none;
}
.resources-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

/* ── Integrated Breadcrumb (Center Aligned, Matches FAQ) ── */
.resources-hero-bc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin: 0 auto 20px;
  background: rgba(10, 25, 47, 0.8);
  padding: 7px 22px;
  border-radius: 30px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.resources-hero-bc a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.resources-hero-bc a:hover {
  color: #38bdf8;
}
.resources-hero-bc .bc-arrow {
  color: #64748b;
  font-size: 10px;
  margin: 0 2px;
}
.resources-hero-bc .current {
  color: #38bdf8;
  font-weight: 600;
}

.resources-hero-title {
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.resources-hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.resources-hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 780px;
  margin: 14px auto 0;
}

/* ─────────────────────────────────────────
   PAGE BODY
───────────────────────────────────────── */
.page-body {
  background: var(--sky-bg-gray);
  padding-bottom: 90px;
}

/* ─────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────── */
.sh {
  padding: 60px 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--sky-card-border);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.sh-eye {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky-cyan);
  margin-bottom: 6px;
}
.sh h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--sky-text-dark);
  letter-spacing: -0.5px;
  margin: 0;
}
.sh-count {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sky-cyan-hover);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 7px 18px;
  border-radius: 50px;
}

/* ─────────────────────────────────────────
   BROCHURE CARD (SKYLUS MODERN ENTERPRISE STYLE)
───────────────────────────────────────── */
.brochure-card {
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--sky-card-border);
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-items: stretch;
}
.brochure-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
}
.brochure-card > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.b-pdf {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}
.b-pdf iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: none;
  display: block;
}

.b-info {
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 100%);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 520px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.b-info::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
  right: -80px;
  bottom: -80px;
  pointer-events: none;
}
.b-info > * {
  position: relative;
  z-index: 1;
}

.b-info h3 {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0;
}
.b-info h3 span {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.b-info > p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

.b-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.b-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #cbd5e1;
}
.b-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.b-check svg {
  width: 11px;
  height: 11px;
  stroke: #38bdf8;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.b-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.5);
  color: #ffffff;
}
.btn-dl svg {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-ol {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-ol:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
}
.btn-ol svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────────────────────────────────────
   DIVIDER
───────────────────────────────────────── */
.res-divider {
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #e2e8f0 20%, rgba(14, 165, 233, 0.3) 50%, #e2e8f0 80%, transparent);
  margin: 64px 0 20px;
}

/* Reveal fallback */
.page-body [data-r] {
  opacity: 1;
  transform: none;
}
.accordion-wrapper {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.accordion-item.active {
  border-color: #0ea5e9;
  box-shadow: 0 8px 26px rgba(14, 165, 233, 0.12);
}

.accordion-header {
  width: 100%;
  padding: 18px 28px;
  background: #ffffff;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.accordion-header:hover {
  background: #f8fafc;
}

.accordion-item.active .accordion-header {
  border-bottom: 1px solid #e0f2fe;
  background: #ffffff;
}

.title-text {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.35;
}

.acc-num {
  font-size: 13px;
  font-weight: 800;
  color: #0284c7;
  background: rgba(14, 165, 233, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.accordion-icon {
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  color: #0284c7;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.08);
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  background: #0ea5e9;
  color: #ffffff;
}

/* Accordion body animation */
.accordion-body {
  height: 0;
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}

.accordion-item.active .accordion-body {
  height: auto;
}

/* 2-Column Layout */
.layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  padding: 24px 28px 28px;
  align-items: stretch;
}

/* 3D Flip Card Container */
.flip-container {
  perspective: 1000px;
  min-height: 310px;
  position: relative;
  display: flex;
}

.flip-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  min-height: 310px;
  position: relative;
}

.flip-container.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-face {
  position: absolute;
  inset: 0;
  padding: 24px 26px;
  border-radius: 10px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Front: PROBLEM (Skylus Theme) */
.flip-front {
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  border-left: 6px solid #0284c7;
}

/* Back: SOLUTION (Skylus Theme) */
.flip-back {
  background: #f8fafc;
  border: 1px solid #bae6fd;
  border-left: 6px solid #0ea5e9;
  transform: rotateY(180deg);
}

/* Labels matching attached image & Skylus theme */
.label,
.label-badge {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 4px;
  display: inline-block;
  background-color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.label.problem,
.label-badge.problem {
  color: #0284c7;
  border: 1.5px solid #0284c7;
}

.label.solution,
.label-badge.solution {
  color: #0ea5e9;
  border: 1.5px solid #0ea5e9;
}

/* Card Text */
.flip-desc,
.flip-front p,
.flip-back p {
  font-size: 15px;
  line-height: 1.7;
  color: #1e293b;
  margin: 0;
  font-weight: 400;
}

.flip-back .flip-desc,
.flip-back p {
  color: #0f172a;
}

/* Flip action button */
.flip-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #0284c7;
  padding: 0;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
  align-self: flex-start;
  text-decoration: underline;
  flex-shrink: 0;
}

.flip-btn:hover {
  color: #0369a1;
  gap: 9px;
}

.flip-back .flip-btn {
  color: #0ea5e9;
}

.flip-back .flip-btn:hover {
  color: #0284c7;
}

/* Video Box */
.video-box {
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  position: relative;
  align-self: center;
}

.video-inner {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000000;
}

.video-inner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: none;
  background: #000000;
  object-fit: cover;
}

/* Tablet Landscape & Laptops (1024px to 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  /* Brochure Card Fix */
  .brochure-card .col-lg-7 {
    flex: 0 0 52%;
    max-width: 52%;
  }
  .brochure-card .col-lg-5 {
    flex: 0 0 48%;
    max-width: 48%;
  }
  .b-pdf,
  .b-pdf iframe {
    min-height: 460px;
    height: 100%;
  }
  .b-info {
    padding: 32px 28px;
    gap: 15px;
    min-height: 460px;
  }
  .b-info h3 {
    font-size: 26px;
    line-height: 1.2;
  }
  .b-info > p {
    font-size: 13.5px;
    line-height: 1.55;
  }
  .b-list {
    gap: 10px;
  }
  .b-list li {
    font-size: 13px;
    gap: 10px;
  }
  .b-check {
    width: 20px;
    height: 20px;
  }
  .b-btns {
    gap: 10px;
    margin-top: 4px;
    flex-wrap: nowrap;
  }
  .btn-dl,
  .btn-ol {
    padding: 10px 18px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Accordion Layout */
  .layout {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px 22px 22px;
    align-items: center;
  }
  .flip-container,
  .flip-inner {
    min-height: 310px;
    height: 100%;
  }
  .flip-face {
    padding: 22px 24px;
  }
  .flip-desc,
  .flip-front p,
  .flip-back p {
    font-size: 14px;
    line-height: 1.55;
  }
  .flip-btn {
    font-size: 14px;
    margin-top: 14px;
  }
  .video-box {
    align-self: center;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  }
  .video-inner {
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
  }
  .video-inner video {
    border-radius: 10px;
  }
}

/* Responsive for accordion layout */
@media (max-width: 991px) {
  .accordion-item.active .accordion-body {
    height: auto !important;
    max-height: none !important;
  }
  .layout {
    grid-template-columns: 1fr !important;
    padding: 20px 16px !important;
    gap: 22px !important;
  }
  .accordion-header {
    padding: 16px 18px;
  }
  .title-text {
    font-size: 16px;
    gap: 10px;
  }
  .acc-num {
    font-size: 12px;
    padding: 3px 8px;
  }
  .flip-container,
  .flip-inner {
    min-height: 290px;
    height: auto;
  }
  .flip-face {
    padding: 22px 20px;
    border-radius: 8px;
  }
  .flip-desc,
  .flip-front p,
  .flip-back p {
    font-size: 14px;
    line-height: 1.6;
  }
  .video-box {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 4px;
    border-radius: 8px;
  }
  .video-inner {
    width: 100% !important;
    padding-bottom: 56.25% !important;
    height: 0 !important;
    position: relative !important;
    border-radius: 8px;
    overflow: hidden;
  }
  .video-inner video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    object-fit: contain !important;
  }
}

@media (max-width: 576px) {
  .accordion-header {
    padding: 14px 14px;
  }
  .title-text {
    font-size: 15px;
  }
  .flip-container,
  .flip-inner {
    min-height: 320px;
  }
  .flip-face {
    padding: 18px 16px;
  }
  .flip-desc,
  .flip-front p,
  .flip-back p {
    font-size: 13.5px;
    line-height: 1.55;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 991px) {
  .resources-hero-title {
    font-size: 32px;
  }
  .resources-hero-desc {
    font-size: 15px;
  }
  .b-pdf, .b-pdf iframe, .b-info {
    min-height: 400px;
  }
  .b-info {
    padding: 36px 28px;
  }
  .b-info h3 {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .resources-hero {
    padding: 56px 0 50px;
  }
  .resources-hero-title {
    font-size: 26px;
  }
  .resources-hero-bc {
    font-size: 12px;
    padding: 6px 16px;
  }
  .sh {
    padding: 40px 0 20px;
  }
  .sh h2 {
    font-size: 22px;
  }
  .b-pdf, .b-pdf iframe {
    min-height: 320px;
  }
  .b-info {
    padding: 28px 20px;
    min-height: auto;
  }
  .b-info h3 {
    font-size: 24px;
  }
}
