/* ==========================================================================
   PROCEPT CUSTOM THEME - REGIONAL DESIGN
   ========================================================================== */

/* General Colors */
:root {
  --procept-blue: #00548E;
  --dark-bg: #1a1a1a;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  --footer-bg: #222222;
}

.bg-dark {
  background-color: var(--dark-bg) !important;
}

.bg-light {
  background-color: var(--light-bg) !important;
}

.text-light {
  color: #ffffff !important;
}

.text-right {
  text-align: right;
}

/* Header */
.top-bar {
  background-color: var(--dark-bg);
  min-height: 40px;
}

.header-main {
  background-color: #ffffff;
}

.navigation-region ul {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.flex-column {
  flex-direction: column !important;
}

.w-100 {
  width: 100% !important;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.top-left-region {
  flex: 0 0 calc(41.666667% - 20px) !important;
  max-width: calc(41.666667% - 20px) !important;
}

.top-right-region {
  flex: 0 0 calc(58.333333% - 20px) !important;
  max-width: calc(58.333333% - 20px) !important;
  text-align: right;
}

.top-bar-wrapper .container {
  display: flex !important;
  gap: 40px !important;
}

.site-branding,
.navigation-region {
  flex: 0 0 auto !important;
  max-width: none !important;
}

/* Combined Slider, Title & Breadcrumb */
.slider-title-breadcrumb-wrapper {
  background-image: url('../../images/page_title.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 0 !important;
}

.relative-container {
  position: relative;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
}

.slider-region-full {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-title-region {
  color: #000000;
  text-transform: uppercase;
  margin: 0 !important;
  padding: 10px 0;
}

.breadcrumb-region-bottom {
  position: static !important;
}

.breadcrumb-region-bottom .breadcrumb {
  background-color: #777 !important;
  padding: 8px 15px !important;
  display: inline-block !important;
  border-radius: 2px;
}

.breadcrumb-region-bottom .breadcrumb__list {
  padding-bottom: 0 !important;
  margin-inline-start: 0 !important;
  display: flex;
  align-items: center;
}

.breadcrumb-region-bottom .breadcrumb__item {
  color: #ffffff !important;
  font-size: 14px;
}

.breadcrumb-region-bottom .breadcrumb__link {
  color: #87CEFA !important;
  /* Light Blue */
  font-weight: normal;
}

.breadcrumb-region-bottom .breadcrumb__link:hover {
  color: #FFA500 !important;
  /* Orange */
}

.breadcrumb-region-bottom .breadcrumb__item:nth-child(n + 2)::before {
  content: "\f105" !important;
  /* FontAwesome angle right */
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  border: none !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 10px !important;
  color: #FFA500 !important;
  /* Orange */
}

/* Fallback if FontAwesome is not loaded correctly */
.breadcrumb-region-bottom .breadcrumb__item:nth-child(n + 2)::before {
  content: "\25B8" !important;
  /* Unicode triangle */
  font-family: inherit;
}

/* Force remove Drupal's default block margins in this section */
.slider-title-breadcrumb-wrapper .region>*,
.slider-title-breadcrumb-wrapper .block,
.slider-title-breadcrumb-wrapper [data-drupal-selector] {
  margin-block-end: 0 !important;
  margin-bottom: 0 !important;
}

.pr-md-3 {
  padding-right: 1.5rem !important;
}

.pl-md-3 {
  padding-left: 1.5rem !important;
}

.message-region-wrapper,
.feature-region-wrapper,
.services-region-wrapper,
.parallax-01-wrapper {
  padding: 0;
  width: 100%;
}

.bg-black {
  background-color: #111111 !important;
}

.text-right {
  text-align: right !important;
}

.bottom-break-line-wrapper .region>*,
.bottom-break-line-wrapper .block {
  margin-block-end: 0 !important;
  margin-bottom: 0 !important;
}

.main-content-wrapper .region>*,
.parallax-02-wrapper .region>*,
.parallax-03-wrapper .region>*,
.parallax-04-wrapper .region>*,
.latest-news-wrapper .region>*,
.site-footer-wrapper .region>*,
.bottom-break-line-wrapper .region>*,
.follow-us-wrapper .region>*,
.user-04-wrapper .region>*,
.clients-wrapper .region>*,
.user-row-0-wrapper .region>*,
.user-row-2-wrapper .region>*,
.our-works-wrapper .region>*,
.message-region-wrapper .region>*,
.feature-region-wrapper .region>*,
.services-region-wrapper .region>*,
.parallax-01-wrapper .region>*,
.feature-columns-wrapper .region>* {
  margin-block-end: 0 !important;
  margin-bottom: 0 !important;
}

/* Front Page News Gap Fix */
.view-front-page .view-content,
.view-front-page .view-content.grid {
  gap: 0 !important;
  column-gap: 0 !important;
  row-gap: 0 !important;
}

.view-front-page .views-row {
  margin-bottom: 0 !important;
  padding-bottom: 10px !important;
}

.user-row-0-wrapper {
  padding: 10px 0 !important;
}

.our-works-wrapper,
.latest-news-wrapper,
.footer-container-wrapper {
  padding: 80px 0 !important;
}

.footer-container-wrapper {
  border-bottom: 1px #0f0f0f solid;
}

.footer-bottom-bar {
  border-top: 1px #0f0f0f solid;
  padding: 20px 0 !important;
}

.follow-us-wrapper,
.clients-wrapper {
  margin-top: 5px;
  padding: 5px 0 !important;
}

.main-content-wrapper {
  padding-top: 80px !important;
  padding-bottom: 40px !important;
}

.services-region-wrapper {
  background-color: #f8f8f8 !important;
}

/* Feature columns */
.feature-columns-wrapper {
  background-color: #ffffff;
  padding: 80px 0 !important;
}

/* Strapline */
.strapline-region-wrapper {
  background-color: #222222 !important;
  color: #ffffff;
  padding: 70px 0 !important;
}

/* Grid Layouts */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class*="col-"] {
  padding-right: 15px;
  padding-left: 15px;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-md-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-sm-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

@media (max-width: 768px) {
  [class*="col-md-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Footer */
.site-footer {
  background-color: var(--dark-bg);
  color: #cccccc;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom {
  font-size: 0.9rem;
  color: #999;
}

.full-width {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

.site-branding {
  min-height: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-branding img {
  width: auto;
  display: block;
  padding: 20px 0 !important;
}

.top-bar-wrapper {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-main-wrapper {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.services-region-wrapper {
  background-color: #f8f9fa;
}

.region-label {
  /* This matches the visual verification style for Drupal regions */
  padding: 10px;
  margin-bottom: 20px;
}

/* ======================================== */

.slider-wrapper {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f2f2f2;
}

.slider-inner {
  width: 100%;
  margin: 0 auto;
}

/* Remove negative margins if they exist */
.top-nav-column,
.view-display-id-block_2 {
  margin-top: 0 !important;
}

/* Custom Layer Slider Styles */
.custom-layer-slider {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.custom-layer-slider .slide {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  transition: opacity 700ms ease;
  pointer-events: none;
}

.custom-layer-slider .slide.active {
  opacity: 1 !important;
  pointer-events: auto;
}

.custom-layer-slider .slide img {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  top: 120px;
  left: 50px;
  max-width: 600px;
  color: #fff;
  font-size: 42px;
  line-height: 1.3;
  z-index: 30;
}

/* Navigation Arrows */
.nav-arrow {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 40;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.20);
}

.nav-arrow.left {
  left: 30px;
}

.nav-arrow.right {
  right: 30px;
}

.nav-arrow svg {
  width: 30px;
  height: 30px;
  fill: #444;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {

  /* Stack logo and nav vertically on mobile */
  .header-top-combined .container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .logo-wrapper {
    width: 100%;
    text-align: center;
  }

  .logo-wrapper img {
    height: 60px !important;
  }

  .header-nav-wrapper {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Slider adjustments */
  .custom-layer-slider {
    min-height: 300px;
  }

  .custom-layer-slider .slide {
    height: 300px;
  }

  .slide-caption {
    top: 60px;
    left: 20px;
    font-size: 24px;
    max-width: calc(100% - 40px);
  }

  .nav-arrow {
    width: 45px;
    height: 45px;
  }

  .nav-arrow.left {
    left: 15px;
  }

  .nav-arrow.right {
    right: 15px;
  }

  .nav-arrow svg {
    width: 22px;
    height: 22px;
  }
}


/* Fix right sidebar images */
.right-sidebar img,
.right-sidebar .block img {
  /* max-width: 100% !important;
  width: 100% !important;
  height: auto !important; */
  display: block !important;
  object-fit: contain;
}

.hotline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hotline li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hotline li i {
  flex-shrink: 0;
}

.hotline .email,
.hotline .phone {
  display: inline;
}



/* ---------- GENERAL ROW STYLE ----------- */
.session-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
}

.session-row .form-item {
  width: 200px !important;
}

.session-row input,
.session-row select {
  width: 100% !important;
  box-sizing: border-box;
}

/* ---------- DAY 1 ROW ---------- */
/* #edit-field-day1-0-value,
#edit-field-start-date1-0-value-date,
#edit-field-start-time1-0-value,
#edit-field-instructor1-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */

/* ---------- DAY 2 ROW ---------- */
/* #edit-field-day2-0-value,
#edit-field-start-date2-0-value-date,
#edit-field-start-time2-0-value,
#edit-field-instructor2-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */

/* ---------- DAY 3 ROW ---------- */
/* #edit-field-day3-0-value,
#edit-field-start-date3-0-value-date,
#edit-field-start-time3-0-value,
#edit-field-instructor3-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */

/* ---------- DAY 4 ROW ---------- */
/* #edit-field-day4-0-value,
#edit-field-start-date4-0-value-date,
#edit-field-start-time4-0-value,
#edit-field-instructor4-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */

/* ---------- DAY 5 ROW ---------- */
/* #edit-field-day5-0-value,
#edit-field-start-date5-0-value-date,
#edit-field-start-time5-0-value,
#edit-field-instructor5-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */

/* ---------- DAY 6 ROW ---------- */
/* #edit-field-day6-0-value,
#edit-field-start-date6-0-value-date,
#edit-field-start-time6-0-value,
#edit-field-instructor6-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */

/* ---------- DAY 7 ROW ---------- */
/* #edit-field-day7-0-value,
#edit-field-start-date7-0-value-date,
#edit-field-start-time7-0-value,
#edit-field-instructor7-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */

/* ---------- DAY 8 ROW ---------- */
/* #edit-field-day8-0-value,
#edit-field-start-date8-0-value-date,
#edit-field-start-time8-0-value,
#edit-field-instructor8-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */

/* ---------- DAY 9 ROW ---------- */
/* #edit-field-day9-0-value,
#edit-field-start-date9-0-value-date,
#edit-field-start-time9-0-value,
#edit-field-instructor9-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */

/* ---------- DAY 10 ROW ---------- */
/* #edit-field-day10-0-value,
#edit-field-start-date10-0-value-date,
#edit-field-start-time10-0-value,
#edit-field-instructor10-0-target-id {
  float: left;
  margin-right: 20px;
  width: 200px !important;
} */
/* Make Day1–Day10 inline */
/* [id^="edit-field-day"] input,
[id^="edit-field-start-date"] input,
[id^="edit-field-start-time"] input,
[id^="edit-field-instructor"] input {
  width: 200px !important;
  float: left;
  margin-right: 20px;
} */
/* Restore Main Menu block */

/* Targeting duplicate Structure, Configuration, Affiliated content, and Help links (the ones without icons) */
#toolbar-administration a:not(.toolbar-icon)[data-drupal-link-system-path^="admin/structure"],
#toolbar-administration a:not(.toolbar-icon)[data-drupal-link-system-path^="admin/config"],
#toolbar-administration a:not(.toolbar-icon)[data-drupal-link-system-path^="admin/content/domain-content"],
#toolbar-administration a:not(.toolbar-icon)[data-drupal-link-system-path^="admin/help"],
#toolbar-administration .toolbar-tab>a:not(.toolbar-icon),
#toolbar-administration .toolbar-menu-administration a:not(.toolbar-icon)[data-drupal-link-system-path^="admin/structure"] {
  display: none !important;
}

/* Remove redundant Home links from the administration tray, but PRESERVE icon-based ones (like the Drupal logo) */
#toolbar-item-administration-tray a[data-drupal-link-system-path="<front>"]:not(.toolbar-icon):not(.toolbar-logo),
.toolbar-menu-administration li>a[data-drupal-link-system-path="<front>"]:not(.toolbar-icon):not(.toolbar-logo) {
  display: none !important;
}

/* Note: All toolbar trays are visible by default to ensure menus like the Drupal logo work correctly */

/* ===================================
   CONTACT PAGE LAYOUT - DRUPAL 10 FIX
   =================================== */

/* Main page container - ensure proper width */
body.path-contact .layout-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Main content wrapper */
body.path-contact main {
  width: 100%;
  max-width: 100%;
}

/* Two-column layout container */
body.path-contact .layout--content-narrow,
body.path-contact .layout--content-medium {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* LEFT COLUMN - Contact Form */
body.path-contact .region--content {
  flex: 0 0 48%;
  max-width: 48%;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

/* RIGHT COLUMN - Contact Details Sidebar */
body.path-contact .right-sidebar,
body.path-contact .layout__sidebar-second,
body.path-contact aside.layout__region--second {
  flex: 0 0 52%;
  max-width: 52%;
  min-width: 500px;
  margin: 0 0 0 -220px;
  padding: 0 15px;
  position: relative;
}

/* Ensure sidebar stays within bounds */
body.path-contact .right-sidebar .region--rightsidebar {
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

/* ===================================
   HIDE LEFT SIDEBAR (EMPTY)
   =================================== */

body.path-contact .layout-sidebar-first,
body.path-contact .sidebar-first,
body.path-contact aside.layout__sidebar-first,
body.path-contact .region-sidebar-first,
body.path-contact aside.layout__region--first {
  display: none !important;
}

/* ===================================
   FIX SIDEBAR CONTENT ALIGNMENT
   =================================== */

/* Remove the broken div tag display */
body.path-contact .right-sidebar .field__item>p:first-child {
  display: none;
  /* Hides the "<div class='animate fadeInRight'>" text */
}

/* Clean up field item */
body.path-contact .right-sidebar .field__item {
  overflow: visible !important;
  width: 100%;
  max-width: 100%;
}

/* ===================================
   FIX TABLES IN SIDEBAR - NO SCROLL
   =================================== */

/* Remove horizontal scroll completely */
body.path-contact .right-sidebar table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  overflow: visible !important;
  display: table !important;
  margin: 10px 0 !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Ensure table respects container width */
body.path-contact .right-sidebar .cke_show_border {
  width: 100% !important;
}

/* Two-column layout within tables */
body.path-contact .right-sidebar table tbody {
  display: table-row-group !important;
  width: 100% !important;
}

body.path-contact .right-sidebar table tr {
  display: table-row !important;
  width: 100% !important;
}

body.path-contact .right-sidebar table td {
  display: table-cell !important;
  white-space: normal !important;
  width: 48% !important;
  min-width: 200px !important;
  max-width: none !important;
  word-wrap: break-word !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  padding: 12px 10px !important;
  vertical-align: top !important;
  border: 1px dotted #d3d3d3 !important;
  font-size: 0.88em !important;
  box-sizing: border-box !important;
  line-height: 1.6 !important;
}

/* Fix empty cells */
body.path-contact .right-sidebar table td:empty {
  min-height: 50px;
}

/* Remove any wrapper overflow */
body.path-contact .right-sidebar {
  overflow: visible !important;
}

body.path-contact .right-sidebar .block__content {
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.path-contact .right-sidebar .text-content {
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ===================================
   FIX TEXT ALIGNMENT IN TABLES
   =================================== */

/* Address blocks inside cells */
body.path-contact .right-sidebar table td p {
  margin: 3px 0 !important;
  line-height: 1.5 !important;
  font-size: 0.92em !important;
}

body.path-contact .right-sidebar table td h5 {
  font-size: 0.95em !important;
  font-weight: bold !important;
  margin: 10px 0 5px 0 !important;
  color: #333 !important;
}

body.path-contact .right-sidebar table td strong {
  font-weight: 700 !important;
  display: block !important;
  margin-bottom: 2px !important;
  font-size: 0.95em !important;
}

/* Email and link styling */
body.path-contact .right-sidebar table td a {
  color: #0074bd !important;
  text-decoration: none !important;
  word-break: break-all !important;
}

body.path-contact .right-sidebar table td a:hover {
  text-decoration: underline !important;
}

/* Emphasis text */
body.path-contact .right-sidebar table td em {
  font-style: italic !important;
  font-size: 0.9em !important;
  color: #666 !important;
}

/* ===================================
   CONTACT FORM STYLING
   =================================== */

/* Get in Touch block */
body.path-contact #block-procept_custom-getintouch {
  width: 100%;
  max-width: 100%;
}

body.path-contact #block-procept_custom-getintouch .block__title {
  font-size: 1.5em;
  color: #0074bd;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Form spacing */
body.path-contact .contact-message-general-feedback-form .form-item {
  margin-bottom: 20px;
}

/* Form labels */
body.path-contact .contact-message-general-feedback-form label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  color: #333;
}

/* Form inputs */
body.path-contact .contact-message-general-feedback-form input[type="text"],
body.path-contact .contact-message-general-feedback-form input[type="email"],
body.path-contact .contact-message-general-feedback-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

/* Submit buttons */
body.path-contact .contact-message-general-feedback-form .form-submit {
  background-color: #0074bd;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 10px;
}

body.path-contact .contact-message-general-feedback-form .form-submit:hover {
  background-color: #005a92;
}

/* ===================================
   SIDEBAR BLOCK STYLING
   =================================== */

/* Contact Details block title */
body.path-contact #block-procept_custom-contactdetails {
  width: 100%;
  max-width: 100%;
}

body.path-contact #block-procept_custom-contactdetails .block__title {
  font-size: 1.5em;
  color: #0074bd;
  margin-bottom: 15px;
  font-weight: bold;
}

/* Regional headings in sidebar (Ontario HQ, British Columbia, etc.) */
body.path-contact .right-sidebar h4 {
  font-size: 1.15em !important;
  font-weight: bold !important;
  color: #0074bd !important;
  margin: 20px 0 10px 0 !important;
  padding-top: 15px !important;
  border-top: none !important;
}

body.path-contact .right-sidebar h4:first-of-type {
  padding-top: 0 !important;
}

/* Horizontal rules between sections */
body.path-contact .right-sidebar hr {
  border: none !important;
  border-top: 1px solid #ccc !important;
  margin: 20px 0 !important;
  background: #ccc !important;
  height: 1px !important;
}

/* Remove closing div tag text if visible */
body.path-contact .right-sidebar .field__item>p:last-child {
  display: none;
}

/* ===================================
   ENSURE NO HORIZONTAL SCROLLING
   =================================== */

/* Force all content to fit within container */
body.path-contact .right-sidebar * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Remove any inline width styles from CKEditor */
body.path-contact .right-sidebar table[style*="width"] {
  width: 100% !important;
}

body.path-contact .right-sidebar td[style],
body.path-contact .right-sidebar th[style] {
  width: auto !important;
}

/* Prevent body horizontal scroll */
body.path-contact {
  overflow-x: hidden;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 1200px) {

  body.path-contact .layout--content-narrow .region--content,
  body.path-contact .layout--content-medium .region--content {
    flex: 0 0 55%;
    max-width: 55%;
  }

  body.path-contact .layout--content-narrow .right-sidebar,
  body.path-contact .layout--content-medium .right-sidebar {
    flex: 0 0 43%;
    max-width: 43%;
  }
}

@media (max-width: 1024px) {

  body.path-contact .layout--content-narrow,
  body.path-contact .layout--content-medium {
    flex-direction: column;
  }

  body.path-contact .layout--content-narrow .region--content,
  body.path-contact .layout--content-medium .region--content,
  body.path-contact .layout--content-narrow .right-sidebar,
  body.path-contact .layout--content-medium .right-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 768px) {

  /* Stack table cells on mobile */
  body.path-contact .right-sidebar table,
  body.path-contact .right-sidebar tbody,
  body.path-contact .right-sidebar tr {
    display: block !important;
    width: 100% !important;
  }

  body.path-contact .right-sidebar td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    border-bottom: 2px solid #ccc !important;
    padding: 15px 10px !important;
  }
}

/* ----------------------------------------- */
/* Base animation class (required)           */
/* ----------------------------------------- */
.animate__animated {
  animation-duration: 1s;
  animation-fill-mode: both;
  opacity: 1 !important;
  /* Ensure text stays visible */
}

/* ----------------------------------------- */
/* Duration modifier (you use 2s)            */
/* ----------------------------------------- */
.animate__duration-2s {
  animation-duration: 2s !important;
}

/* ----------------------------------------- */
/* fadeInRight animation                     */
/* ----------------------------------------- */
@keyframes animate__fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate__fadeInRight {
  animation-name: animate__fadeInRight;
}

/* ----------------------------------------- */
/* OPTIONAL: Smooth easing                   */
/* ----------------------------------------- */
.animate__animated {
  animation-timing-function: ease-in-out;
}

/* OPTIONAL: Prevent flicker */
.animate__animated {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Force visibility for front page descriptions */
.view-frontpage .views-field-body,
.view-frontpage .views-field-body-1,
.view-front-page .views-field-body,
.view-front-page .views-field-body-1,
.view-front-page-content .views-field-body,
.view-front-page-content .views-field-body-1 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.view-frontpage .field-content,
.view-front-page .field-content,
.view-front-page-content .field-content {
  display: block !important;
  margin-bottom: 15px;
}

/* The square background letter (exactly like D7) */
.region--content .view-front-page-content .text-dropcap {
  display: inline-block;
  background: #4a4a4a;
  color: #ffffff;
  font-size: 22px;
  font-weight: 400;
  padding: 4px 7px;
  /* reduced padding */
  margin-right: 4px;
  /* much smaller gap */
  border-radius: 2px;
  line-height: 1;
  vertical-align: middle;
}

/* cke editior */
.style-code {
  background: #f1f1f1;
  padding: 2px 4px;
  font-family: monospace;
}

.style-kbd {
  background: #eee;
  padding: 2px 4px;
  border: 1px solid #ccc;
  font-family: monospace;
  border-radius: 3px;
}

.style-sample {
  font-family: monospace;
}

.style-variable {
  font-style: italic;
}

.style-deleted {
  text-decoration: line-through;
  color: red;
}

.style-inserted {
  text-decoration: underline;
  color: green;
}

.style-cited {
  font-style: italic;
}

.style-inlinequote {
  font-style: italic;
}

.style-language {
  font-style: italic;
}


/* ============================================================
   PORTFOLIO PAGE — FULL WIDTH + ALIGNMENT FIXES
   Applies only when class "portfolio-fullwidth" exists
============================================================ */

/* ---------- BODY IMAGES ---------- */
.portfolio-body {
  margin: 0 auto;
  padding: 40px 15%;
  background: #f5f5f5;
  max-width: 1400px;
}

.portfolio-body .field__label {
  display: none !important;
}

.portfolio-body .field {
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.portfolio-body img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* ---------- SIMILAR PROJECTS ---------- */
.similar-projects-section {
  margin: 0 auto;
  padding: 50px 15%;
  background: #fff;
  max-width: 1400px;
}

.similar-projects-section h2 {
  color: #0073aa;
  border-bottom: 3px solid #0073aa;
  padding-bottom: 10px;
  margin-bottom: 35px;
  font-size: 24px;
  font-weight: 600;
  position: relative;
}

.similar-projects-section h2:after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 80px;
  height: 3px;
  background: #0073aa;
}

.similar-projects-wrapper {
  margin-top: 30px;
}

.slick__slider {
  margin: 0 -10px;
}

.slick__slide {
  padding: 0 10px;
}

/* ============================================================
   REMOVE ALL WIDTH LIMITERS FROM OLIVERO
============================================================ */

/* Remove all max-width containers on portfolio pages */
.portfolio-fullwidth,
.portfolio-fullwidth .container,
.portfolio-fullwidth .container-fluid,
.portfolio-fullwidth .container-3col,
.portfolio-fullwidth .main-container,
.portfolio-fullwidth .procept_custom-3col-layout,
.portfolio-fullwidth .layout--pass--content-medium,
.portfolio-fullwidth .main-content-section,
.portfolio-fullwidth .region-content,
.portfolio-fullwidth .region.region--content {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================================
   TWO-COLUMN LAYOUT FIX
============================================================ */

/* Make the white wrapper full width */
.portfolio-fullwidth .portfolio-details-info {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 40px !important;
  /* inner spacing */
  display: flex;
  gap: 40px;
}

/* Left + right columns */
.portfolio-fullwidth .project-details,
.portfolio-fullwidth .project-info {
  width: 50% !important;
  max-width: 50% !important;
}

/* Align Project Info column properly */
.portfolio-fullwidth .project-info {
  display: flex;
  flex-direction: column;
}

/* Grey block fix */
.portfolio-fullwidth .project-info .problem-solution-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 40px !important;
  margin-top: 20px;
  display: block !important;
}

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

@media (max-width: 992px) {
  .portfolio-details-info {
    flex-direction: column;
    padding: 0 20px !important;
  }

  .portfolio-fullwidth .project-details,
  .portfolio-fullwidth .project-info {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .portfolio-header h1 {
    font-size: 28px;
  }

  .project-details h2,
  .project-info h2,
  .similar-projects-section h2 {
    font-size: 20px;
  }

  .project-details,
  .project-info {
    padding: 25px 20px;
  }
}

/* Hide left sidebar for team member pages */
.team-member-page .left-sidebar,
body.node--type-team .left-sidebar,
.page-node-type-team .left-sidebar {
  display: none !important;
}

/* Expand main content to full width when sidebar is hidden */
.team-member-page .procept_custom-3col-layout,
body.node--type-team .procept_custom-3col-layout,
.page-node-type-team .procept_custom-3col-layout {
  grid-template-columns: 1fr !important;
}

.team-member-page .main-content-section,
body.node--type-team .main-content-section,
.page-node-type-team .main-content-section {
  max-width: 100%;
  width: 100%;
}

/* Keep natural order: credentials at top */
.team-member-page {
  display: block;
}

/* Credentials stay at top naturally */
.team-credentials {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

/* Image and bio side-by-side (horizontal layout) */
.team-wrapper {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 30px;
}

/* Image on left - fixed width */
.team-left {
  flex-shrink: 0;
  width: 150px;
  min-width: 150px;
}

.team-image {
  width: 150px;
}

.team-image img {
  width: 150px !important;
  height: auto !important;
  max-width: 150px;
  display: block;
  border: 1px solid #ccc;
}

/* Bio content on right - takes remaining space */
.team-right {
  flex: 1;
  width: calc(100% - 180px);
}

.team-bio {
  width: 100%;
}

/* Certification badges - display horizontally */
.team-bio .rtecenter img,
.team-bio p.rtecenter img {
  display: inline-block !important;
  margin: 5px 8px !important;
  vertical-align: middle;
  height: 35px !important;
  width: auto !important;
  max-height: 40px;
}

.team-bio p.rtecenter,
.team-bio .rtecenter {
  text-align: center;
  line-height: 1.5;
  margin: 20px 0;
}

/* Publications table - ensure images display horizontally */
.team-bio table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.team-bio table td {
  vertical-align: top;
  padding: 10px;
  text-align: center;
}

.team-bio table td img {
  width: 150px !important;
  height: auto !important;
  max-width: 150px;
  display: inline-block;
}

/* YouTube iframes - center them */
.team-bio iframe {
  max-width: 100%;
  margin: 20px auto;
  display: block;
}

.team-bio center {
  margin: 20px 0;
}

/* Remove any flex/grid from bio content */
.team-bio .field__item {
  display: block;
  width: 100%;
}

/* Ensure paragraphs flow naturally */
.team-bio p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Headings */
.team-bio h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5em;
  font-weight: bold;
}

/* Horizontal rules */
.team-bio hr {
  margin: 30px 0;
  border: none;
  border-top: 2px solid #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-wrapper {
    flex-direction: column;
  }

  .team-left,
  .team-right {
    width: 100%;
    max-width: 100%;
  }

  .team-image,
  .team-image img {
    width: 100% !important;
    max-width: 300px;
  }
}

/* ------------radio button css--------------------- */
/* Make all radio options display horizontally */
.form-type-radios .form-radios,
.form-type-radios .form-radios>div,
.form-type-radio,
input[type="radio"]+label {
  display: inline-flex !important;
  align-items: center;
  margin-right: 20px;
  /* spacing between options */
}

/* ------------radio button css--------------------- */
/* Make all radio options display horizontally */
.form-type-radios .form-radios,
.form-type-radios .form-radios>div,
.form-type-radio,
input[type="radio"]+label {
  display: inline-flex !important;
  align-items: center;
  margin-right: 20px;
  /* spacing between options */
}

/* AGGRESSIVE WIDTH OVERRIDES - Target all restricting containers */

/* Remove ALL max-width constraints from body and html */
html,
body {
  max-width: none !important;
  width: 100% !important;
}

/* Override container-fluid */
.container-fluid,
.main-container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Override 3-column container */
.container-3col,
.procept_custom-3col-layout {
  max-width: none !important;
  width: 100% !important;
}

/* Override main content section */
.main-content-section,
main.main-content-section {
  max-width: none !important;
  width: 100% !important;
}

/* Override Procept Custom theme's content-medium layout */
.main-content-section .region--content,
.main-content-section .region.region--content,
main.main-content-section .region--content {
  max-width: none !important;
  width: 100% !important;
}

/* Target only team member pages */
.team-member-page .layout--pass--content-medium,
.team-member-page .grid-full.layout--pass--content-medium,
.team-member-page .region.region--content.grid-full.layout--pass--content-medium,
.team-member-page #content.region.region--content.grid-full.layout--pass--content-medium {
  width: 1250px !important;
  padding-left: 0 !important;
  padding-right: 100px !important;
  margin-left: -100px !important;
  margin-right: 0 !important;
}

/* Views element container */
/* .views-element-container,
.views-element-container.contextual-region {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Main view container */
.view-bx-testimonials,
.contextual-region.view.view-bx-testimonials,
.view.view-bx-testimonials.view-id-bx_testimonials {
  max-width: none !important;
  width: 100% !important;
}

/* THE MOST IMPORTANT: view-content div */
.path-bx-testimonials .view-content {
  display: block;
  width: 1000px;
  max-width: none;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
}


/* Individual testimonial cards - FULL WIDTH */
.view-bx-testimonials .views-row {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 2rem 3rem;
  padding-bottom: 5rem;
  margin-bottom: 1.5rem;
  width: 100% !important;
  max-width: none !important;
  display: block !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
  position: relative;
  min-height: 180px;
  box-sizing: border-box !important;
}

.view-bx-testimonials .views-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Image styling - if present, float left */
.view-bx-testimonials .views-field-field-testimonial-image {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.view-bx-testimonials .views-field-field-testimonial-image img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

/* Content area */
.view-bx-testimonials .views-field-body {
  margin: 0 0 2.5rem 0;
  overflow: hidden;
}

.view-bx-testimonials .views-field-body .field-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  font-style: italic;
}

.view-bx-testimonials .views-field-body p {
  margin: 0 0 0.5rem 0;
}

/* Hide title field */
.view-bx-testimonials .views-field-title {
  display: none;
}

/* Author name - positioned at bottom center */
.view-bx-testimonials .views-field-field-author {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 2rem;
  margin: 0;
}

.view-bx-testimonials .views-field-field-author .field-content {
  margin: 0;
}

/* Position/title field */
.view-bx-testimonials .views-field-field-testimonial-position {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  font-style: normal;
  padding: 0 2rem;
}

/* Rating stars */
.view-bx-testimonials .views-field-field-testimonial-rating {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

/* Edit link in top right */
.view-bx-testimonials .views-field-edit-node {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.view-bx-testimonials .views-field-edit-node a {
  font-size: 0.875rem;
  color: #3b82f6;
  text-decoration: none;
}

.view-bx-testimonials .views-field-edit-node a:hover {
  text-decoration: underline;
}

/* Quotation mark decoration */
.view-bx-testimonials .views-row::after {
  content: '"';
  position: absolute;
  right: 2rem;
  bottom: 4rem;
  font-size: 4rem;
  color: #e5e7eb;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.5;
  pointer-events: none;
}

/* Pagination styling */
.view-bx-testimonials+nav.pager,
nav.pager.layout--content-medium {
  margin-top: 3rem;
  max-width: none !important;
  width: 100% !important;
}

/* Responsive design */
@media (max-width: 768px) {
  .view-bx-testimonials .views-row {
    padding: 1.5rem;
    padding-bottom: 4.5rem;
    min-height: 150px;
  }

  .view-bx-testimonials .views-field-field-testimonial-image {
    float: none;
    margin: 0 0 1rem 0;
  }

  .view-bx-testimonials .views-field-body {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .view-bx-testimonials .views-row {
    padding: 1rem;
    padding-bottom: 4rem;
  }

  .view-bx-testimonials .views-row::after {
    font-size: 3rem;
    right: 1rem;
    bottom: 3.5rem;
  }
}

.primary-nav__menu--level-3 .primary-nav__menu-link-inner--level-3::after {
  display: none !important;
}

.primary-nav__menu--level-2,
.primary-nav__menu--level-3 {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  transform: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  max-height: none !important;
  overflow: visible !important;
  bottom: auto !important;
  /* Prevent bottom positioning */
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* =========================================================
   LEVEL 1 (TOP MENU)
   ========================================================= */
.primary-nav__menu-item--level-1 {
  position: relative !important;
}

.primary-nav__menu-link--level-1 {
  color: #00548E !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
  padding: 10px 15px !important;
  background: transparent !important;
  transition: all 0.2s ease;
}

/* Hover effect: Blue underline for links WITHOUT submenus (e.g. Contact) */
.primary-nav__menu-item--level-1:not(:has(> .primary-nav__menu--level-2)) .primary-nav__menu-link--level-1:hover,
.primary-nav__menu-item--level-1:not(.primary-nav__menu-item--has-children) .primary-nav__menu-link--level-1:hover {
  box-shadow: inset 0 -3px 0 #00548E !important;
}

/* Ensure single line for 1024px and above */
@media (min-width: 1024px) {
  .primary-nav__menu--level-1 {
    flex-wrap: nowrap !important;
  }

  .primary-nav__menu-item--level-1 {
    margin-right: 5px !important;
    /* Reduce gap to fit all items */
  }

  .primary-nav__menu-link--level-1 {
    padding: 10px 8px !important;
    /* Reduce padding on smaller desktops */
    font-size: 15px !important;
  }
}

@media (min-width: 1200px) {
  .primary-nav__menu-item--level-1 {
    margin-right: 15px !important;
  }

  .primary-nav__menu-link--level-1 {
    padding: 10px 15px !important;
    font-size: 16px !important;
  }
}

/* Hide carets/arrows on top level links as per design */
.primary-nav__menu-link--level-1::after,
.primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
  display: none !important;
}

.primary-nav__menu-link-inner--level-1::after {
  display: none !important;
}

/* Ensure the main nav container allows dropdowns */
.primary-nav,
nav.primary-nav,
.primary-nav__menu--level-1 {
  position: relative !important;
  z-index: 100 !important;
}

/* =========================================================
   LEVEL 2 – COMPACT VERTICAL DROPDOWN BELOW NAV
   ========================================================= */
.primary-nav .primary-nav__menu--level-2 {
  position: absolute !important;
  top: 100% !important;
  bottom: auto !important;
  /* Force top positioning, not bottom */
  left: 0 !important;
  right: auto !important;
  width: 220px;
  background-color: #005a8b !important;
  padding: 6px 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  transform: translateY(0) !important;
  /* No transform offset */
}

/* Alternative: force it below by adding small margin */
.primary-nav__menu-item--level-1:hover>.primary-nav__menu--level-2 {
  margin-top: 2px !important;
}

/* Show level-2 on hover */
.primary-nav__menu-item--level-1:hover>.primary-nav__menu--level-2 {
  visibility: visible;
  opacity: 1;
  margin-top: 2px !important;
  transform: translateY(0) !important;
  bottom: auto !important;
  top: 100% !important;
}

/* Level-2 links - COMPACT */
.primary-nav .primary-nav__menu--level-2 .primary-nav__menu-link {
  display: block;
  padding: 8px 14px !important;
  /* Reduced from 14px 18px */
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  white-space: nowrap;
}

/* Remove border from last item */
.primary-nav .primary-nav__menu--level-2 .primary-nav__menu-item--level-2:last-child .primary-nav__menu-link {
  border-bottom: none;
}

/* Level-2 hover */
.primary-nav .primary-nav__menu--level-2 .primary-nav__menu-link:hover {
  background-color: #00466d !important;
}

/* =========================================================
   LEVEL 3 – COMPACT FLYOUT TO RIGHT (ALIGNED TO TOP)
   ========================================================= */
.primary-nav__menu-item--level-2 {
  position: relative !important;
  overflow: visible !important;
}

.primary-nav .primary-nav__menu--level-3 {
  position: absolute !important;
  top: -6px !important;
  /* Align with parent's top edge */
  left: 100% !important;
  width: 220px;
  /* Reduced from 260px */
  background-color: #00466d !important;
  padding: 6px 0 !important;
  /* Compact padding */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1100;
  margin: 0 !important;
}

/* Show level-3 on hover */
.primary-nav__menu-item--level-2:hover>.primary-nav__menu--level-3 {
  visibility: visible;
  opacity: 1;
}

/* Keep level-3 visible when hovering over it */
.primary-nav__menu--level-3:hover {
  visibility: visible;
  opacity: 1;
}

/* Level-3 links - COMPACT */
.primary-nav .primary-nav__menu--level-3 .primary-nav__menu-link {
  display: block;
  padding: 8px 14px !important;
  /* Reduced from 12px 18px */
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  white-space: nowrap;
}

/* Remove border from last item */
.primary-nav .primary-nav__menu--level-3 .primary-nav__menu-item--level-3:last-child .primary-nav__menu-link {
  border-bottom: none;
}

/* Level-3 hover */
.primary-nav .primary-nav__menu--level-3 .primary-nav__menu-link:hover {
  background-color: #003a5c !important;
}

/* =========================================================
   HOVER BRIDGE - PREVENT MENU DISAPPEARING
   ========================================================= */
.primary-nav__menu-item--level-2::before {
  content: "";
  position: absolute;
  top: 0;
  right: -6px;
  /* keep it outside the text */
  width: 6px;
  /* very small bridge */
  height: 100%;
  z-index: 900;
  /* BELOW text */
  pointer-events: auto;
}

.primary-nav__menu-item--level-2>.primary-nav__menu-link {
  position: relative;
  z-index: 1100;
  /* text always on top */
}


/* =========================================================
   REMOVE OLIVERO MEGA MENU UI ELEMENTS
   ========================================================= */
.primary-nav__menu- {
  display: none !important;
}

.primary-nav__button-toggle {
  display: none !important;
}

/* =========================================================
   FORCE TEXT VISIBILITY & CLEAN SPACING
   ========================================================= */
.primary-nav__menu--level-2 *,
.primary-nav__menu--level-3 * {
  color: #ffffff !important;
}

.primary-nav__menu-link-inner {
  margin: 0 !important;
  padding: 0 !important;
}

.primary-nav__menu--level-2,
.primary-nav__menu--level-3 {
  list-style: none;
  padding-left: 0 !important;
}

.primary-nav__menu-item--level-2,
.primary-nav__menu-item--level-3 {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================================================
   UX ENHANCEMENTS
   ========================================================= */
.primary-nav__menu-link {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Keep parent highlighted when hovering submenu */
.primary-nav__menu-item--level-2:hover>.primary-nav__menu-link {
  background-color: #00466d !important;
}

/* Scrollbar styling if needed */
.primary-nav__menu--level-2::-webkit-scrollbar,
.primary-nav__menu--level-3::-webkit-scrollbar {
  width: 6px;
}

.primary-nav__menu--level-2::-webkit-scrollbar-thumb,
.primary-nav__menu--level-3::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

/* =========================================================
   Minimal Sidebar Menu Styling (Drupal 10 / Procept Custom)
   ========================================================= */

/* Slightly move sidebar blocks to the left */
.right-sidebar nav.block {
  margin-left: -12px;
}

/* Small gap between menu items */
.right-sidebar .menu__item {
  margin-bottom: 6px;
}

/* Menu link font */
.right-sidebar .menu__link {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

/* =========================================================
   GLOBAL RIGHT SIDEBAR BLOCK TITLE STYLE
   ========================================================= */

.right-sidebar h2.block__title {
  position: relative;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #00548E;

  margin: 0 0 22px;
  padding-bottom: 14px;
  padding-right: 15px;
  border-bottom: 1px solid #e6e6e6;
}

/* Blue accent segment on underline */
.right-sidebar h2.block__title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #00548E;
}

/* ============================================
   UNIVERSAL LAYOUT FIX - FOR ALL PAGES
   ============================================ */

/* Fix two-column layout */
.ds-2col .group-left {
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
}

.ds-2col .group-right {
  display: none !important;
}

/* Content container - consistent width for all pages */
.container-3col {
  max-width: 1800px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.main-content-section {
  width: 100% !important;
  max-width: 100% !important;
}

/* Remove all padding/margins from text content */
.text-content.field,
.text-content.clearfix.field {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Fix for tables inside content */
.text-content table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.text-content table td {
  padding: 10px !important;
}

/* Content region - remove extra spacing */
.region--content {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.node--view-mode-full {
  width: 100% !important;
  max-width: 100% !important;
}

.procept_custom-3col-layout {
  width: 100% !important;
  padding: 0 !important;
}

/* Paragraph text */
.text-content p {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #333333;
  margin: 0 0 1em 0;
  text-align: justify;
}

/* Improved Drop cap with better spacing */
.text-dropcap-2 {
  float: left;
  display: block;

  background-color: #5a5a5a;
  color: #ffffff;

  font-size: 24px;
  line-height: 1;

  padding: 6px 9.5px;
  margin: 0 4px;
  /* Increased bottom margin for gap below */

  font-weight: 600;
  font-family: Georgia, serif;

  /* Better alignment */
  transform: translateY(2px);
}

/* Optional: Add clear spacing after paragraph with drop cap */
.text-content p:has(.text-dropcap-2) {
  margin-bottom: 1.5em;
  /* Extra space after paragraph with drop cap */
}

/* prit button css */
/* #block-procept_custom-printbutton .print a#printmainContent {
  
    padding-left: 650px;
  
    font-weight: 600;
    color: #0074bd;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    box-shadow: none !important;
} */
/* Align filter form elements in one line */
.view-upcoming-private-sessions .views-exposed-form.form--inline {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex-wrap: wrap;
}

.view-upcoming-private-sessions .views-exposed-form #edit-session-date-range {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  flex: 0 1 auto;
}

.view-upcoming-private-sessions .views-exposed-form .form-item-session-date-range-min,
.view-upcoming-private-sessions .views-exposed-form .form-item-session-date-range-max {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.view-upcoming-private-sessions .views-exposed-form .form-item__label {
  margin-bottom: 5px;
  font-weight: 500;
}

.view-upcoming-private-sessions .views-exposed-form .form-date {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 38px;
}

.view-upcoming-private-sessions .views-exposed-form .form-actions {
  margin: 0;
  display: flex;
  align-items: flex-end;
}

.view-upcoming-private-sessions .views-exposed-form .button--primary {
  padding: 9px 20px;
  background-color: #0071b8;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  height: 38px;
  line-height: 1.2;
}

.view-upcoming-private-sessions .views-exposed-form .button--primary:hover {
  background-color: #005a93;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {

  .view-upcoming-private-sessions .views-exposed-form.form--inline,
  .view-upcoming-private-sessions .views-exposed-form #edit-session-date-range {
    flex-direction: column;
    align-items: stretch;
  }

  .view-upcoming-private-sessions .views-exposed-form .form-item-session-date-range-min,
  .view-upcoming-private-sessions .views-exposed-form .form-item-session-date-range-max {
    width: 100%;
  }
}

/* Hide Amazon tracking pixel */
img[src*="amazon-adsystem.com"],
img[src*="ir-na.amazon-adsystem.com"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Hide 1x1 tracking images */
img[width="1"],
img[height="1"] {
  display: none !important;
}

/* ============================================
   COMPLETE FIX: PUBLICATIONS TABLE + SIDEBAR OVERLAP
   ============================================ */

/* 1. Fix team page grid layout - TWO COLUMN (content + sidebar) */
.team-member-page .procept_custom-3col-layout,
body.node--type-team .procept_custom-3col-layout {
  grid-template-columns: 1fr 280px !important;
  gap: 30px !important;
}

/* 2. Constrain main content - RESPECT GRID BOUNDARY */
.team-member-page .main-content-section,
body.node--type-team .main-content-section {
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  padding-right: 20px;
  box-sizing: border-box;
}

/* 3. Fix right sidebar width - FIXED COLUMN */
.team-member-page .right-sidebar,
body.node--type-team .right-sidebar {
  width: 280px;
  min-width: 280px;
  max-width: 280px;
  box-sizing: border-box;
}

/* 4. PRESERVE IMAGE + TEXT LAYOUT */
.team-wrapper {
  display: flex !important;
  flex-direction: row !important;
  gap: 30px !important;
  align-items: flex-start !important;
  margin-bottom: 30px !important;
  overflow: visible !important;
}

.team-left {
  flex-shrink: 0 !important;
  width: 150px !important;
  min-width: 150px !important;
}

.team-right {
  flex: 1 !important;
  min-width: 0 !important;
  overflow: visible !important;
}

/* 5. Fix team-bio content flow */
.team-bio {
  width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box;
}

.team-bio .field__item {
  display: block;
  width: 100%;
  overflow: visible !important;
}

/* 6. Override CKEditor table inline styles - PUBLICATIONS SECTION */
.team-bio table[style*="width"],
.team-bio table.cke_show_border {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  overflow: visible;
  clear: both;
  /* Clear any floats before table */
  margin-top: 20px !important;
}

/* 7. Fix table cells */
.team-bio table td {
  width: auto !important;
  max-width: 160px;
  padding: 8px 10px !important;
  vertical-align: top;
  word-wrap: break-word;
  overflow: hidden;
  box-sizing: border-box;
}

/* 8. Fix publication book images */
.team-bio table td img {
  width: 150px !important;
  height: auto !important;
  max-width: 150px;
  display: block;
  margin: 0 auto;
}

/* 9. Fix text paragraphs - PROPER FLOW AROUND IMAGE */
.team-bio p {
  margin-bottom: 15px !important;
  line-height: 1.6 !important;
  clear: none !important;
  overflow: visible !important;
}

/* 10. Ensure proper text wrapping */
.team-bio .text-content {
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

/* 11. Responsive - stack on mobile */
@media (max-width: 1024px) {

  .team-member-page .procept_custom-3col-layout,
  body.node--type-team .procept_custom-3col-layout {
    grid-template-columns: 1fr !important;
  }

  .team-member-page .right-sidebar,
  body.node--type-team .right-sidebar {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .team-wrapper {
    flex-direction: column !important;
  }

  .team-left,
  .team-right {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ============================================
   COMPLETE FIX: PUBLICATIONS TABLE + SIDEBAR OVERLAP
   ============================================ */

/* 1. Fix team page grid layout - TWO COLUMN (content + sidebar) */
.team-member-page .procept_custom-3col-layout,
body.node--type-team .procept_custom-3col-layout {
  grid-template-columns: 1fr 320px !important;
  /* Main content (flexible) + Sidebar (fixed 320px) */
  gap: 40px !important;
  /* Space between columns */
}

/* 2. Constrain main content - RESPECT GRID BOUNDARY */
.team-member-page .main-content-section,
body.node--type-team .main-content-section {
  overflow: hidden;
  /* Prevent content from overflowing */
  max-width: 100%;
  /* Don't exceed container width */
  min-width: 0;
  /* Allow shrinking below content size */
  padding-right: 20px;
  /* Add breathing room */
  box-sizing: border-box;
  /* Include padding in width calculation */
}

/* 3. Fix right sidebar width - FIXED COLUMN */
.team-member-page .right-sidebar,
body.node--type-team .right-sidebar {
  width: 320px;
  /* Fixed width */
  min-width: 320px;
  /* Don't shrink below this */
  max-width: 320px;
  /* Don't expand beyond this */
  box-sizing: border-box;
  /* Include padding in width */
}

/* 4. PRESERVE IMAGE + TEXT LAYOUT */
.team-wrapper {
  display: flex !important;
  /* Horizontal layout */
  flex-direction: row !important;
  /* Image left, text right */
  gap: 30px !important;
  /* Space between image and text */
  align-items: flex-start !important;
  /* Align to top */
  margin-bottom: 30px !important;
  /* Space below wrapper */
  overflow: visible !important;
  /* Allow content to flow naturally */
}

/* Team member image container */
.team-left {
  flex-shrink: 0 !important;
  /* Don't shrink image */
  width: 150px !important;
  /* Fixed image width */
  min-width: 150px !important;
  /* Maintain width */
}

/* Team member bio text container */
.team-right {
  flex: 1 !important;
  /* Take remaining space */
  min-width: 0 !important;
  /* Allow text wrapping */
  overflow: visible !important;
  /* Natural content flow */
}

/* 5. Fix team-bio content flow */
.team-bio {
  width: 100% !important;
  /* Fill container */
  overflow: visible !important;
  /* Allow natural flow */
  box-sizing: border-box;
  /* Include padding */
}

.team-bio .field__item {
  display: block;
  /* Stack content vertically */
  width: 100%;
  /* Full width */
  overflow: visible !important;
  /* Natural flow */
}

/* ============================================
   PUBLICATIONS SECTION - VERTICAL GRID LAYOUT
   ============================================ */

/* Publications heading styling */
.team-bio h2 strong {
  display: block;
  /* Full width heading */
  font-size: 24px;
  /* Large text */
  color: #0073aa;
  /* Blue color */
  border-bottom: 3px solid #0073aa;
  /* Underline effect */
  padding-bottom: 10px;
  /* Space above underline */
  margin-bottom: 25px;
  /* Space below heading */
  position: relative;
  /* For positioning pseudo-elements if needed */
}

/* Convert publications table to CSS Grid - 4 columns */
.team-bio table {
  display: grid !important;
  /* Use CSS Grid instead of table layout */
  grid-template-columns: repeat(4, 1fr) !important;
  /* 4 equal columns */
  gap: 20px !important;
  /* Space between grid items */
  width: 100% !important;
  /* Full width */
  max-width: 100% !important;
  /* Don't exceed container */
  border: none !important;
  /* Remove table borders */
  margin: 20px 0 !important;
  /* Vertical spacing */
}

/* Make tbody and tr behave as grid containers */
.team-bio table tbody,
.team-bio table tr {
  display: contents !important;
  /* Pass through to parent grid */
}

/* Style each publication cell as a card */
.team-bio table td {
  display: flex !important;
  /* Flexbox for vertical alignment */
  flex-direction: column;
  /* Stack image vertically */
  align-items: center;
  /* Center horizontally */
  justify-content: flex-start;
  /* Align to top */
  width: auto !important;
  /* Auto width (grid handles it) */
  max-width: none !important;
  /* Remove width restrictions */
  padding: 10px !important;
  /* Internal spacing */
  border: 1px solid #e0e0e0 !important;
  /* Light border */
  background: #fff;
  /* White background */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
  transition: transform 0.2s ease;
  /* Smooth hover animation */
}

/* Hover effect for publication cards */
.team-bio table td:hover {
  transform: translateY(-3px);
  /* Lift up on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Stronger shadow on hover */
}

/* Publication book cover images */
.team-bio table td img {
  width: 100% !important;
  /* Fill container width */
  height: auto !important;
  /* Maintain aspect ratio */
  max-width: 180px !important;
  /* Maximum image width */
  display: block !important;
  /* Remove inline spacing */
  margin: 0 auto !important;
  /* Center horizontally */
}

/* Hide Amazon tracking pixels (1x1 invisible images) */
.team-bio table td img[width="1"],
.team-bio table td img[height="1"] {
  display: none !important;
  /* Don't show tracking pixels */
}

/* ============================================
   TESTIMONIALS SECTION - VERTICAL VIDEO LAYOUT
   ============================================ */

/* Add spacing above testimonials heading */
.team-bio h2:has(+ table) strong {
  margin-top: 40px;
  /* Space from publications section */
}

/* Target testimonials table - convert to vertical stack */
.team-bio table:last-of-type {
  display: flex !important;
  /* Flexbox layout */
  flex-direction: column !important;
  /* Stack videos vertically */
  gap: 20px !important;
  /* Space between videos */
  grid-template-columns: none !important;
  /* Override grid layout */
}

/* Make tbody and tr stack vertically */
.team-bio table:last-of-type tbody,
.team-bio table:last-of-type tr {
  display: flex !important;
  /* Flexbox */
  flex-direction: column !important;
  /* Vertical stacking */
  gap: 20px !important;
  /* Space between items */
}

/* Style video container cells */
.team-bio table:last-of-type td {
  width: 100% !important;
  /* Full width for videos */
  max-width: 100% !important;
  /* No width restriction */
  padding: 0 !important;
  /* No padding */
  border: none !important;
  /* No border */
  background: transparent;
  /* Transparent background */
  box-shadow: none;
  /* No shadow */
}

/* Remove hover effect from video cells */
.team-bio table:last-of-type td:hover {
  transform: none;
  /* No lift effect */
}

/* Video iframe styling */
.team-bio table:last-of-type td img[alt="IFrame"],
.team-bio iframe {
  width: 100% !important;
  /* Responsive width */
  max-width: 560px !important;
  /* Standard YouTube width */
  height: 315px !important;
  /* Standard YouTube height (16:9 ratio) */
  display: block !important;
  /* Block element */
  margin: 0 auto 15px auto !important;
  /* Center with bottom spacing */
  border-radius: 8px;
  /* Rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  /* Shadow for depth */
}

/* Hide empty td cells in testimonials table */
.team-bio table:last-of-type td:empty,
/* Completely empty cells */
.team-bio table:last-of-type td:has(> br:only-child),
/* Cells with only <br> tag */
.team-bio table:last-of-type td:has(> :only-child:empty) {
  /* Cells with one empty child element */
  display: none !important;
  /* Hide empty boxes */
}

/* 9. Fix text paragraphs - PROPER FLOW AROUND IMAGE */
.team-bio p {
  margin-bottom: 15px !important;
  /* Space between paragraphs */
  line-height: 1.6 !important;
  /* Readable line spacing */
  clear: none !important;
  /* Allow text to flow beside images */
  overflow: visible !important;
  /* Natural overflow */
}

/* 10. Ensure proper text wrapping */
.team-bio .text-content {
  max-width: 100%;
  /* Don't exceed container */
  box-sizing: border-box;
  /* Include padding in width */
  overflow: visible !important;
  /* Natural flow */
}

/* ============================================
   RIGHT SIDEBAR - STYLED BLOCKS
   ============================================ */

/* Sidebar block containers - card style */
.team-member-page .right-sidebar .block,
body.node--type-team .right-sidebar .block {
  background: #f8f9fa;
  /* Light gray background */
  border: 1px solid #e0e0e0;
  /* Subtle border */
  border-radius: 8px;
  /* Rounded corners */
  padding: 20px;
  /* Internal spacing */
  margin-bottom: 25px;
  /* Space between blocks */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Subtle shadow */
}

/* Private Info block styling */
#block-procept_custom-views-block-privtae-info-block-1 .view-content {
  font-size: 14px;
  /* Readable text size */
  line-height: 1.8;
  /* Comfortable line spacing */
}

/* Field labels in private info block */
#block-procept_custom-views-block-privtae-info-block-1 .views-label {
  font-weight: 600;
  /* Bold labels */
  color: #333;
  /* Dark gray */
  display: block;
  /* Full width */
  margin-bottom: 5px;
  /* Space below label */
}

/* Field content in private info block */
#block-procept_custom-views-block-privtae-info-block-1 .field-content {
  margin-bottom: 15px;
  /* Space between fields */
  color: #555;
  /* Medium gray text */
}

/* Button styling in private info block */
#block-procept_custom-views-block-privtae-info-block-1 .click_btn {
  display: inline-block;
  /* Inline button */
  background: #0073aa;
  /* Blue background */
  color: white !important;
  /* White text */
  padding: 6px 14px;
  /* Button padding */
  border-radius: 4px;
  /* Rounded corners */
  text-decoration: none;
  /* No underline */
  font-size: 13px;
  /* Small text */
  font-weight: 500;
  /* Medium weight */
  transition: background 0.2s;
  /* Smooth color transition */
}

/* Button hover effect */
#block-procept_custom-views-block-privtae-info-block-1 .click_btn:hover {
  background: #005a87;
  /* Darker blue on hover */
}

/* Confidential block - table styling */
#block-procept_custom-views-block-confidential-block-1 table {
  width: 100% !important;
  /* Full width */
  border-collapse: collapse;
  /* Remove cell spacing */
  font-size: 13px;
  /* Small readable text */
}

/* Table header styling */
#block-procept_custom-views-block-confidential-block-1 table th {
  background: #0073aa;
  /* Blue header background */
  color: white;
  /* White text */
  padding: 10px 8px;
  /* Header padding */
  text-align: center;
  /* Center text */
  font-size: 12px;
  /* Small header text */
  font-weight: 600;
  /* Bold header */
}

/* Table cell styling */
#block-procept_custom-views-block-confidential-block-1 table td {
  padding: 8px;
  /* Cell padding */
  border: 1px solid #ddd;
  /* Light border */
  text-align: center;
  /* Center text */
}

/* Labels in confidential block */
#block-procept_custom-views-block-confidential-block-1 .views-label {
  font-weight: 600;
  /* Bold labels */
  color: #333;
  /* Dark text */
  margin-bottom: 5px;
  /* Space below */
}

/* Video Testimonial sidebar block */
#block-procept_custom-views-block-video-testimonial-block-1 iframe {
  width: 100% !important;
  /* Responsive width */
  height: auto !important;
  /* Auto height */
  aspect-ratio: 16/9;
  /* Maintain video aspect ratio */
  border-radius: 6px;
  /* Rounded corners */
  margin-bottom: 15px;
  /* Space below video */
}

/* Specialties block */
#block-procept_custom-views-block-video-testimonial-block-3 .field-content {
  font-size: 14px;
  /* Readable text */
  line-height: 1.8;
  /* Comfortable spacing */
}

/* Links in specialties block */
#block-procept_custom-views-block-video-testimonial-block-3 .field-content a {
  color: #0073aa;
  /* Blue links */
  text-decoration: none;
  /* No underline by default */
  transition: color 0.2s;
  /* Smooth color transition */
}

/* Link hover effect */
#block-procept_custom-views-block-video-testimonial-block-3 .field-content a:hover {
  color: #005a87;
  /* Darker blue on hover */
  text-decoration: underline;
  /* Underline on hover */
}

/* 11. Responsive - stack on mobile */
@media (max-width: 1024px) {

  /* Single column layout on tablets */
  .team-member-page .procept_custom-3col-layout,
  body.node--type-team .procept_custom-3col-layout {
    grid-template-columns: 1fr !important;
    /* One column */
  }

  /* Full width sidebar on tablets */
  .team-member-page .right-sidebar,
  body.node--type-team .right-sidebar {
    width: 100%;
    /* Full width */
    max-width: 100%;
    /* No restriction */
  }

  /* 3 columns for publications on tablets */
  .team-bio table {
    grid-template-columns: repeat(3, 1fr) !important;
    /* 3 columns */
  }
}

@media (max-width: 768px) {

  /* Stack image and text on mobile */
  .team-wrapper {
    flex-direction: column !important;
    /* Vertical stacking */
  }

  /* Full width for image and text on mobile */
  .team-left,
  .team-right {
    width: 100% !important;
    /* Full width */
    max-width: 100% !important;
    /* No restriction */
  }

  /* 2 columns for publications on mobile */
  .team-bio table {
    grid-template-columns: repeat(2, 1fr) !important;
    /* 2 columns */
  }
}

@media (max-width: 480px) {

  /* Single column for publications on small mobile */
  .team-bio table {
    grid-template-columns: 1fr !important;
    /* 1 column */
  }
}

/* Final CSS: Display certification logos horizontally */
.team-right .team-bio .field__item p {
  display: flex;
  /* Flexbox layout */
  flex-wrap: wrap;
  /* Wrap to new line if needed */
  align-items: center;
  /* Vertical center alignment */
  justify-content: center;
  /* Horizontal center alignment */
  gap: 12px;
  /* Space between logos */
  white-space: normal;
  /* Ignore &nbsp; spacing */
}

/* Certification logo image reset */
.team-right .team-bio .field__item p img {
  display: inline-block;
  /* Inline display */
  margin: 0;
  /* No margin */
  height: auto;
  /* Maintain aspect ratio */
  max-width: 100%;
  /* Responsive sizing */
}

/* Fix block container height */
#block-procept_custom-views-block-video-testimonial-block-2,
#block-procept_custom-views-block-video-testimonial-block-2 .block__content {
  height: auto !important;
  /* Auto height */
  max-height: none !important;
  /* No height restriction */
  overflow: visible !important;
  /* Show all content */
}

/* Force grid layout - target the actual grid container */
#block-procept_custom-views-block-video-testimonial-block-2 .views-view-grid {
  display: block !important;
  /* Block display */
  width: 100%;
  /* Full width */
}

/* Make the grid item itself use grid layout for the UL */
#block-procept_custom-views-block-video-testimonial-block-2 .views-view-grid__item-inner {
  display: block;
  /* Block display */
}

/* Style the UL as a single column list */
#block-procept_custom-views-block-video-testimonial-block-2 .field-content ul {
  display: block !important;
  /* Block display */
  list-style: none;
  /* Remove bullet points */
  padding: 0;
  /* No padding */
  margin: 0;
  /* No margin */
}

/* Style each link as a full-width box */
#block-procept_custom-views-block-video-testimonial-block-2 .field-content li {
  background: #f5f5f5;
  /* Light gray background */
  padding: 14px 16px;
  /* Internal spacing */
  margin-bottom: 0;
  /* No bottom margin */
  border-bottom: 1px solid #fff;
  /* White separator line */
}

/* Remove bottom border from last item */
#block-procept_custom-views-block-video-testimonial-block-2 .field-content li:last-child {
  border-bottom: none;
  /* No border on last item */
}

/* Link styling */
#block-procept_custom-views-block-video-testimonial-block-2 .field-content li a {
  display: block;
  /* Full width clickable area */
  text-decoration: none;
  /* No underline */
  color: #0073e6;
  /* Blue color */
  font-weight: 400;
  /* Normal weight */
  font-size: 16px;
  /* Readable size */
}

/* Hover effect */
#block-procept_custom-views-block-video-testimonial-block-2 .field-content li:hover {
  background: #e8e8e8;
  /* Darker gray on hover */
}

