/* =====================================================
   SELECTWISE HUB — FINAL LOCKED CSS (HOVER BASED)
===================================================== */

/* -------------------------
   ROOT
------------------------- */
:root {
  --bg-main: #020617;
  --bg-soft: #0b1020;
  --bg-deep: #01040f;

  --card-bg: rgba(255,255,255,0.06);
  --card-bg-strong: rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.12);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent: #22d3ee;
}

/* -------------------------
   RESET
------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, var(--bg-soft), var(--bg-main));
  color: var(--text-main);
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 16px;
}

/* -------------------------
   HEADER
------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2,6,23,0.92);
  backdrop-filter: blur(10px);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-soft);
}

.logo img {
  height: 64px;        /* main fix */
  width: auto;
  max-height: 72px;   /* safety cap */
  display: block;
}

nav a {
  margin-left: 20px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

/* -------------------------
   HERO
------------------------- */
.hero {
  position: relative;
  padding: 140px 20px;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(2,6,23,0.85),
    rgba(2,6,23,0.65),
    rgba(2,6,23,0.45)
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* -------------------------
   HERO BUTTONS (FIXED)
------------------------- */
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #020617;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.3);
}

.btn-outline {
  background: transparent;
}

/* -------------------------
   HERO CARD
------------------------- */
.hero-card {
  background: var(--card-bg-strong);
  border-radius: 24px;
  padding: 30px;
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(12px);
}

.hero-features {
  display: grid;
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 18px 20px;
}

/* -------------------------
   SECTIONS
------------------------- */
.section-light,
.resources-section,
.info-section {
  padding: 110px 20px;
}

.section-inner {
  max-width: 1100px;
  margin: auto;
}

/* =====================================================
   CATEGORY CARDS — HOVER EXPAND (MAIN FIX)
===================================================== */
.category-row {
  display: flex;
  gap: 60px;
  align-items: stretch;
  margin-bottom: 100px;
}

.category-row.reverse {
  flex-direction: row-reverse;
}

/* IMAGE */
.cat-image {
  flex: 0 0 420px;
  height: 260px;
  overflow: hidden;
  border-radius: 18px;
}

.cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CARD */
.cat-content {
  flex: 1;
  background: var(--card-bg-strong);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.3s ease;
}

/* PREVIEW */
.cat-preview {
  color: var(--text-muted);
}

/* FULL TEXT — HIDDEN BY DEFAULT */
.cat-full {
  display: none;
  color: var(--text-muted);
}

/* 🔥 SHOW FULL TEXT ON HOVER */
.cat-content:hover .cat-full {
  display: block;
}

.cat-content:hover .cat-preview {
  display: none;
}

/* CTA BUTTON — FIXED (NO BLUE LINK) */
.cat-btn {
  align-self: flex-start;
  margin-top: 14px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(34,211,238,0.12);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.cat-btn:hover {
  background: rgba(34,211,238,0.22);
}

/* -------------------------
   RESOURCES
------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
}

.resource-card {
  background: var(--card-bg);
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--border-soft);
}

/* -------------------------
   FOOTER
------------------------- */
.site-footer {
  background: var(--bg-deep);
  padding: 90px 20px 40px;
}

.footer-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: center;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 13px;
}

/* -------------------------
   MOBILE (AUTO EXPAND)
------------------------- */
@media (max-width: 768px) {

  nav {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .category-row,
  .category-row.reverse {
    flex-direction: column;
  }

  .cat-image {
    width: 100%;
    height: 220px;
  }

  /* Mobile: always show full content */
  .cat-full {
    display: block;
  }

  .cat-preview {
    display: none;
  }

  .resources-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}