.my-container-with-sponsor {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.my-main-content {
  flex: 1;
}

.my-sponsor-sidebar {
  width: 260px;
  position: sticky;
  top: var(--md-header-height);
  height: fit-content;
}

@media (max-width: 1024px) {
  .my-container-with-sponsor {
    flex-direction: column;
  }
  .my-sponsor-sidebar {
    width: 100%;
    position: static;
  }
}

.sponsor-widget {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sponsor-widget h1,
.sponsor-widget h2 {
  margin-bottom: 0.5rem;
}

.sponsor-widget a {
  display: block;
  padding: 0.5rem 0;
}

/* Box for each logo */
.sponsor-logo-box {
  width: 160px;        /* maximum width */
  height: 60px;        /* maximum height */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.sponsor-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.md-announce {
  background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  color: white;
  text-align: center;
  padding: 2.5rem 1rem;
  border-bottom: none;
}

.hero-announce {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0.3rem 0 1rem 0;
}

.hero-button {
  display: inline-block;
  background: white;
  color: var(--md-primary-fg-color);
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hero-button:hover {
  background: rgba(255, 255, 255, 0.85);
}

.md-typeset .admonition,
.md-typeset details {
  border-width: 0;
  border-left-width: 4px;
}

.md-header__button.md-logo img, .md-header__button.md-logo svg {
  fill: currentcolor;
  display: block;
  height: 2.0rem;
  width: auto;
}

.md-header__title {
  font-size: 1.4rem;
  line-height: 2.4rem;
  letter-spacing: 2px;
}


/* ---- SPEAKER ADMONITION ---- */
:root {
  --md-admonition-icon--speaker: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2 3h8a2 2 0 0 1 2-2 2 2 0 0 1 2 2h8v2h-1v11h-5.75L17 22h-2l-1.75-6h-2.5L9 22H7l1.75-6H3V5H2zm3 2v9h14V5z"/></svg>');
}

.md-typeset .admonition.speaker,
.md-typeset details.speaker {
    border-left: 6px solid #644ea1c4;
    background: #f0f9ff;
    padding: 0;
}

.md-typeset .speaker > .admonition-title {
    background: #e4f5fb;
    display: flex;
    align-items: center;
    gap: .1rem;
    font-size: 1.0rem;
    font-weight: 600;
    margin: 0 0 0 0
}

.md-typeset .speaker > .admonition-title::before, .md-typeset .speaker > summary::before {
  -webkit-mask-image: var(--md-admonition-icon--speaker);
          mask-image: var(--md-admonition-icon--speaker);
}

/* ---- Speaker Card Layout ---- */

.speaker-card {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.0rem;
    padding: 0.5rem;
    align-items: center;
}

.speaker-photo {
    width: 200px;
    max-width: 40%;
    border-radius: 8px;
    object-fit: cover;
}

.speaker-info {
    flex: 1;
    font-size: .75rem;
}

.speaker-date {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: .1rem;
}

.speaker-title {
    margin-bottom: .7rem;
    font-size: 0.8rem;
    font-style: italic;
}

.speaker-name {
    margin: .2rem 0 0 0;
    font-size: 0.85rem;
}

.speaker-role {
    color: #444;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 700px) {
    .speaker-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .speaker-photo {
        width: 70%;
    }
}