/* Position print button to the right with margin only */
#block-procept_custom-printbutton {
  text-align: right;
  /* Align right */
  margin-right: 20px;
  /* Space from edge */
}

#block-procept_custom-printbutton .contextual,
#block-procept_custom-printbutton [data-contextual-id] {
  display: none !important;
}

/* Make list items display horizontally */
.field--name-body ul {
  display: flex;
  /* Flexbox layout */
  gap: 20px;
  /* Space between items */
  list-style: none;
  /* Remove bullet points */
  padding: 0;
  /* No padding */
  margin: 0;
  /* No margin */
}

/* Inline list items */
.field--name-body ul li {
  display: inline-block;
  /* Inline display */
}

/* Footer layout fixes */
.site-footer .footer-top {
  display: grid;
  /* Grid layout */
  grid-template-columns: repeat(2, 1fr);
  /* Two equal columns */
  gap: 40px;
  /* Space between columns */
  margin-bottom: 40px;
  /* Space below footer top */
}

/* Footer column width */
.site-footer .footer-col {
  width: 100%;
  /* Full width */
}

/* Footer bottom section - full width layout */
.site-footer .footer-bottom {
  display: block;
  /* Block display */
  width: 100%;
  /* Full width */
  border-top: 1px solid #444;
  /* Top border separator */
  padding-top: 30px;
  /* Space above content */
}

