@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --offit-bg: #f0f5fc;
  --offit-blue: #1868d4;
  --offit-blue-dark: #114ca1;
  --offit-blue-light: #e8f2fe;
  --offit-text: #1e293b;
  --offit-text-muted: #64748b;
  --offit-card-radius: 20px;
  --sidebar-width: 285px;
  --sidebar-bg: #124da0;
  --sidebar-gradient: radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.08) 0%, transparent 60%), linear-gradient(180deg, #175bb8 0%, #124da0 60%, #0d3d82 100%);
  --sidebar-active-bg: #2b77e5;
  --section-gap: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ========================================================
   BODY & LAYOUT
   ======================================================== */
body.dashboard-layout {
  font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  background-color: var(--offit-bg) !important;
  background: var(--offit-bg) !important;
  color: var(--offit-text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip; /* never create an inner scroll container (prevents left/right panning on mobile) */
  max-width: 100%;
}

body.offit-new-home {
  display: block !important;
  background: var(--offit-bg) !important;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip; /* never create an inner scroll container (prevents left/right panning on mobile) */
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body.sidebar-open {
  overflow: hidden;
}

/* ========================================================
   PAGE WRAPPER (Centered max-width container)
   ======================================================== */
.offit-page-wrapper {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 20px 36px 20px;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .offit-page-wrapper {
    max-width: 1400px;
    padding: 20px 28px 44px 28px;
  }
}

@media (min-width: 1800px) {
  .offit-page-wrapper {
    max-width: 1560px;
    padding: 24px 36px 50px 36px;
  }
}

@media (max-width: 991.98px) {
  .offit-page-wrapper {
    padding: 12px 14px 28px 14px;
  }
}

@media (max-width: 575.98px) {
  .offit-page-wrapper {
    padding: 8px 8px 20px 8px;
  }
}

/* ========================================================
   1. TOPBAR HEADER
   ======================================================== */
.offit-home-topbar {
  background: #ffffff !important;
  border-radius: 18px !important;
  border: 1.5px solid #dbe8f7 !important;
  box-shadow: 0 4px 18px rgba(18, 78, 161, 0.05) !important;
  padding: 10px 20px !important;
  width: 100% !important;
  transition: all 0.25s ease;
  position: relative !important;
  top: auto !important;
  z-index: 1060 !important;
  margin-bottom: 1rem !important;
}

.offit-topbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.offit-topbar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.offit-topbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.offit-topbar-logo-img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--sidebar-bg);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.15s;
}

.sidebar-toggle:active {
  transform: scale(0.92);
}

.offit-topbar-search-wrap {
  flex: 1 1 auto;
  max-width: 520px;
  min-width: 180px;
  width: 100%;
}

.topbar-search {
  background-color: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  padding: 8px 18px 8px 40px;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-search:focus-within {
  background-color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.14);
}

.topbar-search .search-icon {
  position: absolute;
  left: 14px;
  color: #3b82f6;
  font-size: 0.95rem;
  pointer-events: none;
}

.topbar-search input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Prompt', sans-serif;
  font-size: 0.88rem;
  color: #334155;
  width: 100%;
  padding: 0 !important;
  height: 24px !important;
  line-height: normal !important;
  box-shadow: none !important;
}

.topbar-search input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.offit-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.offit-btn-contact {
  background: #f0f6ff;
  color: #1868d4 !important;
  border: 1px solid #d0e2ff;
  border-radius: 50px;
  padding: 7px 16px;
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1;
}

.offit-btn-contact i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  vertical-align: 0 !important;
  width: 1em;
  height: 1em;
}

.offit-btn-contact i::before {
  display: block;
  line-height: 1 !important;
  vertical-align: 0 !important;
}

.offit-btn-contact:hover {
  background: #1868d4;
  color: #ffffff !important;
  border-color: #1868d4;
  box-shadow: 0 4px 12px rgba(24, 104, 212, 0.2);
}

