/* ==========================================================================
   JJM HOSPITAL - PATIENT GRIEVANCE HELPLINE
   55" Android TV Digital Signage Display System
   Font: Poppins (English) & Noto Sans Devanagari (Hindi)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* JJM Corporate Colors (Extracted directly from authentic poster) */
  --jjm-purple: #472684;
  --jjm-purple-dark: #371b6d;
  --jjm-purple-deep: #281254;
  --jjm-purple-light: #6439b7;
  --jjm-purple-subtle: #f5f1fc;
  --jjm-purple-border: #472684;
  
  --jjm-lavender: #cfc2ee;
  --jjm-lavender-light: #ece6fa;
  --jjm-lavender-glow: rgba(195, 180, 238, 0.4);

  --whatsapp-green: #0bd13c;
  --whatsapp-green-dark: #09a930;
  
  --text-dark: #1e0e3c;
  --text-body: #231245;
  --text-muted: #5e4f7a;
  --white: #ffffff;
  --bg-stage: #0c0717;

  /* Typography */
  --font-en: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-hi: 'Noto Sans Devanagari', 'Poppins', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 16px 38px rgba(35, 18, 69, 0.12), 0 4px 12px rgba(35, 18, 69, 0.08);
  --shadow-banner: 0 4px 16px rgba(40, 18, 84, 0.25);
}

/* --------------------------------------------------------------------------
   Global Reset & Base Setup
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-stage);
  font-family: var(--font-en);
  color: var(--text-dark);
  user-select: none;
  -webkit-user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Stage & Scale Container (Engineered for 55" Display Scaling)
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-stage);
}

/* Base Signage Board */
.signage-board {
  position: absolute;
  background-color: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
  overflow: hidden;
}

