/* static/css/educator-sidebar.css */
.educator-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin: 0 auto;
}

.educator-sidebar {
  background-color: #f8f9fa;
  border: 1px solid #a2a9b1;
  border-radius: 3px;
  padding: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  width: 100%;
}

.educator-sidebar-header {
  text-align: center;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.educator-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.educator-photo {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.educator-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.educator-detail h4 {
  background-color: #eaecf0;
  padding: 4px 8px;
  margin: 0;
  font-size: 13px;
  font-weight: bold;
  text-align: left;
}

.educator-detail > div {
  padding: 8px;
  margin: 0;
  text-align: left;
}

.educator-detail > ul {
  padding: 0;
  margin: 0;
  text-align: left;
}

.educator-certifications {
  list-style-position: outside;
  padding: 0;
  margin: 0;
  text-align: left;
}

.educator-certifications li {
  text-align: left;
  margin-left: 24px;
  margin-bottom: 0px;
  padding: 2px 8px 2px 0;
}

/* Company logo container - full width */
.company-logo-container {
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
}

.company-logo {
  width: 70% !important;
  max-width: 70% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  object-position: left;
  display: block;
}

/* Company link container */
.company-link-container {
  width: 100%;
  text-align: left;
}

/* Educator website container */
.educator-website {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .educator-page {
    grid-template-columns: 1fr;
  }
}

/* Add to static/css/educator-sidebar.css */
.educator-external-links {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  text-align: left;
}

/* Add spacing after Connect & Follow heading */
.educator-detail:last-child > div {
  padding-top: 12px !important;
}

/* Alternative approach - target external links directly */
.educator-external-links:first-child {
  margin-top: 12px !important;
}

/* Another approach - target the first external link item */
.external-link-item:first-child {
  margin-top: 12px !important;
}

.educator-external-links li {
  text-align: left;
  margin-bottom: 4px;
}

.external-link-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  justify-content: flex-start;
  text-align: left;
}

/* Ensure countries and languages are left-aligned */
.educator-countries,
.educator-languages {
  text-align: left;
}

.educator-countries span,
.educator-languages span {
  text-align: left;
}

.external-link-item:last-child {
  margin-bottom: 0;
}

.link-icon {
  margin-right: 8px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  justify-content: center;
}

.link-icon svg {
  width: 16px;
  height: 16px;
}

.educator-left-column {
	margin-top: 1.5rem;
}

/* Educator page title and subtitle spacing */
.educator-content .title {
  margin-bottom: 1.5rem;
}

.educator-content .subtitle {
  margin-top: 0;
}

/* Touch target accessibility - elegant approach with invisible extended clickable areas */
.educator-certifications a,
.educator-external-links a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}

/* Invisible touch targets that extend clickable area to 44x44px minimum */
.educator-certifications a::before,
.educator-external-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
  z-index: -1;
}

.educator-certifications a:hover,
.educator-external-links a:hover {
  background-color: #eaecf0;
  text-decoration: underline;
}

.educator-certifications a:focus-visible,
.educator-external-links a:focus-visible {
  outline: 2px solid #304190;
  outline-offset: 1px;
  background-color: #eaecf0;
}

/* Language fallback notification bar */
.language-fallback-notification {
  background-color: #304190;
  color: white;
  margin-bottom: 2rem;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
  position: relative;
  z-index: 10;
  list-style: none;
  list-style-type: none;
}

.language-fallback-notification::before {
  content: none;
}

.language-fallback-notification * {
  list-style: none;
  list-style-type: none;
}