.offit-btn-user {
  background: #f6f9fc;
  border: 1px solid #e1ebf6;
  border-radius: 50px;
  padding: 5px 14px 5px 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none !important;
  color: #1e293b !important;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.offit-btn-user:hover {
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.offit-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1868d4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Mobile Header (< 768px): Sleek 1-line compact bar without logo */
@media (max-width: 767.98px) {
  .offit-home-topbar {
    padding: 6px 8px !important;
    border-radius: 14px !important;
    margin-bottom: 0.75rem !important;
  }
  .offit-topbar-container {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .offit-topbar-brand-wrap {
    order: 1 !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
  }
  /* Hide logo completely on mobile screen per user request */
  .offit-topbar-brand {
    display: none !important;
  }
  .sidebar-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    font-size: 1.35rem !important;
    color: #124da0 !important;
    border-radius: 10px !important;
    background: #f0f6ff !important;
    border: 1px solid #dbe8f7 !important;
    flex-shrink: 0 !important;
    transition: background-color 0.2s, transform 0.15s;
  }
  .sidebar-toggle:hover {
    background: #e2edfd !important;
  }
  .offit-topbar-search-wrap {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
  }
  .topbar-search {
    padding: 5px 10px 5px 30px !important;
    height: 36px !important;
    border-radius: 50px !important;
    background-color: #f1f5f9 !important;
  }
  .topbar-search .search-icon {
    left: 9px !important;
    font-size: 0.85rem !important;
  }
  .topbar-search input {
    font-size: 0.8rem !important;
    height: 20px !important;
  }
  .topbar-search input::placeholder {
    font-size: 0.78rem !important;
  }
  .offit-topbar-actions {
    order: 3 !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
  }
  .offit-btn-contact {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .offit-btn-contact i {
    font-size: 1.05rem !important;
    margin: 0 !important;
  }
  .offit-btn-user {
    padding: 2px 6px 2px 2px !important;
    height: 36px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
  }
  .offit-user-avatar {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.85rem !important;
  }
}

/* ========================================================
   2. MIDDLE ROW: SIDEBAR (LEFT) + HERO & 4 CARDS (RIGHT)
   ======================================================== */
.offit-middle-row {
  display: flex;
  gap: var(--section-gap);
  align-items: stretch;
  width: 100%;
}

/* ---- SIDEBAR (Desktop >= 992px) ---- */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  background-image: var(--sidebar-gradient);
  color: #ffffff;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease;
  will-change: transform;
}

@media (min-width: 992px) {
  body.offit-new-home .offit-home-sidebar {
    position: sticky !important;
    top: 16px !important;
    align-self: flex-start !important;
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
    min-height: calc(100vh - 120px) !important;
    height: calc(100vh - 120px) !important;
    max-height: calc(100vh - 32px) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #175bb8 0%, #124da0 60%, #0d3d82 100%) !important;
    background-image: radial-gradient(circle at 100% 100%, rgba(255,255,255,0.08) 0%, transparent 60%), linear-gradient(180deg, #175bb8 0%, #124da0 60%, #0d3d82 100%) !important;
    padding: 18px 14px 16px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-shadow: 0 8px 24px rgba(18, 78, 161, 0.15) !important;
    transform: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 10 !important;
    flex-shrink: 0;
    transition: min-height 0.22s ease, height 0.22s ease;
  }

  body.offit-new-home.is-scrolled .offit-home-sidebar,
  body.offit-new-home .offit-home-sidebar.is-scrolled {
    min-height: calc(100vh - 32px) !important;
    height: calc(100vh - 32px) !important;
  }

  /* Homepage (index.php): Sidebar length matches the right column (hero + 4 action cards) ending at registration card bottom */
  body.offit-new-home.page-home .offit-home-sidebar,
  body.offit-new-home.page-home.is-scrolled .offit-home-sidebar,
  body.offit-new-home.page-home .offit-home-sidebar.is-scrolled {
    position: relative !important;
    top: auto !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  /* Sleek scrollbar for sidebar on desktop if height is constrained */
  .offit-home-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  .offit-home-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }
  .offit-home-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
  }
  .offit-home-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
  }
}