/* Base Signage Board - Hidden by default */
.signage-board {
  position: absolute;
  background-color: var(--white);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform-origin: center center;
  overflow: hidden;
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 1. Helpline Screen */
body.active-screen-helpline.orient-vertical #helpline-v,
body.active-screen-helpline.mode-vertical #helpline-v {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
body.active-screen-helpline.orient-horizontal #helpline-h,
body.active-screen-helpline.mode-horizontal #helpline-h {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* 2. Patient & Family Rights (16 Points) */
body.active-screen-rights.orient-vertical #rights-v,
body.active-screen-rights.mode-vertical #rights-v {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
body.active-screen-rights.orient-horizontal #rights-h,
body.active-screen-rights.mode-horizontal #rights-h {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* 3. Patient & Family Responsibilities (15 Points) */
body.active-screen-resp.orient-vertical #resp-v,
body.active-screen-resp.mode-vertical #resp-v {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
body.active-screen-resp.orient-horizontal #resp-h,
body.active-screen-resp.mode-horizontal #resp-h {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* 4. Mission & Vision */
body.active-screen-mission.orient-vertical #mission-v,
body.active-screen-mission.mode-vertical #mission-v {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
body.active-screen-mission.orient-horizontal #mission-h,
body.active-screen-mission.mode-horizontal #mission-h {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* 5. Contact Image Screen (Dual Orientation) */
body.active-screen-contact-img.orient-vertical #contact-img-v,
body.active-screen-contact-img.mode-vertical #contact-img-v {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
body.active-screen-contact-img.orient-horizontal #contact-img-h,
body.active-screen-contact-img.mode-horizontal #contact-img-h {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* ==========================================================================
   1. VERTICAL VIEW (PORTRAIT 9:16) - EXACT 1:1 POSTER REPLICA
   Base canvas: 1080px wide x 1920px high (Standard 55" Portrait Display)
   ========================================================================== */
.vertical-view {
  width: 1080px;
  height: 1920px;
  border: 14px solid var(--jjm-purple);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Vertical Header with JJM Logo */
.v-header {
  padding: 30px 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.v-header .logo-wrapper {
  width: 100%;
  max-width: 820px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jjm-main-logo {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Purple Full-Width Banner */
.purple-banner {
  background-color: var(--jjm-purple);
  color: var(--white);
  text-align: center;
  padding: 24px 20px;
  width: 100%;
  box-shadow: var(--shadow-banner);
  position: relative;
  z-index: 2;
}

.banner-title {
  font-family: var(--font-en);
  font-size: 47px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.15;
}

.banner-title-hi {
  font-family: var(--font-hi);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: none;
}

/* Vertical Content Sections (English & Hindi) */
.v-section {
  padding: 32px 46px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: #ffffff;
}

.section-intro {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.section-intro.text-hi {
  font-family: var(--font-hi);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.45;
}

/* Contact Grid & Aligned Rows */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-row {
  display: grid;
  grid-template-columns: 145px 50px 1fr;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid #ded5f2;
}

.contact-row:last-child {
  border-bottom: 4px solid var(--jjm-purple);
  padding-bottom: 20px;
  margin-bottom: 8px;
}

.icon-col {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.img-icon {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

.icon-phone-wrap .img-icon {
  height: 56px;
}

.icon-wa-wrap .img-icon {
  height: 60px;
}

.icon-mail-wrap .img-icon {
  height: 46px;
}

.icon-tel-wrap .img-icon {
  height: 54px;
}

/* Vertical Divider Bars */
.divider-col {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.divider-bar {
  font-family: var(--font-en);
  font-size: 54px;
  font-weight: 800;
  color: var(--jjm-purple);
  line-height: 1;
  display: inline-block;
}

.divider-col.dual-divider {
  gap: 16px;
}

/* Contact Info Values */
.info-col {
  display: flex;
  align-items: center;
  overflow: visible;
}

.contact-value {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--jjm-purple);
  letter-spacing: -0.5px;
  line-height: 1.1;
  white-space: nowrap;
  display: inline-block;
}

.phone-value {
  font-size: 74px;
  letter-spacing: 0.5px;
}

.email-value {
  font-size: 35px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.landline-value {
  font-size: 74px;
  letter-spacing: 0.5px;
}

/* Reception Complaint Box Notice */
.section-notice {
  font-family: var(--font-en);
  font-size: 31px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.38;
  margin-top: 8px;
}

.section-notice.text-hi {
  font-family: var(--font-hi);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.48;
}

/* Vertical Footer Wave */
.v-footer {
  width: 100%;
  margin-top: auto;
  position: relative;
  background: transparent;
  line-height: 0;
}

.wave-container {
  width: 100%;
  height: 120px;
  overflow: hidden;
  position: relative;
}

.vector-wave {
  width: 100%;
  height: 100%;
  display: block;
}


/* ==========================================================================
   2. HORIZONTAL VIEW (LANDSCAPE 16:9) - SPECIALLY ENGINEERED FOR 55" TV
   Base canvas: 1920px wide x 1080px high (Standard 55" Landscape Display)
   ========================================================================== */
.horizontal-view {
  width: 1920px;
  height: 1080px;
  border: 14px solid var(--jjm-purple);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fbf9ff;
}

/* Top Landscape Header */
.h-header {
  padding: 18px 45px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(71, 38, 132, 0.12);
  box-shadow: 0 4px 18px rgba(71, 38, 132, 0.08);
  position: relative;
  z-index: 10;
}

.h-header-brand {
  display: flex;
  align-items: center;
}

.h-main-logo {
  height: 85px;
  width: auto;
  object-fit: contain;
  display: block;
}

.h-header-center {
  display: flex;
  align-items: center;
}

.h-master-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--jjm-purple) 0%, var(--jjm-purple-dark) 100%);
  color: #fff;
  padding: 10px 28px;
  border-radius: 40px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 14px rgba(71, 38, 132, 0.35);
}

.pulse-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0bd13c;
  box-shadow: 0 0 10px #0bd13c;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.h-header-right {
  display: flex;
  align-items: center;
}

.reception-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--jjm-purple-subtle);
  border: 1.5px solid var(--jjm-lavender);
  color: var(--jjm-purple);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Horizontal 2-Column Content Grid */
.h-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 24px 45px;
  flex: 1;
  align-items: stretch;
}

.h-column {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: #ffffff;
  border: 2px solid rgba(71, 38, 132, 0.16);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.h-col-banner {
  background: var(--jjm-purple);
  color: #ffffff;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h-banner-title {
  font-family: var(--font-en);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.h-banner-title-hi {
  font-family: var(--font-hi);
  font-size: 38px;
  font-weight: 800;
  text-transform: none;
}

.lang-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.h-col-card {
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 20px;
}

.h-intro {
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.h-intro.text-hi {
  font-family: var(--font-hi);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.42;
}

/* Horizontal Contact List */
.h-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 3px solid #ded5f2;
  margin-bottom: 6px;
}

.h-contact-item {
  display: grid;
  grid-template-columns: 140px 50px 1fr;
  align-items: center;
  padding: 10px 14px;
  background: #fbf9ff;
  border: 2px solid rgba(71, 38, 132, 0.2);
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(71, 38, 132, 0.05);
}

.h-item-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.h-item-icons .img-icon {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.h-item-icons .icon-wa-wrap .img-icon {
  height: 52px;
}

.h-item-icons .icon-mail-wrap .img-icon {
  height: 38px;
}

.h-item-icons .icon-tel-wrap .img-icon {
  height: 44px;
}

.h-item-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 800;
  color: var(--jjm-purple);
  line-height: 1;
}

.h-item-text {
  display: flex;
  flex-direction: column;
}

.h-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.h-value {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--jjm-purple);
  line-height: 1.1;
  white-space: nowrap;
}

.h-value.phone-value {
  font-size: 42px;
}

.h-value.email-value {
  font-size: 27px;
  letter-spacing: -0.3px;
}

.h-value.landline-value {
  font-size: 42px;
}

/* Horizontal Notice Box */
.h-notice-box {
  background: #f7f3ff;
  border-left: 6px solid var(--jjm-purple);
  padding: 14px 18px;
  border-radius: 8px;
}

.notice-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--jjm-purple);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.h-notice-text {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
}

.h-notice-text.text-hi {
  font-family: var(--font-hi);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.42;
}

/* Horizontal Footer */
.h-footer {
  width: 100%;
  position: relative;
}

.h-footer-strip {
  padding: 10px 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  background: #ffffff;
}

.h-footer-strip .location-pin {
  margin-right: 4px;
}

.h-wave-container {
  width: 100%;
  height: 48px;
  overflow: hidden;
  line-height: 0;
}


/* ==========================================================================
   RIGHT-BOTTOM 'i' FLOATING BUTTON (Signage Trigger)
   ========================================================================== */
.info-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jjm-purple) 0%, var(--jjm-purple-dark) 100%);
  border: 2px solid rgba(207, 194, 238, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(71, 38, 132, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  z-index: 9999;
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.info-floating-btn:hover,
.info-floating-btn:focus,
.info-floating-btn.active {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(71, 38, 132, 0.7), 0 0 0 3px #0bd13c;
  outline: none;
}

.info-letter {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  user-select: none;
}

/* ==========================================================================
   3. IMAGE VIEW - FOR POSTERS FROM 'IMAGE' FOLDER
   ========================================================================== */
.image-view {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-view.board-v,
.image-view.vertical-view {
  width: 1080px;
  height: 1920px;
  border: 14px solid var(--jjm-purple);
}

.image-view.board-h,
.image-view.horizontal-view {
  width: 1920px;
  height: 1080px;
  border: 14px solid var(--jjm-purple);
}

.image-inner-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.full-screen-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   RIGHT-BOTTOM POPUP MENU PANEL (55" TV Controls & Screen Chooser)
   ========================================================================== */
.info-menu-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-height: 82vh;
  background: rgba(16, 8, 28, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(207, 194, 238, 0.3);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #ffffff;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.info-menu-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.menu-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

/* Tabs */
.menu-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 12px;
}

.menu-tab-btn {
  background: transparent;
  border: none;
  color: #cfc2ee;
  padding: 6px 14px;
  border-radius: 9px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.menu-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.menu-tab-btn.active {
  background: var(--jjm-purple);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(71, 38, 132, 0.6);
}

.menu-close-btn {
  background: transparent;
  border: none;
  color: #cfc2ee;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.2s ease;
}

.menu-close-btn:hover {
  color: #ffffff;
}

.menu-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.menu-tab-pane {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.menu-tab-pane.active {
  display: flex;
}

.menu-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #bfaee3;
}

/* Screens List */
.screens-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
}

.screen-item-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-smooth);
  font-family: var(--font-en);
}

.screen-item-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(207, 194, 238, 0.4);
}

.screen-item-btn:focus,
.screen-item-btn:focus-visible {
  outline: 3px solid #0bd13c;
  outline-offset: 2px;
  background: rgba(71, 38, 132, 0.5);
}

.screen-item-btn.active {
  background: linear-gradient(135deg, rgba(71, 38, 132, 0.9) 0%, rgba(40, 18, 84, 0.95) 100%);
  border-color: #0bd13c;
  box-shadow: 0 4px 14px rgba(71, 38, 132, 0.5);
}

.screen-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.screen-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.screen-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.screen-item-sub {
  font-size: 11px;
  color: #bfaee3;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.screen-check-mark {
  font-size: 15px;
  font-weight: 800;
  color: #0bd13c;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.screen-item-btn.active .screen-check-mark {
  opacity: 1;
}

.slideshow-btn {
  background: rgba(11, 209, 60, 0.12);
  border: 1.5px solid rgba(11, 209, 60, 0.4);
  color: #55f884;
  font-weight: 700;
}

.slideshow-btn.active {
  background: #0bd13c;
  color: #0c0717;
  border-color: #0bd13c;
  box-shadow: 0 0 16px rgba(11, 209, 60, 0.6);
}

.menu-orient-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #cfc2ee;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Android TV Remote D-Pad Navigation Focus */
.menu-btn:focus,
.menu-btn:focus-visible {
  outline: 3px solid #0bd13c;
  outline-offset: 2px;
  background: rgba(71, 38, 132, 0.6);
  color: #ffffff;
}

.menu-btn.active {
  background: var(--jjm-purple);
  border-color: var(--jjm-lavender);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(71, 38, 132, 0.6);
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}

/* Screen Rotation & TV Placement Controls */
.menu-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.rotation-angle-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0bd13c;
  background: rgba(11, 209, 60, 0.14);
  border: 1px solid rgba(11, 209, 60, 0.35);
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.4px;
}

.rotation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rot-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #cfc2ee;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.rot-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(207, 194, 238, 0.4);
}

.rot-btn:focus,
.rot-btn:focus-visible {
  outline: 3px solid #0bd13c;
  outline-offset: 1px;
  background: rgba(71, 38, 132, 0.6);
  color: #ffffff;
}

.rot-btn.active {
  background: var(--jjm-purple);
  border-color: #0bd13c;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(71, 38, 132, 0.6);
}

.rot-icon {
  font-size: 14px;
  font-weight: 800;
  color: #55f884;
}

.rot-btn.active .rot-icon {
  color: #ffffff;
}

.rot-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Android TV Fullscreen Action Button */
.fs-action-btn {
  background: linear-gradient(135deg, rgba(71, 38, 132, 0.6) 0%, rgba(40, 18, 84, 0.8) 100%);
  border: 1.5px solid var(--jjm-lavender);
  color: #ffffff;
  font-weight: 700;
}

.fs-action-btn:hover {
  background: var(--jjm-purple);
  box-shadow: 0 4px 16px rgba(71, 38, 132, 0.7);
}

.remote-hint {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: #9f8ec2;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #190f30;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(207, 194, 238, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10001;
}

.toast.show-toast {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   PATIENT RIGHTS & RESPONSIBILITIES - VERTICAL & HORIZONTAL LAYOUT STYLES
   ========================================================================== */

/* Compact Header for Vertical Tables */
.v-header.header-compact {
  padding: 16px 36px 12px;
}
.header-compact .jjm-main-logo {
  max-width: 580px;
}

/* Split Purple Banner (English | Hindi Title) */
.split-purple-banner {
  background-color: var(--jjm-purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  width: 100%;
  box-shadow: var(--shadow-banner);
  position: relative;
  z-index: 2;
  gap: 16px;
}

.split-banner-col {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  flex: 1;
}

.split-banner-col.hi-text {
  font-family: var(--font-hi);
  font-size: 36px;
  font-weight: 800;
  text-transform: none;
}

.split-banner-divider {
  width: 3px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.4);
}

/* Vertical Table View (1 to 16 rows) */
.table-container-v {
  flex: 1;
  padding: 10px 22px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  background: #ffffff;
  overflow: hidden;
}

.table-container-v .table-row {
  display: grid;
  grid-template-columns: 46px 1fr 1.15fr;
  align-items: center;
  gap: 16px;
  padding: 9px 12px;
  border-bottom: 2.5px solid #cfc2ee;
  border-radius: 8px;
  background: #ffffff;
}

.table-container-v .table-row:nth-child(even) {
  background-color: #faf8fe;
}

.table-container-v .table-row:last-child {
  border-bottom: 3px solid var(--jjm-purple);
}

.row-num {
  width: 42px;
  height: 42px;
  background: var(--jjm-purple);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 21px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(71, 38, 132, 0.25);
  flex-shrink: 0;
}

.row-en {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text-dark);
  border-right: 2px solid #ded5f2;
  padding-right: 14px;
}

.row-hi {
  font-family: var(--font-hi);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.38;
  color: #1c093a;
}

/* ==========================================================================
   HORIZONTAL 2-COLUMN WIDE GRID (FILLS 1920x1080 - ZERO PILLARBOX)
   ========================================================================== */
.h-dual-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 12px 24px;
  flex: 1;
  height: calc(1080px - 82px - 50px - 28px);
  background: #f7f5fc;
  box-sizing: border-box;
}