/* Copyright section width */
.site-footer .footer-copyright {
  width: 100%;
  /* Full width */
  margin-bottom: 20px;
  /* Space below */
}

/* Make copyright text display as continuous paragraphs */
.footer-copyright .field__item {
  max-width: 100%;
  /* Full width */
}

/* Copyright paragraphs and lists */
.footer-copyright .field__item p,
.footer-copyright .field__item ul {
  display: block;
  /* Block display */
  width: 100%;
  /* Full width */
  margin-bottom: 15px;
  /* Space between elements */
}

/* Copyright unordered lists */
.footer-copyright .field__item ul {
  list-style: none;
  /* No bullet points */
  padding: 0;
  /* No padding */
}

/* Copyright list items */
.footer-copyright .field__item ul li {
  display: block;
  /* Block display */
  margin-bottom: 10px;
  /* Space between items */
  line-height: 1.6;
  /* Readable line height */
}

.site-footer .footer-menu {
  width: auto;
  /* compact width */
  text-align: left;
  margin-left: 12px;
}

/* Footer menu links */
.footer-menu a {
  display: inline-block;
  margin-left: 8px;
  /* Space between icons */
}

/* Responsive footer */
@media (max-width: 768px) {

  /* Single column footer on mobile */
  .site-footer .footer-top {
    grid-template-columns: 1fr;
    /* One column */
  }

  /* Center footer menu on mobile */
  .site-footer .footer-menu {
    text-align: center;
    /* Center alignment */
    margin-top: 20px;
    /* Space above */
  }
}

