.agenda-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.agenda-search {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.agenda-date-tabs {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.agenda-tab {
    background: none;
    border: none;
    font-weight: 600;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
    border-bottom: 2px solid transparent;
}

.agenda-tab.active {
    color: #1976d2;
    border-color: #1976d2;
}

.agenda-session {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #0073aa;
    background-color: #fff;
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.agenda-session-time {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.agenda-session-date {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.agenda-session-duration {
    background-color: #e0f7fa;
    color: #007c91;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 4px;
}

.agenda-session-title {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    color: #222;
}

.agenda-session-description {
    font-size: 15px;
    color: #444;
    margin-top: 5px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.agenda-session-speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.agenda-speaker {
  display: flex;
  gap: 12px;
  max-width: 250px;
  align-items: flex-start;
}

.agenda-speaker-photo img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.agenda-speaker-details {
  display: flex;
  flex-direction: column;
  min-width: 400px;
}

.agenda-speaker-name {
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.agenda-speaker-position,
.agenda-speaker-company {
  font-size: 13px;
  line-height: 1.2;
}

.agenda-speaker-position {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.agenda-speaker-role {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.speaker-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 10px;
  z-index: 10000;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.speaker-modal-content {
  padding: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 80%;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
  margin: auto;
  top: 5%;
}

.close-speaker-modal {
  position: absolute;
  top: 80px;
  right: 25px;
  font-size: 24px;
  cursor: pointer;
}

.speaker-description {
  max-height: 6.8em;
  overflow: hidden;
  position: relative;
  line-height: 1.7em;
  transition: max-height 0.4s ease;
  cursor: pointer;
}

.speaker-description::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2em;
  width: 100%;
  background: linear-gradient(to bottom, transparent, #fff);
}

.speaker-description.expanded {
  max-height: 1000px;
}

.speaker-description.expanded::after {
  display: none;
}

.speaker-description-wrapper {
  position: relative;
  max-width: 100%;
}

.speaker-description {
  max-height: 6.8em;
  overflow: hidden;
  position: relative;
  line-height: 1.7em;
  transition: max-height 0.4s ease;
}

.speaker-description::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2em;
  width: 100%;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.speaker-description.expanded {
  max-height: 1000px;
}

.speaker-description.expanded::after {
  display: none;
}

.speaker-description-toggle {
  color: #0073aa;
  font-size: 0.9em;
  margin-top: 6px;
  cursor: pointer;
  text-align: right;
}

.speaker-description-toggle:hover {
  text-decoration: underline;
}

.speaker-modal-inner {
  padding: 2rem;
  background: #fff;
  max-width: 900px;
  margin: 5vh auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.speaker-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.speaker-photo img {
  max-width: 140px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.speaker-info {
  flex: 1;
}

.speaker-name {
  font-size: 1.8rem;
  margin: 0;
  padding-bottom: 0;
}

.speaker-position,
.speaker-company {
  font-size: 1rem;
  color: #444;
  margin-top: 0.4rem;
}

.speaker-description {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  max-height: 12em;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: max-height 0.4s ease;
}

.speaker-description p {
  font-size: 1.4rem;
}

.speaker-description::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2em;
  width: 100%;
  background: linear-gradient(to bottom, transparent, #fff);
}

.speaker-description.expanded {
  max-height: 1000px;
}

.speaker-description.expanded::after {
  display: none;
}

.speaker-divider {
  margin: 2rem 0;
  height: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

.speaker-sessions h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.speaker-sessions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.speaker-sessions li {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.7rem;
}

.highlight-session {
    box-shadow: 0 0 10px #002a9696;
    transition: box-shadow 0.3s ease;
    animation: pulse-highlight 2s ease-out;
}

@keyframes pulse-highlight {
    0%   { box-shadow: 0 0 0 #002a9696; }
    50%  { box-shadow: 0 0 15px #002a9696; }
    100% { box-shadow: 0 0 0 #002a9696; }
}

.highlighted-session {
    box-shadow: 0 0 15px 5px #002a9696;
    transition: box-shadow 0.4s ease;
}


.agenda-session {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px 20px 20px 60px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.agenda-session-type {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    text-align: center;
    line-height: 1.5;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    box-sizing: border-box;
}

.agenda-session-type span{
    transform: rotate(180deg);
}

@media (max-width: 768px) {
  .agenda-session-type {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 10px;
    padding: 5px 10px;
    text-align: center;
    border-radius: 4px 4px 0 0;
  }
}

@media (max-width: 768px) {
  .agenda-session-type {
    writing-mode: horizontal-tb !important;
    min-height: 25px;
  }
  .agenda-session-type span {
    transform: rotate(0deg) !important;
  }
}


.agenda-session-time {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.agenda-session-title {
    font-weight: 700;
    margin: 0 0 10px 0;
}

.agenda-session-description {
    margin-bottom: 10px;
    color: #444;
}

.agenda-session-speakers {
    font-size: 13px;
    color: #777;
}

.agenda-speaker {
    display: flex;
    margin-bottom: 8px;
}

.agenda-speaker-photo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.agenda-speaker-details {
    flex: 1;
}

.agenda-speaker-name {
    font-weight: 600;
}

.agenda-speaker-position,
.agenda-speaker-company,
.agenda-speaker-role {
    font-size: 12px;
    color: #555;
}

.agenda-session-description {
  position: relative;
  max-height: 3.8em; 
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.agenda-session-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5em; 
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.agenda-session-description.expanded {
  max-height: 1000px;
}

.agenda-session-description.expanded::after {
  opacity: 0;
  height: 0;
}

@media (max-width: 600px) {
  .speaker-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .speaker-photo img {
    width: 120px;
    height: 120px;
  }

  .speaker-name {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 768px) {
    .agenda-session {
        padding: 0px;
    }

    .agenda-session-time {
        flex-direction: row;
        align-items: flex-start;
        gap: 6px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .agenda-session-body {
        padding: 10px;
    }

    .agenda-session-title {
        font-size: 17px;
    }

    .agenda-session-description {
        font-size: 14px;
    }

    .agenda-speaker {
        padding: 8px;
    }
}

@media (max-width: 600px) {
    .agenda-speaker-position {
        max-width: 120px;
    }
}


@media screen and (max-width: 480px) {
    .agenda-wrapper {
        padding: 10px;
    }

    .agenda-search {
        width: 100%;
        font-size: 15px;
    }

    .agenda-session-title {
        font-size: 16px;
    }
}