.table-card-col {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(35, 18, 69, 0.08);
  border: 1.5px solid #ded5f2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.table-card-header {
  background: linear-gradient(135deg, var(--jjm-purple) 0%, var(--jjm-purple-dark) 100%);
  color: #ffffff;
  padding: 9px 18px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(40, 18, 84, 0.2);
}

.card-header-hi {
  font-family: var(--font-hi);
  font-size: 21px;
  font-weight: 800;
}

.table-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 6px 12px;
  gap: 4px;
}

.table-card-body .table-row {
  display: grid;
  grid-template-columns: 38px 1fr 1.1fr;
  align-items: center;
  gap: 14px;
  padding: 6px 8px;
  border-radius: 6px;
  border-bottom: 2px solid #cfc2ee;
  background: #ffffff;
}

.table-card-body .table-row:nth-child(even) {
  background: #faf8fe;
}

.table-card-body .table-row:last-child {
  border-bottom: 2.5px solid var(--jjm-purple);
}

.table-card-body .row-num {
  width: 36px;
  height: 36px;
  font-size: 18px;
  border-radius: 6px;
}

.table-card-body .row-en {
  font-family: var(--font-en);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--text-dark);
  border-right: 1.5px solid #ded5f2;
  padding-right: 12px;
}

.table-card-body .row-hi {
  font-family: var(--font-hi);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #1c093a;
}