/* ---- SIDEBAR (Mobile/Tablet < 992px): Slide-in Drawer ---- */
@media (max-width: 991.98px) {
  body.offit-new-home .offit-home-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 285px !important;
    max-width: 85vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1080 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 0 20px 20px 0 !important;
    background: linear-gradient(180deg, #175bb8 0%, #124da0 60%, #0d3d82 100%) !important;
    padding: 14px 12px !important;
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
  }

  body.offit-new-home .offit-home-sidebar .offit-sidebar-nav li a {
    white-space: nowrap !important;
    padding: 10px 14px !important;
    gap: 12px !important;
    font-size: 0.92rem !important;
  }

  body.offit-new-home .offit-home-sidebar .offit-sidebar-nav li a br {
    display: none !important;
  }

  body.offit-new-home .offit-home-sidebar .sidebar-footer {
    padding: 12px 6px !important;
  }

  body.offit-new-home .offit-home-sidebar.show {
    transform: translateX(0) !important;
  }

  body.offit-new-home .sidebar-overlay {
    z-index: 1075 !important;
  }

  body.offit-new-home .offit-middle-row {
    flex-direction: column;
    gap: var(--section-gap);
  }

  .sidebar-toggle {
    display: inline-flex;
  }
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
  cursor: pointer;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Navigation Items */
.offit-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offit-sidebar-nav li {
  margin: 0;
}

.offit-sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  transition: all 0.2s ease;
  white-space: nowrap !important;
}

.offit-sidebar-nav li a br {
  display: none !important;
}

.offit-sidebar-nav li a i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.offit-sidebar-nav li a.active {
  background: #2b77e5 !important;
  box-shadow: 0 4px 14px rgba(14, 58, 122, 0.3) !important;
  font-weight: 600;
}

.offit-sidebar-nav li a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: translateX(3px);
}

/* Sidebar Admin Nav (Positioned right above bottom health badge) */
.offit-sidebar-admin-nav {
  margin-top: auto !important;
  margin-bottom: 8px !important;
}

.offit-sidebar-admin-nav ~ .offit-sidebar-health-pill {
  margin-top: 0 !important;
}

/* Sidebar Bottom Health Badge */
.offit-sidebar-health-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: auto;
}

.health-pill-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #1868d4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.health-pill-text {
  font-size: 0.875rem;
  line-height: 1.25;
}

/* ---- RIGHT COLUMN: HERO + 4 CARDS ---- */
.offit-top-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* HERO BANNER */
.offit-hero-card {
  border-radius: var(--offit-card-radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(18, 78, 161, 0.08);
  border: none !important;
  outline: none !important;
  background: transparent !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  width: 100%;
}

.offit-hero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(18, 78, 161, 0.12);
}

.offit-hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--offit-card-radius);
  border: none !important;
  outline: none !important;
}

/* 4 FEATURE ACTION CARDS — 34% 22% 22% 22% */
.offit-feature-cards-grid {
  display: grid;
  grid-template-columns: 34fr 22fr 22fr 22fr; /* 34% 22% 22% 22% */
  gap: var(--section-gap);
  align-items: stretch;
}

.offit-card-item {
  min-width: 0;
  display: flex;
  align-items: stretch;
}

.offit-feature-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  border-radius: var(--offit-card-radius);
  overflow: hidden;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease;
}

.offit-feature-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 10px 22px rgba(18, 78, 161, 0.18));
}

.offit-feature-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

.offit-feature-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none !important;
  outline: none !important;
  border-radius: var(--offit-card-radius);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.offit-feature-card:hover .offit-feature-card-img {
  transform: scale(1.02);
}

/* Card 1 (Register) */
.offit-card-regis .offit-feature-card {
  overflow: hidden;
  border-radius: var(--offit-card-radius);
  border: none !important;
  outline: none !important;
  background: transparent !important;
}

.offit-card-regis .offit-feature-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none !important;
  outline: none !important;
}

