/* Custom 70/30 layout override */
@media (min-width: 768px) {
  .col-md-8 {
    width: 70% !important;
    flex: 0 0 70% !important;
    max-width: 70% !important;
  }
  
  .col-md-4.fix-sidebar-second {
    width: 30% !important;
    flex: 0 0 30% !important;
    max-width: 30% !important;
  }
}

/* Full-width quicktabs optimization for 30% sidebar */
.region-sidebar-second .quicktabs-wrapper {
  margin-bottom: 15px;
  background: #fff;
  border-radius: 0; /* Remove rounded corners like D7 */
  overflow: hidden;
  box-shadow: none; /* Remove shadow like D7 */
  border: 1px solid #dee2e6; /* Add border like user registration box */
  width: 100% !important; /* Full width */
  padding: 0 0px; !important
}

.region-sidebar-second .quicktabs-tabs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  width: 100% !important; /* Full width */
}

.region-sidebar-second .quicktabs-tabs li {
  flex: 1;
  margin: 0;
  border-right: 1px solid #dee2e6;
  width: 50% !important; /* Each tab 50% since you have 2 tabs */
}

.region-sidebar-second .quicktabs-tabs li:last-child {
  border-right: none;
}

.region-sidebar-second .quicktabs-tabs li a {
  display: block;
  padding: 12px 8px; /* More padding like D7 */
  font-size: 12px; /* Bigger font like D7 */
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: #495057;
  background: transparent;
  transition: all 0.2s ease;
  word-break: break-word;
  width: 100% !important;
  box-sizing: border-box;
}

.region-sidebar-second .quicktabs-tabs li a:hover {
  background: #e9ecef;
  color: #212529;
}

.region-sidebar-second .quicktabs-tabs li.active a {
  background: #007bff;
  color: white;
  font-weight: 700;
}

.region-sidebar-second .quicktabs-main {
  padding: 15px; /* More padding like D7 */
  width: 100% !important; /* Full width */
  box-sizing: border-box;
}

/* Full-width content inside quicktabs */
.region-sidebar-second .quicktabs-tabpage {
  width: 100% !important;
}

.region-sidebar-second .view-content {
  width: 100% !important;
}

.region-sidebar-second .view-content .views-row {
  margin-bottom: 12px; /* More spacing like D7 */
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
  font-size: 12px; /* Bigger font like D7 */
  width: 100% !important;
}

.region-sidebar-second .view-content .views-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Image field optimization */
.region-sidebar-second .views-field-field-image {
  flex-shrink: 0;
  width: 60px; /* Bigger images like D7 */
}

.region-sidebar-second .views-field-field-image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

/* Content area */
.region-sidebar-second .views-row-content {
  flex: 1;
  min-width: 0;
}

/* Title optimization */
.region-sidebar-second .views-field-title a {
  font-size: 13px; /* Bigger font like D7 */
  font-weight: 600;
  line-height: 1.3;
  color: #212529;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.region-sidebar-second .views-field-title a:hover {
  color: #007bff;
  text-decoration: underline;
}

/* Body/excerpt optimization */
.region-sidebar-second .views-field-body {
  font-size: 11px; /* Bigger font like D7 */
  line-height: 1.4;
  color: #6c757d;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* More lines like D7 */
  -webkit-box-orient: vertical;
  max-height: 4.2em;
}