/* ==========================================================================
   MISSION & VISION - DUAL ORIENTATION (PORTRAIT & 16:9 WIDE)
   ========================================================================== */

/* Mission & Vision - Vertical (Stacked Cards) */
.mission-body-v {
  flex: 1;
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 24px;
  background: #faf8fe;
}

.mv-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 34px;
  border: 2px solid #ded5f2;
  box-shadow: 0 10px 30px rgba(71, 38, 132, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mv-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mv-icon {
  font-size: 36px;
}

.mv-title {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 800;
  color: var(--jjm-purple);
  letter-spacing: 0.8px;
}

.mv-en {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-dark);
}

.mv-divider {
  height: 3.5px;
  background: linear-gradient(90deg, var(--jjm-purple) 0%, rgba(207, 194, 238, 0.8) 100%);
  border-radius: 3px;
  margin: 6px 0;
}

.mv-hi {
  font-family: var(--font-hi);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.6;
  color: #1c093a;
}

/* Mission & Vision - Horizontal (Full 16:9 Side-by-Side Cards) */
.h-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px 36px;
  flex: 1;
  height: calc(1080px - 82px - 50px - 28px);
  background: #f7f5fc;
  box-sizing: border-box;
}

.h-mv-card {
  background: #ffffff;
  border-radius: 18px;
  border: 2px solid #ded5f2;
  box-shadow: 0 8px 24px rgba(71, 38, 132, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.h-mv-header {
  background: linear-gradient(135deg, var(--jjm-purple) 0%, var(--jjm-purple-dark) 100%);
  color: #ffffff;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.h-mv-header .mv-icon {
  font-size: 30px;
}

.h-mv-title {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.h-mv-body {
  padding: 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 14px;
}

.h-mv-en {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.52;
  color: var(--text-dark);
}

.h-mv-hi {
  font-family: var(--font-hi);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.6;
  color: #1c093a;
}