/* Tablet (< 992px): 2x2 Grid */
@media (max-width: 991.98px) {
  .offit-feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .offit-feature-cards-grid .offit-card-item[data-aos] {
    transition-delay: 0s !important;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
  :root {
    --offit-card-radius: 14px;
    --section-gap: 10px;
  }
  .offit-feature-cards-grid {
    gap: 8px;
  }
}

/* ========================================================
   3. BOTTOM ROW: VIDEO CARD (LEFT) + BENEFITS CARD (RIGHT)
   ======================================================== */
.offit-bottom-split-row {
  display: flex;
  gap: var(--section-gap);
  align-items: stretch;
  width: 100%;
}

/* Left: Video Card (Expanded width according to layout frame) */
.offit-video-card {
  flex: 2.15;
  min-width: 0;
  background: #ffffff;
  border-radius: var(--offit-card-radius);
  border: 1.5px solid #e1ebf9;
  box-shadow: 0 6px 22px rgba(18, 78, 161, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.offit-video-badge {
  background: #ff4b68;
  color: #ffffff;
  border-radius: 50px;
  padding: 5px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.offit-video-player-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  width: 100%;
  flex: 1;
  min-height: 280px;
}

.offit-video-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.offit-video-player-wrapper:hover .offit-video-banner-img {
  transform: scale(1.02);
}

.offit-video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  transition: background 0.3s ease;
}

.offit-video-player-wrapper:hover .offit-video-play-overlay {
  background: rgba(0, 0, 0, 0.08);
}

/* Right: Benefits Card */
.offit-benefits-side-card {
  flex: 1;
  min-width: 280px;
  background: #ffffff;
  border-radius: var(--offit-card-radius);
  border: 1.5px solid #e1ebf9;
  box-shadow: 0 6px 22px rgba(18, 78, 161, 0.05);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 100% 0%, rgba(224, 242, 254, 0.45) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.offit-benefits-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.offit-benefits-badge {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  border-radius: 50px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  font-family: 'Prompt', sans-serif;
  white-space: nowrap;
}

.offit-benefits-sub-badge {
  background: #edf5ff;
  color: #1868d4;
  border: 1px solid #d0e4ff;
  border-radius: 50px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  font-family: 'Prompt', sans-serif;
}

.offit-benefits-side-desc {
  font-family: 'Prompt', sans-serif;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0 0 10px 0;
}

/* Retain action button as a button */
.offit-benefits-action-btn {
  background: #1868d4;
  color: #ffffff !important;
  border-radius: 50px;
  padding: 5px 14px;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 12px rgba(24, 104, 212, 0.22);
  white-space: nowrap;
  cursor: pointer;
}

.offit-benefits-action-btn:hover {
  background: #104ca1;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 104, 212, 0.32);
}

.offit-benefits-action-btn i {
  transition: transform 0.2s ease;
}

.offit-benefits-action-btn:hover i {
  transform: translateX(3px);
}

/* 5 Benefits Info Cards inside Card (Buttons removed, converted to info cards) */
.offit-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.offit-benefit-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #edf2f9;
  color: inherit !important;
  cursor: default;
  flex: 1;
  min-height: 60px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.offit-benefit-list-item:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* Benefit Icon (Enlarged) */
.offit-benefit-list-item .benefit-item-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
}

.benefit-item-icon.bg-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.benefit-item-icon.bg-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
}

.benefit-item-icon.bg-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
}

.benefit-item-icon.bg-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
}

.benefit-item-icon.bg-green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
}

/* Benefit Text */
.offit-benefit-list-item .benefit-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.offit-benefit-list-item .benefit-item-title {
  font-family: 'Prompt', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: #0e3066;
  margin: 0 0 2px 0;
  line-height: 1.35;
  white-space: normal;
}

.offit-benefit-list-item .benefit-item-desc {
  font-family: 'Prompt', sans-serif;
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  white-space: normal;
}

/* Tablet & Mobile (< 992px): Stack vertically */
@media (max-width: 991.98px) {
  .offit-bottom-split-row {
    flex-direction: column;
    gap: var(--section-gap);
  }

  .offit-video-card,
  .offit-benefits-side-card {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
}

/* Tablet (600px - 991.98px): 2-columns layout for benefits if preferred */
@media (min-width: 600px) and (max-width: 991.98px) {
  .offit-benefits-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .offit-benefit-list-item:last-child {
    grid-column: span 2;
  }
}

/* Mobile (< 600px): Compact spacing */
@media (max-width: 599.98px) {
  .offit-video-card,
  .offit-benefits-side-card {
    padding: 16px 14px;
  }
  .offit-benefits-side-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .offit-benefits-action-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 16px;
  }
  .offit-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .offit-benefit-list-item {
    padding: 9px 12px;
  }
  .benefit-item-title {
    font-size: 0.88rem;
  }
  .benefit-item-desc {
    font-size: 0.76rem;
    white-space: normal;
  }
}

/* ========================================================
   NCDS RISK CARD (Not on index, but shared CSS)
   ======================================================== */
.ncds-page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0 40px 0;
}