/* ================================
   FRONT PAGE – FIX HORIZONTAL SCROLL
   ================================ */

/* Stop page-level horizontal scroll */
body.path-frontpage {
  overflow-x: hidden;
}

/* Main layout containers */
body.path-frontpage .main-container,
body.path-frontpage .container-fluid,
body.path-frontpage .container-3col,
body.path-frontpage .procept_custom-3col-layout,
body.path-frontpage .main-content-section,
body.path-frontpage .region--content.grid-full {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Views content */
body.path-frontpage .view-front-page-content,
body.path-frontpage .view-front-page-content .view-content,
body.path-frontpage .view-front-page-content .views-row {
  width: 600px;
  overflow-x: hidden;
  box-sizing: border-box;
  word-wrap: break-word;
}

/* CRITICAL FIX: Pager breaking layout */
body.path-frontpage .view-front-page-content .pager.layout--content-medium {
  max-width: 100%;
  width: 100%;
}

/* Make pager responsive */
body.path-frontpage .pager__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 20px 0 !important;
}

/* Bootstrap safety net */
body.path-frontpage .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

a.dexp-btn-reflect {
  display: inline-block;
  padding: 14px 28px;
  background-color: #3f3f3f;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}

a.dexp-btn-reflect:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Upcoming Events block */
.view-upcoming-events .item-list ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.view-upcoming-events .item-list ul li {
  margin-bottom: 22px;
}

/* Title + date container */
.view-upcoming-events .views-field-event-privacy-filter .field-content {
  display: block;
  line-height: 1.5;
}

/* Event title */
.view-upcoming-events .views-field-event-privacy-filter a {
  /* font-weight: 600; */
  font-size: 16px;
  text-decoration: none;
}

/* Date line */
.view-upcoming-events .views-field-event-privacy-filter .field-content br {
  display: block;
  content: "";
  margin-bottom: 6px;
}

/* Edit Event link */
.view-upcoming-events .views-field-edit-node {
  margin-top: 4px;
}

.view-upcoming-events .views-field-edit-node a {
  font-size: 14px;
  text-decoration: underline;
}

/* More link (right aligned) */
.view-upcoming-events .more-link {
  text-align: right;
  margin-top: 10px;
}

/* View All button */
.view-upcoming-events .view-all-wrapper {
  margin-top: 20px;
}

.view-upcoming-events .view-all-btn {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 600;
}

/* Reduce space after last event */
.view-upcoming-events .item-list ul li:last-child {
  margin-bottom: 8px;
}

/* Reduce space above "More" link */
.view-upcoming-events .more-link {
  margin-top: 4px !important;
  margin-bottom: 6px;
  padding-top: 0;
}

/* Reduce space before View All button */
.view-upcoming-events .view-footer {
  margin-top: 6px !important;
  padding-top: 0;
}

/* Reduce space around View All wrapper */
.view-upcoming-events .view-all-wrapper {
  margin-top: 6px;
  padding-bottom: 0;
}

/* Reduce block bottom spacing */
.block-views-blockupcoming-events-block-1 .block__content {
  padding-bottom: 10px;
}

.view-upcoming-events .view-footer {
  margin-top: -50px !important;
  padding-top: 0;
}

.menu__link.menu__link--link.menu__link--level-1 {
  text-decoration: none !important;
}

#edit-nid {
  width: 60px;
  max-width: 60px;
}

