/* ========================================================
   BUSINESS PAGE - SIMPLE MODERN DESIGN
   ======================================================== */

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

.dark-mode {
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --bg-white: #1e293b;
  --bg-light: #0f172a;
  --bg-gray: #334155;
  --border-color: #334155;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section.main-content {
  display: block;
}

/* ========================================================
   MAIN LAYOUT
   ======================================================== */

.business_area_concern {
  display: flex;
  min-height: 100vh;
  background: var(--bg-light);
}

/* ========================================================
   LEFT SIDEBAR - SIMPLE MODERN DESIGN
   ======================================================== */

.sidebar {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--bg-white);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Sidebar Header */
.b-head {
  padding: 24px 20px 20px;
  background: var(--primary-color);
}

.b-head h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
}

/* Search Box */
.b-head .search-box {
  position: relative;
}

.b-head .search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

.b-head .search-box input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: rgba(255,255,255,0.95);
  color: var(--text-primary);
}

.b-head .search-box input::placeholder {
  color: var(--text-muted);
}

.b-head .search-box input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Category Area */
.b-area {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.b-area::-webkit-scrollbar {
  width: 4px;
}

.b-area::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

/* Categories List */
ul.level-one {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.level-one li.category-item {
  border-bottom: 1px solid var(--border-color);
}

ul.level-one li.category-item:last-child {
  border-bottom: none;
}

/* Category Header */
.category-header {
  display: flex;
  align-items: center;
  padding: 0;
}

.category-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.category-link:hover {
  background: var(--bg-gray);
  color: var(--primary-color);
}

.category-link i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.category-link:hover i {
  color: var(--primary-color);
}

.category-item.active .category-link {
  color: var(--primary-color);
  background: rgba(99,102,241,0.08);
}

.category-item.active .category-link i {
  color: var(--primary-color);
}

/* Count Badge */
.count-badge {
  margin-right: 16px;
  background: var(--bg-gray);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

/* Toggle Button */
.toggler {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggler:hover {
  background: var(--bg-gray);
  color: var(--primary-color);
}

.toggler i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.category-item.active .toggler i {
  transform: rotate(180deg);
}

/* Subcategories */
ul.level-two {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-gray);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

ul.level-two.active {
  max-height: 500px;
}

ul.level-two li a {
  display: block;
  padding: 10px 16px 10px 48px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

ul.level-two li a:hover {
  color: var(--primary-color);
  background: var(--bg-white);
}

/* ========================================================
   MAIN CONTENT AREA
   ======================================================== */

.business_area_concern .main_part {
  flex: 1;
  padding: 32px 40px;
  min-width: 0;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.section-header .section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* Content Layout */
.business_area_concern .main_part .content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.main_part .content__inner {
  flex: 1;
  min-width: 0;
  transition: all 0.3s ease;
}

/* ========================================================
   COMPANY CARDS
   ======================================================== */

.b-holder {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.b-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.b-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.b-item.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}

/* Card Image */
.b-item .upper {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  overflow: hidden;
}

.b-item .upper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.b-item:hover .upper img {
  transform: scale(1.05);
}

.b-item .upper .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.b-item:hover .upper .image-overlay {
  opacity: 1;
}

.b-item .upper .view-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 6px;
}

.b-item .upper .view-details i {
  font-size: 10px;
}

/* Card Content */
.b-item .lower {
  padding: 16px;
  display: flex;
  gap: 14px;
}

.b-item .lower .logo-container img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
  margin-top: -36px;
  background: var(--bg-white);
}

.b-item .lower .texts {
  flex: 1;
  min-width: 0;
}

.b-item p.title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.b-item:hover p.title {
  color: var(--primary-color);
}

.b-item p.estd {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.b-item p.estd i {
  font-size: 10px;
}

.b-item p.link {
  font-size: 11px;
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.b-item p.link i {
  color: var(--primary-color);
  font-size: 9px;
}

.b-item p.link a {
  color: var(--primary-color);
  text-decoration: none;
}

.b-item p.link a:hover {
  text-decoration: underline;
}

.b-item .card-action {
  display: none;
}

/* ========================================================
   COMPANY DETAIL SIDEBAR
   ======================================================== */

.content_sidebar {
  width: 360px;
  min-width: 360px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.content_sidebar::-webkit-scrollbar {
  width: 4px;
}

.content_sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.content_sidebar.active {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sidebar Header */
.content_sidebar .sidebar-header {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  overflow: hidden;
}

.content_sidebar .sidebar_top_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content_sidebar .header-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

/* Summary */
.content_sidebar .summary {
  padding: 0 24px 24px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.content_sidebar .summary .close-btn {
  position: absolute;
  top: -140px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s ease;
  z-index: 10;
}

.content_sidebar .summary .close-btn:hover {
  background: white;
  transform: rotate(90deg);
}

.content_sidebar .summary .logo-badge img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 3px solid var(--bg-white);
  box-shadow: var(--shadow-md);
  margin-top: -44px;
  background: var(--bg-white);
}

.content_sidebar .summary .texts {
  margin-top: 16px;
}

.content_sidebar .summary .texts h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.content_sidebar .summary .texts .category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--primary-color);
  background: rgba(99,102,241,0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.content_sidebar .summary .texts .category-tag i {
  font-size: 10px;
}

.content_sidebar .summary .texts .website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.content_sidebar .summary .texts .website-link:hover {
  text-decoration: underline;
}

.content_sidebar .summary .texts .website-link i {
  font-size: 10px;
}

/* Details */
.content_sidebar .dtls {
  padding: 24px;
}

.content_sidebar .dtls .info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-gray);
  border-radius: var(--radius-md);
}

.content_sidebar .dtls .info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 18px;
}

.content_sidebar .dtls .info-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content_sidebar .dtls .info-value {
  font-size: 24px;
  color: var(--text-primary);
  font-weight: 700;
}

/* Board Directors */
.content_sidebar .board_directors {
  padding: 24px;
  background: var(--bg-gray);
}

.content_sidebar .board_directors .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.content_sidebar .board_directors .section-title i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
}

.content_sidebar .board_directors .section-title h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.content_sidebar .board_directors h5 {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 12px 0;
}

/* Directors List */
.content_sidebar .board_directors .management ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.content_sidebar .board_directors .management ul li.director-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.content_sidebar .board_directors .management ul li .director-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.content_sidebar .board_directors .management ul li .profile h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px 0;
}

.content_sidebar .board_directors .management ul li .profile p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.content_sidebar .board_directors .management ul li .profile p i {
  font-size: 9px;
  color: var(--primary-color);
}

/* Diversity Stats */
.content_sidebar .board_directors .diversity-stats {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
}

.content_sidebar .board_directors .diversity-stats .stats-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.content_sidebar .board_directors .male_female {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content_sidebar .board_directors .male_female .gender {
  display: flex;
  align-items: center;
  gap: 12px;
}

.content_sidebar .board_directors .male_female .gender-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}

.content_sidebar .board_directors .male_female .male .gender-icon {
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
}

.content_sidebar .board_directors .male_female .female .gender-icon {
  background: rgba(236,72,153,0.1);
  color: #ec4899;
}

.content_sidebar .board_directors .male_female .percentage-value {
  font-size: 18px;
  font-weight: 700;
}

.content_sidebar .board_directors .male_female .male .percentage-value {
  color: #3b82f6;
}

.content_sidebar .board_directors .male_female .female .percentage-value {
  color: #ec4899;
}

.content_sidebar .board_directors .male_female .percent p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.content_sidebar .board_directors .male_female .progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-gray);
  border-radius: 3px;
  overflow: hidden;
}

.content_sidebar .board_directors .male_female .progress-fill {
  height: 100%;
  border-radius: 3px;
}

.content_sidebar .board_directors .male_female .male-fill {
  background: #3b82f6;
}

.content_sidebar .board_directors .male_female .female-fill {
  background: #ec4899;
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */

@media (max-width: 1199px) {
  .main_part .content__inner.active {
    width: 100%;
  }
  
  .content_sidebar.active {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    z-index: 1000;
    box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  }
  
  .content_sidebar .summary .close-btn {
    top: 16px;
    right: 16px;
    opacity: 1;
  }
}

@media (max-width: 991px) {
  .business_area_concern {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .business_area_concern .main_part {
    padding: 24px 20px;
  }
  
  .section-header h3 {
    font-size: 26px;
  }
  
  .content_sidebar {
    width: 90vw;
    min-width: 90vw;
  }
}

@media (max-width: 576px) {
  .b-holder {
    grid-template-columns: 1fr;
  }
  
  .content_sidebar {
    width: 100vw;
    min-width: 100vw;
  }
  
  .business_area_concern .main_part {
    padding: 20px 16px;
  }
}

/* RTL Support */
.business_area_concern.rtl {
  flex-direction: row-reverse;
}

.rtl .sidebar {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

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

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

.rtl .toggler {
  margin-right: 0;
  margin-left: 12px;
}

.rtl .count-badge {
  margin-right: 0;
  margin-left: 16px;
}

.rtl ul.level-two li a {
  padding: 10px 48px 10px 16px;
}