.ncds-card-box {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 14px 40px rgba(18, 54, 110, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(215, 228, 243, 0.85);
  padding: 26px 24px 30px 24px;
  position: relative;
}

.ncds-topbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ncds-brand-logo-card {
  height: 38px;
  max-width: 100%;
  object-fit: contain;
}

.ncds-close-btn-card {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  background: #f1f5f9;
  text-decoration: none !important;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.ncds-close-btn-card:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.ncds-page-title-card {
  font-family: 'Prompt', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0e3066;
  margin: 8px 0 16px 0;
  text-align: left;
}

.ncds-banner-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #fce9ee 0%, #e7f3fe 100%);
  border: 1px solid #fed7e2;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.07);
  margin-bottom: 18px;
  text-align: center;
}

.ncds-banner-img-card {
  width: 100%;
  height: 215px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.ncds-badge-wrap-card {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.ncds-pill-badge-custom {
  background: #ffffff;
  border: 1.5px solid #fecdd3;
  border-radius: 50px;
  padding: 5px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.16);
  color: #0e3774;
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.ncds-badge-arrow-custom {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1868d4;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-left: 2px;
}

.ncds-heading-card {
  font-family: 'Prompt', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0e3066;
  margin: 0 0 6px 0;
}

.ncds-desc-card {
  font-family: 'Prompt', sans-serif;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 18px;
}

.ncds-benefit-box-card {
  background: #eef6ff;
  border: 1px solid #dcebfe;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.ncds-benefit-title-card {
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0e3774;
  margin: 0 0 12px 0;
}

.ncds-benefit-list-card {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ncds-benefit-list-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Prompt', sans-serif;
  font-size: 0.88rem;
  color: #103264;
  font-weight: 500;
}

.ncds-benefit-list-card li i {
  color: #1868d4;
  font-size: 1rem;
  flex-shrink: 0;
}

.btn-ncds-submit-card {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  background: linear-gradient(135deg, #1868d4 0%, #0d50ba 100%) !important;
  color: #ffffff !important;
  font-family: 'Prompt', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 13px 24px !important;
  border-radius: 50px !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(24, 104, 212, 0.35) !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-ncds-submit-card:hover {
  background: linear-gradient(135deg, #1d72e6 0%, #0f57ca 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 104, 212, 0.45) !important;
  color: #ffffff !important;
}

@media (max-width: 576px) {
  .ncds-card-box {
    border-radius: 22px;
    padding: 20px 16px 24px 16px;
  }
  .ncds-banner-img-card {
    height: 180px;
  }
}

/* ========================================================
   LEGACY DASHBOARD CLASSES (Used by other pages)
   ======================================================== */
.dashboard-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--offit-bg);
}

.dashboard-topbar {
  background-color: #ffffff;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-content {
  padding: 10px 20px 32px 20px;
  flex-grow: 1;
  width: 100%;
}

.dashboard-sidebar .sidebar-logo {
  padding: 14px 18px 8px 18px;
  text-align: center;
  background-color: #ffffff;
  border-bottom-right-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.dashboard-sidebar .sidebar-logo img {
  max-width: 145px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.dashboard-sidebar .sidebar-menu {
  list-style: none;
  padding: 8px 12px 20px 12px;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-sidebar .sidebar-menu li {
  margin: 0;
}

.dashboard-sidebar .sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 500;
  font-family: 'Prompt', sans-serif;
  transition: background-color 0.2s ease;
}

.dashboard-sidebar .sidebar-menu a i {
  margin-right: 12px;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.dashboard-sidebar .sidebar-menu a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.dashboard-sidebar .sidebar-menu a.active {
  background-color: var(--sidebar-active-bg) !important;
  box-shadow: 0 4px 14px rgba(14, 58, 122, 0.3) !important;
  border-left: 4px solid #ffffff !important;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-weight: 600;
}

/* ========================================================
   VIDEO & ARTICLE SECTIONS (Shared/Other pages)
   ======================================================== */
.offit-video-container {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 6px 22px rgba(18, 78, 161, 0.05);
  border: 1px solid rgba(215, 228, 243, 0.8);
  padding: 20px 24px;
  margin-bottom: 24px;
  width: 100%;
}

.offit-play-btn-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.45);
  padding-left: 5px;
  transition: transform 0.25s ease, background 0.2s ease;
}

.offit-video-player-wrapper:hover .offit-play-btn-circle {
  transform: scale(1.1);
  background: #be123c;
}

.offit-articles-section {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 6px 22px rgba(18, 78, 161, 0.05);
  border: 1px solid rgba(215, 228, 243, 0.8);
  padding: 22px 24px;
  margin-bottom: 24px;
  width: 100%;
}

.offit-section-title {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #103264;
  display: flex;
  align-items: center;
  gap: 10px;
}

.offit-article-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.offit-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 576px) {
  .offit-video-container,
  .offit-articles-section {
    padding: 16px 14px;
    border-radius: 20px;
  }
  .offit-play-btn-circle {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }
}

/* Floating Quick Contact / About / Register Button */
.offit-floating-contact,
.offit-floating-about,
.offit-floating-register {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  background: linear-gradient(135deg, #1868d4 0%, #104ea0 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(24, 104, 212, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.offit-floating-contact:hover,
.offit-floating-about:hover,
.offit-floating-register:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(24, 104, 212, 0.48);
  color: #ffffff !important;
  background: linear-gradient(135deg, #1d72e6 0%, #1257b2 100%);
}

.offit-floating-contact:active,
.offit-floating-about:active,
.offit-floating-register:active {
  transform: translateY(0) scale(0.97);
}

.offit-floating-contact i,
.offit-floating-about i,
.offit-floating-register i {
  font-size: 1.15rem;
}

@media (max-width: 991.98px) {
  .offit-floating-contact,
  .offit-floating-about,
  .offit-floating-register {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  }
  .offit-floating-contact.visible,
  .offit-floating-about.visible,
  .offit-floating-register.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .offit-floating-contact,
  .offit-floating-about,
  .offit-floating-register {
    bottom: 14px;
    right: 14px;
    padding: 7px 13px;
    font-size: 0.8rem;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(24, 104, 212, 0.35);
  }
  .offit-floating-contact i,
  .offit-floating-about i,
  .offit-floating-register i {
    font-size: 1rem;
  }
}


/* ========================================================
   Readability / Typography (global)
   - min font size, comfortable line-height, Thai word wrapping
   ======================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
p, li, td, th, label, .card-text, .form-control, .form-select, .btn { line-height: 1.6; }
p, li, td, th, h1, h2, h3, h4, h5, h6, .card-title, .card-text, a, span, label {
  overflow-wrap: break-word;
  word-break: normal;
  line-break: auto;
}
h1, h2, h3, h4, h5, h6 { line-height: 1.35; }
small, .small, .text-muted.small { font-size: 0.875rem; }
.form-control, .form-select, input, select, textarea { font-size: 1rem; }
@media (max-width: 576px) {
  body { font-size: 15px; }
  h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  h2 { font-size: clamp(1.3rem, 5.2vw, 1.7rem); }
  h3 { font-size: clamp(1.15rem, 4.6vw, 1.4rem); }
  .form-control, .form-select, input, select, textarea { font-size: 16px; }
}

/* Logout Menu Item - Soft Pastel Red (แดงพาสเทล) */
.dashboard-topbar .dropdown-item.text-danger,
.dashboard-topbar .dropdown-item.dropdown-item-logout,
.offit-home-topbar .dropdown-item.text-danger,
.offit-home-topbar .dropdown-item.dropdown-item-logout,
.offit-topbar-actions .dropdown-item.text-danger,
.offit-topbar-actions .dropdown-item.dropdown-item-logout,
.dropdown-menu .dropdown-item.text-danger,
.dropdown-menu .dropdown-item.dropdown-item-logout,
.dropdown-item-logout {
  color: #e57373 !important;
}

.dashboard-topbar .dropdown-item.text-danger i,
.dashboard-topbar .dropdown-item.dropdown-item-logout i,
.offit-home-topbar .dropdown-item.text-danger i,
.offit-home-topbar .dropdown-item.dropdown-item-logout i,
.offit-topbar-actions .dropdown-item.text-danger i,
.offit-topbar-actions .dropdown-item.dropdown-item-logout i,
.dropdown-menu .dropdown-item.text-danger i,
.dropdown-menu .dropdown-item.dropdown-item-logout i,
.dropdown-item-logout i {
  color: #e57373 !important;
  transition: color 0.15s ease !important;
}

.dashboard-topbar .dropdown-item.text-danger:hover,
.dashboard-topbar .dropdown-item.dropdown-item-logout:hover,
.offit-home-topbar .dropdown-item.text-danger:hover,
.offit-home-topbar .dropdown-item.dropdown-item-logout:hover,
.offit-topbar-actions .dropdown-item.text-danger:hover,
.offit-topbar-actions .dropdown-item.dropdown-item-logout:hover,
.dropdown-menu .dropdown-item.text-danger:hover,
.dropdown-menu .dropdown-item.dropdown-item-logout:hover,
.dropdown-item-logout:hover {
  background-color: #fff5f5 !important;
  color: #d9534f !important;
}

.dashboard-topbar .dropdown-item.text-danger:hover i,
.dashboard-topbar .dropdown-item.dropdown-item-logout:hover i,
.offit-home-topbar .dropdown-item.text-danger:hover i,
.offit-home-topbar .dropdown-item.dropdown-item-logout:hover i,
.offit-topbar-actions .dropdown-item.text-danger:hover i,
.offit-topbar-actions .dropdown-item.dropdown-item-logout:hover i,
.dropdown-menu .dropdown-item.text-danger:hover i,
.dropdown-menu .dropdown-item.dropdown-item-logout:hover i,
.dropdown-item-logout:hover i {
  color: #d9534f !important;
}

/* ========================================================
   4. BENEFITS SECTION: ประโยชน์ที่คุณจะได้รับ
   ======================================================== */
.offit-benefits-section {
  width: 100%;
}

.offit-benefits-card {
  background: #ffffff;
  border-radius: var(--offit-card-radius);
  border: 1.5px solid #e1ebf9;
  box-shadow: 0 6px 22px rgba(18, 78, 161, 0.05);
  padding: 26px 30px;
  width: 100%;
}

.offit-benefits-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.offit-benefits-title {
  font-family: 'Prompt', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0e3066;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.offit-benefits-badge {
  background: #edf5ff;
  color: #1868d4;
  border: 1px solid #d0e4ff;
  border-radius: 50px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
}

.offit-benefits-desc {
  font-family: 'Prompt', sans-serif;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 4px 0 0 0;
}

.offit-benefits-action-btn {
  background: #1868d4;
  color: #ffffff !important;
  border-radius: 50px;
  padding: 8px 22px;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(24, 104, 212, 0.25);
  white-space: nowrap;
}

.offit-benefits-action-btn:hover {
  background: #104ca1;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 104, 212, 0.35);
}

.offit-benefits-action-btn i.bi-arrow-right {
  transition: transform 0.2s ease;
}

.offit-benefits-action-btn:hover i.bi-arrow-right {
  transform: translateX(4px);
}

/* 5 Benefits Grid */
.offit-benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.offit-benefit-grid-item {
  background: #f8fafc;
  border: 1.5px solid #edf2f9;
  border-radius: 18px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.offit-benefit-grid-item:hover {
  background: #ffffff;
  border-color: #bcd9fd;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(24, 104, 212, 0.09);
}

.offit-benefit-grid-item .benefit-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.benefit-item-icon.bg-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.benefit-item-icon.bg-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.benefit-item-icon.bg-orange {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.28);
}

.benefit-item-icon.bg-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.28);
}

.benefit-item-icon.bg-green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.28);
}

.offit-benefit-grid-item .benefit-item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.offit-benefit-grid-item .benefit-item-title {
  font-family: 'Prompt', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0e3066;
  margin: 0 0 4px 0;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: break-word;
}

.offit-benefit-grid-item .benefit-item-desc {
  font-family: 'Prompt', sans-serif;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 1099.98px) {
  .offit-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767.98px) {
  .offit-benefits-card {
    padding: 20px 18px;
  }
  .offit-benefits-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .offit-benefit-grid-item {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
  }
  .benefit-item-icon {
    margin-bottom: 0;
  }
  .benefit-item-title {
    font-size: 0.95rem;
    margin-bottom: 3px;
    line-height: 1.45;
  }
  .benefit-item-desc {
    font-size: 0.82rem;
    line-height: 1.5;
  }
}

/* ========================================================
   DASHBOARD PAGES INTEGRATION WITH OFFIT-PAGE-WRAPPER
   ======================================================== */
body.dashboard-layout.offit-new-home {
  display: block !important;
  background: var(--offit-bg, #f4f7fb) !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.offit-middle-row .dashboard-main {
  margin-left: 0 !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: auto !important;
}

.offit-middle-row .dashboard-main .dashboard-content {
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 992px) {
  body.offit-new-home .offit-home-sidebar {
    min-height: calc(100vh - 120px) !important;
    height: calc(100vh - 120px) !important;
    max-height: calc(100vh - 32px) !important;
    overflow-y: auto !important;
  }
  body.offit-new-home.is-scrolled .offit-home-sidebar,
  body.offit-new-home .offit-home-sidebar.is-scrolled {
    min-height: calc(100vh - 32px) !important;
    height: calc(100vh - 32px) !important;
  }

  body.offit-new-home.page-home .offit-home-sidebar,
  body.offit-new-home.page-home.is-scrolled .offit-home-sidebar,
  body.offit-new-home.page-home .offit-home-sidebar.is-scrolled {
    position: relative !important;
    top: auto !important;
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* Sidebar Footer inside offit-home-sidebar */
.offit-home-sidebar .sidebar-footer {
  margin-top: auto;
  padding: 14px 4px 4px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.offit-home-sidebar .sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 14px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.offit-home-sidebar .sidebar-footer a:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #fca5a5 !important;
}

/* Landscape Mode for Video Workout Studio */
body.mode-landscape .offit-home-topbar,
body.mode-landscape .offit-home-sidebar,
body.mode-landscape .dashboard-sidebar {
  display: none !important;
}
body.mode-landscape .offit-page-wrapper {
  padding: 0 !important;
  max-width: 100% !important;
}
body.mode-landscape .offit-middle-row {
  display: block !important;
  gap: 0 !important;
}


/* ========================================================
   ULTRA-SMOOTH 60FPS AOS HARDWARE ACCELERATION ENGINE
   Zero hitching, zero layer snaps, pure buttery 60fps glide
   ======================================================== */
[data-aos],
[data-aos][data-aos] {
  transition-property: opacity, transform !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
  transition-duration: 480ms !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  will-change: transform, opacity !important;
}

/* 1. Subtle, gentle displacement (eliminates harsh 100px leaps) */
[data-aos="fade-up"],
[data-aos][data-aos="fade-up"] {
  transform: translate3d(0, 16px, 0) !important;
  opacity: 0 !important;
}

[data-aos="fade-down"],
[data-aos][data-aos="fade-down"] {
  transform: translate3d(0, -16px, 0) !important;
  opacity: 0 !important;
}

/* Subtle micro-zoom (0.95 -> 1.0) with gentle 14px slide (eliminates 60% shrinking) */
[data-aos="zoom-in"],
[data-aos][data-aos="zoom-in"] {
  transform: translate3d(0, 14px, 0) scale(0.95) !important;
  opacity: 0 !important;
}

/* 2. Destination states - Pure 3D hardware matrix landing (No snap to 'none') */
[data-aos^="fade"].aos-animate,
[data-aos^="fade"][data-aos^="fade"].aos-animate {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

[data-aos^="zoom"].aos-animate,
[data-aos^="zoom"][data-aos^="zoom"].aos-animate {
  transform: translate3d(0, 0, 0) scale(1) !important;
  opacity: 1 !important;
}

/* 3. Mobile synchronization: eliminate waterfall cascade lag on smartphones */
@media (max-width: 991.98px) {
  [data-aos][data-aos-delay] {
    transition-delay: 0s !important;
  }
  [data-aos="fade-up"],
  [data-aos][data-aos="fade-up"] {
    transform: translate3d(0, 18px, 0) !important;
  }
  [data-aos="fade-down"],
  [data-aos][data-aos="fade-down"] {
    transform: translate3d(0, -16px, 0) !important;
  }
  [data-aos="zoom-in"],
  [data-aos][data-aos="zoom-in"] {
    transform: translate3d(0, 12px, 0) scale(0.96) !important;
  }
}

/* 4. Prevent conflicting transition: all on cards from interfering with entrance animation */
.fitt-exercise-section[data-aos],
.category-quick-card[data-aos],
[data-aos].card,
#tour-os-card[data-aos],
#tour-aerobic-card[data-aos],
#tour-goal-card[data-aos] {
  transition-property: opacity, transform !important;
}

/* ========================================================
   MOBILE: NO HORIZONTAL SCROLL GUARD
   ======================================================== */
html {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  /* Closed dropdown menus sit off-screen to the right and widen the page */
  .dashboard-topbar .dropdown-menu,
  .offit-home-topbar .dropdown-menu {
    max-width: calc(100vw - 16px);
  }
  .offit-page-wrapper,
  .offit-middle-row,
  .dashboard-main,
  .dashboard-content {
    max-width: 100%;
    min-width: 0;
  }
}