#block-procept_custom-views-block-pm-courses-details-block-1 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-2 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-3 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-4 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-5 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-6 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-7 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-8 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-9 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-10 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-11 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-12 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-13 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-14 h2.block__title,
#block-procept_custom-views-block-pm-courses-details-block-15 h2.block__title {
  font-size: 20px;
  font-family: "Open Sans", Arial, sans-serif;
  color: #00548E;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

#block-procept_custom-views-block-pm-courses-details-block-1 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-2 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-3 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-4 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-5 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-6 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-7 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-8 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-9 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-10 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-11 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-12 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-13 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-14 h2.block__title::after,
#block-procept_custom-views-block-pm-courses-details-block-15 h2.block__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: #00548E;
}

/* =========================================================
   MOBILE NAVIGATION TOGGLE AND RESPONSIVE STYLES
   ========================================================= */

.d7-header-main-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.custom-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 15px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1050;
}

.custom-mobile-toggle__icon,
.custom-mobile-toggle__icon::before,
.custom-mobile-toggle__icon::after {
  display: block;
  width: 30px;
  height: 3px;
  background-color: #00548E;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.custom-mobile-toggle__icon::before,
.custom-mobile-toggle__icon::after {
  content: "";
  position: absolute;
}

.custom-mobile-toggle__icon::before {
  top: -8px;
}

.custom-mobile-toggle__icon::after {
  bottom: -8px;
}

/* Active state for hamburger */
.custom-mobile-toggle.is-active .custom-mobile-toggle__icon {
  background-color: transparent;
}

.custom-mobile-toggle.is-active .custom-mobile-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.custom-mobile-toggle.is-active .custom-mobile-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 1023px) {
  .custom-mobile-toggle {
    display: block;
  }

  .d7-main-menu {
    display: none;
    /* Hidden by default on mobile */
    flex-basis: 100%;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
  }

  .d7-main-menu.is-active {
    display: block;
    /* Show menu when toggle is active */
  }

  .primary-nav__menu--level-1 {
    flex-direction: column !important;
    width: 100%;
    padding: 10px 0 !important;
  }

  .primary-nav__menu-item--level-1 {
    width: 100%;
    margin: 0 !important;
  }

  .primary-nav__menu-link--level-1 {
    display: block !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #f0f0f0;
  }

  .primary-nav__menu-item--level-1:last-child .primary-nav__menu-link--level-1 {
    border-bottom: none;
  }

  /* Remove hover underline on mobile */
  .primary-nav__menu-item--level-1:not(:has(> .primary-nav__menu--level-2)) .primary-nav__menu-link--level-1:hover,
  .primary-nav__menu-item--level-1:not(.primary-nav__menu-item--has-children) .primary-nav__menu-link--level-1:hover {
    box-shadow: none !important;
    background-color: #f9f9f9 !important;
  }

  /* Submenus on mobile */
  .primary-nav .primary-nav__menu--level-2 {
    position: static !important;
    width: 100% !important;
    display: none;
    box-shadow: none !important;
    background-color: #f4f4f4 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .primary-nav__menu-item--level-1:hover>.primary-nav__menu--level-2,
  .primary-nav__menu-item--level-1:focus-within>.primary-nav__menu--level-2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .primary-nav .primary-nav__menu--level-2 .primary-nav__menu-link {
    color: #333 !important;
    padding: 12px 30px !important;
    border-bottom: 1px solid #e5e5e5;
  }
}

/* =========================================================
   SEARCH ICON IN PRIMARY MENU
   ========================================================= */
.d7-main-menu {
  display: flex;
  align-items: center;
}

.d7-main-menu .block-search-wide {
  margin-left: 15px;
}

.d7-main-menu .block-search-wide__button {
  width: 44px;
  height: 44px;
  background-color: #eeeeee !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #00548E !important;
  transition: background-color 0.2s ease;
  padding: 0 !important;
}

.d7-main-menu .block-search-wide__button:hover {
  background-color: #e0e0e0 !important;
}

.d7-main-menu .block-search-wide__button svg {
  width: 20px;
  height: 20px;
  margin: auto;
}

.d7-main-menu .block-search-wide__button path {
  fill: #00548E !important;
}

@media (min-width: 1024px) {
  .d7-header-main-inner {
    flex-wrap: nowrap !important;
  }

  .d7-main-menu {
    flex-wrap: nowrap !important;
  }
}

/* Hide duplicate Configuration */
.toolbar-tray .toolbar-menu>li:nth-child(4) {
  display: none !important;
}

/* Hide duplicate Configuration */
.toolbar-tray .toolbar-menu>li:nth-child(8) {
  display: none !important;
}

/* Hide duplicate Configuration */
.toolbar-tray .toolbar-menu>li:nth-child(9) {
  display: none !important;
}

/* Hide duplicate Configuration */
.toolbar-tray .toolbar-menu>li:nth-child(14) {
  display: none !important;
}

.sidebar-second {
  margin-top: 32px !important;
}

.region--sidebar-second{
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-container-wrapper .block__title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-container-wrapper .menu__link--level-1{
  font-size: 16px;
  font-weight: 400;
  color: #9E9E9E;
}
.footer-bottom-bar .text-content p{
  color: #ffffff !important;
}
.footer_menu_bottom{
  display: flex;
  justify-content: flex-end;
}
.menu--account .menu--level-1{
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
  gap: 32px;
}
.page-wrapper .top-bar-wrapper {
  padding: 16px 0;
}