/* Renamed from solar-agenda-grid.css */
/*************************
 * GRID SCHEDULE LAYOUT
 *************************/
 @media screen and (min-width:700px) {
		.schedule {
			display: grid;
			grid-gap: 0.25em;
			grid-template-rows:
				[tracks] auto
				[time-0800] 1fr
				[time-0830] 1fr
				[time-0900] 1fr
				[time-0930] 1fr
				[time-1000] 1fr
				[time-1030] 1fr
				[time-1100] 1fr
				[time-1130] 1fr
				[time-1200] 1fr;
				/* Note 1:
				Use 24hr time for gridline names for simplicity
  
				Note 2: Use "auto" instead of "1fr" for a more compact schedule where height of a slot is not proportional to the session length. Implementing a "compact" shortcode attribute might make sense for this!
				Try 0.5fr for more compact equal rows. I don't quite understand how that works :)
				*/
      
			grid-template-columns:
				[times] 4em
				[track-1-start] 1fr
				[track-1-end track-2-start] 1fr
				[track-2-end track-3-start] 1fr
				[track-3-end track-4-start] 1fr
				[track-4-end];
		}
	}
  
	.time-slot {
		grid-column: times;
        color: black;
	}
  
	.title_time_display {
		align-items: center;
		justify-content: space-between;
		padding: 0.75em 1.25em;
		background-color: #f5f5f5;
		border-left: 4px solid;
		border-radius: 4px;
		margin-bottom: 1em;
		font-size: 1rem;
		color: #222;
	}

	.title_time_display_alltracks {
		display: flex;
	}
	
    .title_time_display_cols {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    align-items: start;
  }
  
  .title_time_display .time {
    flex-shrink: 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: #666;
    margin-right: 1em;
    white-space: nowrap;
  }
  
  /* reduce the gap between time and the title. */
  .title_time_display_cols .time {
      margin-right: 0 !important;
    }

  .title_time_display .title {
    flex-grow: 1;
    font-weight: 600;
    font-size: 1.05rem;
    color: #111;
    /* overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; */
  }
  .title_time_display .title a,
  .title_time_display .title a:hover {
    color: #000;
  }

.more-details-link {
  color: #111111;
}

.more-details-link:hover {
  color: #444444;
  background-color: #f0f0f0;
}

.track-slot {
  display: none; /* hidden on small screens and browsers without grid support */
}

@supports( display:grid ) {
  @media screen and (min-width:700px) {
    .track-slot {
    display: block;
    padding: 10px 5px 5px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255,255,255,.9);
    }
  }
}

/* Small-screen & fallback styles */
.session {
  margin-bottom:  1em;
}

@supports( display:grid ) {
  @media screen and (min-width: 700px) {
    .session {
    margin: 0;
    } 
  }
}

/*************************
 * VISUAL STYLES
 * Design-y stuff ot particularly important to the demo
 *************************/


.banner {
    padding: 20px;
    border-radius: 8px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    width: 100%;
}

.themes {
    margin-bottom: 20px;
}

.themes span {
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 5px;
}

.event-details {
    margin-bottom: 20px;
}

.event-details .icon {
    margin-right: 10px;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    width: 100%; /* Make full width */
    padding: 20px;
}

.speakers, .moderator {
    flex: 1;
}

.speaker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.speaker, .moderator-details {
    display: flex;
    align-items: center;
    padding: 0px 10px 0px 10px;
}

.speaker img, .moderator-details img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 10px;
}

  .session {
    padding: .5em;
    border-radius: 5px;
    border-style: solid;
  }
  
  .session-title,
  .session-time,
  .session-track,
  .session-presenter {
    display: block;
  }
  
  .session-title,
  .time-slot {
    margin: 0;
    font-size: 1em;
  }
  
  .session-title a {
    color: #fff;
    text-decoration-style: dotted;
    
    &:hover {
      font-style: italic;
    }
    
    &:focus {
      outline: 2px dotted rgba(255,255,255,.8);
    }
  }
  
  .track-slot,
  .time-slot {
    font-weight: bold;
    font-size:1em;
  }

  .track-slot{
    text-align: center;
    padding:25px;
    font-size: 1.25em;
    border-radius: 5px;
  }
    
  .track-all {
    display: flex;
    box-shadow: none;
    border: 1px;
    border-style: solid;
  }
  
  .seminar-title {
    font-size: 1.25em;
  }
  .seminar-title-track {
    font-size: 1em;
  }
  
  .speaker-role-title {
    font-weight: 600;
    padding-top: 10px;
    font-size: 1em;
  }
  
  
  .text {
    max-width: 750px;
    font-size: 18px;
    margin: 0 auto 50px;
  }
  
  .meta {
    color: #555;
    font-style: italic;
  }
  
  .meta a {
    color: #555;
  }
  
  hr {
    margin: 40px 0;
  }

  /* Sessions details */


  
/* General Modal Improvements */
.modal {
    position: fixed !important;
    z-index: 999999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: none;
    overflow: hidden; /* Prevent background scroll */
    backdrop-filter: blur(2px);
}

/* Enhanced modal content with positioning to avoid header overlap */
.modal .modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #fefefe;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 700px;
    max-height: 70vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    margin: 0 !important; /* Override any existing margin */
    padding: 0 !important; /* Reset padding to control it properly */
}


    .close-modal { position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer;}
    .modal-body { margin: 20px; }

  .speaker-modal-content {
  padding: 20px;
  color: #000;
  }
  .speaker-modal-name {
  margin-top: 0;
  font-weight: bold;
  color: #000;
  }
  .speaker-modal-job-company {
  margin: 0 0 0.7em 0;
  color: #000;
  }
  .speaker-modal-bio {
  margin-bottom: 0.7em;
  color: #000;
  }


@media (max-width: 768px) { 
    .modal {
        padding: 10px 0;
    }
    .modal-content {
        width: 95%;
        max-height: 85vh;
        margin-top: 20px;
        padding: 15px;
    }
    .close-modal {
        top: 5px;
        right: 15px;
        font-size: 24px;
    }
    .modal-body {
        margin: 15px 0;
    }
}

@media (max-width: 768px) { /* Adjust width as needed */
    .time-slot {
        display: none;
    }
}
  
 /* Speaker details */
 
 .roles-grid {
    display: flex;
    gap: 0.25em;
}

.track-1 .roles-grid,
.track-2 .roles-grid,
.track-3 .roles-grid,
.track-4 .roles-grid,
.track-5 .roles-grid,
.track-6 .roles-grid,
 .track-7 .roles-grid {
    display: grid;
    grid-template-columns: column;
    gap: 2em;
}

/* align the speakers left */
.speaker {
    text-align: left !important; 
}

.sponsor-box {
  border: 1px solid #dedede;
  background: #f9f9f9;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center all child elements horizontally */
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  max-width: 350px;
  text-align: center; /* Center text inside title/content */
}

.sponsor-logo img {
  max-width: 250px;     /* Logo can grow up to 250px */
  width: 100%;          /* Logo fills available space */
  height: auto;         /* Maintain aspect ratio */
  object-fit: contain;
  margin-bottom: 0.5em;
  display: block;
}

.sponsor-title {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.sponsor-title a {
  color: #0073aa;
  text-decoration: none;
}

.sponsor-title a:hover {
  text-decoration: underline;
}

.sponsor-content {
  font-size: 0.97em;
  color: #333;
  margin-top: 0.3em;
}
