/*

Theme Name: SBUH Cardiology Grand Rounds 

*/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue","Helvetica","Arial",sans-serif;
}

body {
  font-family: sans-serif;
  padding: 20px;
}


h2{
  margin-bottom: .7em;
}

.wrapper{

  max-width: 1200px;
  margin: auto; 
}

.header {
  background: #990000;
  color: white;
  padding: 2em;
  margin-bottom: 1em;
  border-radius: 8px;
}

form .searchform{

  width: 100%;

}

.search-container {
  width: 100%;
  margin-bottom: 1em;
}

.search-form {
  display: flex;
  width: 100%;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 1em;
  font-size: 16px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.search-form button {
  padding: 10px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-left: none;
  background-color: #990000;
  color: white;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
}

.search-form button:hover {
  background-color: #990000;
}


a{

  text-decoration: none;

}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2em;
}

.list-box {
  flex: 1 1 calc(25% - 20px);
  min-width: 250px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.list-box a{
  color: #424242;
  text-decoration: none;
}

.list-box li:hover{
  background: #efefef;
}

.list-box h3{
  padding: 1em;
  text-align: center; 
  background: #424242;
  margin-bottom: .5em;
  border-radius: 6px;
  display: block;
  color: white;
}

.scroll-box{
  height: 500px; /* ✅ Fixed height */
  overflow-y: auto; /* ✅ Enables vertical scroll */
}

.list-box ul {
  list-style: none;
}

.list-box li {
  padding: 0.7em;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  position: relative;
  border-radius: 5px;
}

/* Tooltip styling */
.tooltip {
  display: none;
  position: absolute;
  width: 350px;
  background-color: #fff;
  border: 1px solid #aaa;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  pointer-events: none;
  font-size: 14px;
  line-height: 1.4;
}

.tooltip img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 4px;
}

.tooltip-name {
  margin-bottom: 4px;
}

.tooltip-job {
  font-style: italic;
  color: #666;
  margin-bottom: 8px;
}

.tooltip-title {
  margin-bottom: 4px;
  font-weight: bold;
  color: #990000;

}

.tooltip-date {
  font-size: 12px;
  color: #888;
} 

.aside-1 {
  margin-right: 3em;
}

/* Responsive */
@media (max-width: 800px) {
  .list-box {
    flex: 1 1 100%;
  }
}


.search-result-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.image-wrapper {
  flex: 1 1 300px;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: grey;
  border-style: solid;
  border-width: 2px;
  border-color: #efefef;
}

.image-wrapper img:hover{
  box-shadow: 5px 5px #cecece;
}

.description {
  flex: 2 1 400px;
}

.description h2 {
  margin-bottom: 1em;
  padding: 1em, 0;
}

.description h3{
  color: #990000;
}

.presenter_title{
  font-style: italic;
  padding-top: 1em;
  padding-bottom: 1em;
}

@media (max-width: 768px) {
  .search-result-container {
    flex-direction: column;
  }

  .image-wrapper,
  .description {
    flex: 1 1 100%;
  }
}

.footer{
height: 300px; 

}





/********Accordion Group********/
.accordion-group {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-top: 1px solid #ddd;
  border-radius: 8px;
}
/* with shadow */
.accordion-group.shadow {
  box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 3px 3px -2px rgba(0, 0, 0, 0.2), 0 1px 8px 0 rgba(0, 0, 0, 0.12);
}

/********Accordion Header********/
.accordion-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  border-radius: 8px;
  color: #444;
  cursor: pointer;
  display: block;
  line-height: 1.25;
  font-size: 16px;
  outline: medium none;
  margin: 0;
  padding: 1em;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  transition: all 0.2s ease 0s;
  vertical-align: middle;
  white-space: normal;
  width: 100%;
}
.accordion-header.active,
.accordion-header:hover,
.accordion-header:focus {
  background-color: #eee;
  color: #444;
  text-decoration: none;
}

/* with color */
.accordion-header.blue.active {
  background-color: #3f51b5;
  color: #fff;
}

/********Accordion Arrows********/


.accordion-container{
  margin-bottom: 1em;
  border-radius: 8px;

}

.accordion-header:after {
  content: '\25bc'; /* Unicode down arrow */
  color: #777;
  float: right;
  margin-left: 5px;
}
.accordion-header.active:after {
  content: "\25b2"; /* Unicode up arrow */
}
/* with color */
.accordion-header.blue.active:after {
  color: #fff;
}

/********Accordion Panel********/
.accordion-panel {
  background-color: #fff;
  display: none;
  padding: 2em 3em;
  overflow: hidden;
}

.accordion-panel li{
  padding: 0.2em;
}

.accordion-panel a {
  color: #990000;
  text-decoration: none;
}

.accordion-panel a:hover{
  text-decoration: underline;
}

.accordion-panel.show {
  border-bottom: 1px solid #ddd;
  display: block;
}
.accordion .acc-panel p:last-child {
  margin: 0;
}

.video-wrapper img{
  max-width: 100%;
  height: auto;

}

.content-wrapper{
  padding: 2em;
  background: #efefef;
  margin-top: 2em;
}

.content-wrapper h1{
  color: #990000;
  padding-bottom: 1em;
}

.content-wrapper h3{
  padding-bottom: 1em;
}

.content-wrapper h2{
  margin-top: -1em;
}

.description a{
  color: #424242;
}

.description a:hover{
  text-decoration: underline;
}