/* Base Styles */
:root {
  --primary-color: #1f4040;
  --secondary-color: #1f4040;
  --accent-color: #c7db5c;
  --accent-hover: #cddf6c;
  --accent-active: #d8e68d;
  --secondary-10: #bcc6c6;
  --secondary-20: #a5b3b3;
  --secondary-30: #8fa0a0;
  --secondary-40: #798c8c;
  --secondary-60: #4c6666;
  --secondary-70: #355353;
  --bg-color: #F0F0F0;
  --text-light: #d8e68d;
  --link-color: #7c9627;
  --link-hover: #a0bc35;
  --gradient-start: #1f4040;
  --gradient-end: #232E35;
  --theme-a: #109294;
  --theme-b: #586fb5;
  --theme-c: #a85b8b;
  --theme-d: #db415c;
  --theme-e: #ca7d00;
  --theme-a-light: #9bccc8;
  --theme-b-light: #b2d9f4;
  --theme-c-light: #dcc4df;
  --theme-d-light: #eda0ad;
  --theme-e-light: #f3cc8d;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans", serif;
  font-optical-sizing: auto;
  background: var(--bg-color);
  color: var(--secondary-color);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: "fields", serif;
  font-weight: 700;
  color: var(--primary-color);
}

#header h2 {
  font-family: "Noto Sans", serif;
  font-weight: 500;
}

p,
ol,
ul,
dl,
cite {
  font-weight: 300;
  font-size: 1.15rem;
}

/* Utility Classes */
.center-align {
  text-align: center;
}

.top-margin {
  margin-top: 4vh;
}

/* Canvas and Container */
#visualisation-container {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
}

/* Button Styles */
button {
  cursor: pointer;
  padding: 1rem 2rem;
  font-size: 1rem;
  border: 1px solid var(--accent-color);
  border-radius: 2px;
  font-weight: 500;
  text-transform: uppercase;
  margin: 0 1rem 1rem 0;
  transition: all 0.5s;
}

button:focus {
  border: 1px solid var(--accent-active);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-color);
}

button:hover {
  background: var(--accent-hover);
}

button:active {
  background: var(--accent-active);
}

button.primary {
  background: var(--accent-color);
  color: var(--primary-color);
}

button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

button.secondary {
  color: white;
  background: none;
  border-color: var(--secondary-40);
}

button.secondary:hover {
  color: white;
  border-color: var(--secondary-10);
}

#endButton {
  margin-top: 2rem;
  font-size: 1rem;
  padding: 0.8rem 1rem;
}

/* Header & Footer */
#header,
#footer {
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

#header {
  height: 100vh;
  overflow: hidden;
  background: var(--primary-color);
  position: relative;
}

#footer {
  height: 100px;
  background: var(--gradient-start);
  position: relative;
}

#footer h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 61.8vw;
}

#footer h3 strong {
  color: var(--bg-color);
  font-weight: 700;
}

#footer h3 span {
  font-family: "Noto Sans", sans-serif;
  white-space: nowrap;
  color: var(--text-light);
}

#footer p {
  margin: 0;
  padding: 0;
}

#footer button {
  margin: 0 1.5rem 0 0;
}
#footer.stacked {
  text-align: center;
  height: 132px;
}
#footer.stacked h3 {
  font-size: 1.382rem;
  display: unset;
  width: 95vw;
}

/* Header Content */
#header .content {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  min-width: 66%;
  max-width: 95%;
  text-align: left;
}

#header h1 {
  color: var(--bg-color);
  font-size: 4.2rem;
  line-height: 4.5rem;
  margin: 0 0 1.5rem 0;
}

#header h1#title span {
  white-space: nowrap;
}

#header h2 {
  color: var(--text-light);
  font-size: 2.75rem;
  text-transform: uppercase;
  margin: 0 2.75rem 0rem 0;
}

#subtitle {
  margin-bottom: 2rem;
}

#hostedBy {
  color: var(--text-light);
  text-transform: uppercase;
  max-width: 380px;
  font-size: 1.1rem;
  line-height: 1.25rem;
  margin-bottom: 0rem;
}

/* Flex Layouts */
.flex {
  display: flex;
  flex-wrap: wrap;
}

#header .flex {
  justify-content: space-around;
  align-items: center;
}

#header .flex .flex {
  justify-content: flex-start;
}

/* Banner Elements */
#bannerButtons {
  display: block;
}

#header #downArrow {
  position: absolute;
  height: 60px;
  width: 40px;
  text-align: center;
  bottom: 0.33rem;
  left: calc(50vw - 40px);
  transform: translate(50%, -50%);
  animation: downArrow 0.5s ease-in-out;
  cursor: pointer;
}

#header #downArrow i {
  border: solid var(--accent-color);
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 12px;
  transform: rotate(45deg);
}

/* Logo Styles */
#logos {
  width: calc(125px + 10vw);
}

img#cquni {
  width: calc(100% - 1vw);
  height: auto;
}

#footer img {
  width: 252px;
  height: 72px;
}

/* App Bar Styles */
#appBar {
  position: relative;
  background: #1f4040;
  color: white;
  padding: 1.618rem 4rem;
}

#appBar h1 {
  color: white;
  font-family: "fields", serif;
  font-weight: 700;
  font-size: calc(28px + 0.5vw);
  margin: 0;
}

#appBarLogo {
  height: 110px;
  width: auto;
}

#appBar .spaceBetween {
  display: flex;
  justify-content: space-between;
  align-content: center;
}

#appBar .menu {
  margin-top: .618rem;
}

#appBar .menu span {
  margin-right: 0.618rem;
  color: #ffffff80;
}

#appBar .menu span.currentPage {
  color: #ffffff;
}

#appBar .menu span a {
  color: var(--accent-color);
}

#appBar .menu span a:hover {
  color: var(--text-light);
}

#appBar h1 span {
  color: var(--text-light);
  font-weight: 700;
}

#appBar #logos {
  width: auto;
  display: flex;
  align-items: center;
  margin: 0px;
}

/* Page Content */
#pageContent {
  margin: 4rem;
}

#pageContent h2 {
  font-family: "fields", serif;
  font-size: calc(28px + 1.2vh);
}

#pageContent p strong {
  font-weight: 400;
  color: var(--primary-color);
}

#pageContent table p {
  font-size: 13pt;
}

#pageContent p,
#pageContent ol,
#pageContent ul {
  font-size: calc(13px + 0.5vh);
}

#pageContent a {
  color: var(--link-color);
}

#pageContent a:hover {
  color: var(--secondary-60);
}

/* Schedule Table */
.scheduleTable {
  margin-left: -6px;
  margin-top: -10px;
  width: calc(100% + 12px);
}

.scheduleTable p.room {
  margin: 5px 0 10px 0;
  padding: 8px;
  border-radius: 3px;
}

.scheduleTable thead tr {
  background: #1f404030;
  color: var(--primary-color);
}

/* Room Types */
p.room.session {
  display: flex;
  align-items: center;
  background: #1f404020;
  color: var(--primary-color);
  justify-content: space-between;
}

p.room.theme {
  display: flex;
  color: white;
  justify-content: space-between;
  border: 1px solid white;
}

p.room.theme.ass {
  border-color: var(--theme-d-light);
  color: var(--theme-d);
  background: radial-gradient(circle at center, #ffffff30, #f9a26110);
}

p.room.theme.genai {
  border-color: var(--theme-a-light);
  color: var(--theme-a);
  background: radial-gradient(circle at center, #ffffff30, #9bccc810);
}

p.room.theme.tech {
  border-color: var(--theme-c-light);
  color: var(--theme-c);
  background: radial-gradient(circle at center, #ffffff30, #dcc4df20);
}

p.room.theme.wellbeing {
  border-color: var(--theme-e-light);
  color: var(--theme-e);
  background: radial-gradient(circle at center, #ffffff30, #ffd36c10);
}

p.room.theme.feedback {
  border-color: var(--theme-b-light);
  color: var(--theme-b);
  background: radial-gradient(circle at center, #ffffff30, #b2d9f418);
}

p.room.theme.inlinelabel {
  width: 320px;
  display: inline;
  white-space: nowrap;
}

p.room.session span:nth-child(2) {
  font-style: italic;
}

div.room.presentation {
  background: #1f404008;
  padding: 8px;
  border-radius: 2px;
}

div.room.presentation p {
  margin: 0px;
}

details {
  margin-top: 8px;
}

details summary {
  color: var(--link-color);
  font-weight: 300;
}

details summary:hover {
  color: var(--secondary-70);
  cursor: pointer;
}

p.room.presentation em {
  display: inline-block;
  margin-bottom: 5px;
}

/* Room Theme Colors */

/* Room Links */
a.panelButton {
  text-decoration: none;
  background: #ffffffa8;
  padding: 5px 8px;
  font-size: 90%;
  border-radius: 3px;
  border: 1px solid var(--secondary-10);
  display: inline-block;
  margin-top: 0px;
  margin-right: 8px;
  cursor: pointer;
}

a.panelButton:hover {
  border: 1px solid var(--secondary-20);
  text-decoration: none;
}

p.room.session a,
a.panelJoinButton {
  background: var(--secondary-color);
  color: var(--accent-color) !important;
  padding: 5px 8px;
  font-size: 90%;
  text-decoration: none;
  margin-top: 0px;
  margin-right: 0px;
  display: inline-block;
  border-radius: 3px;
}

p.room.session a:hover,
a.panelJoinButton:hover {
  background: var(--secondary-70);
  color: var(--accent-hover) !important;
}

/* Abstract Styles */
div#abstract p:last-of-type {
  margin-bottom: 2rem;
}

div#abstract img {
  width: 333px;
  height: auto;
  float: right;
  margin: 0 1rem 1rem 2rem;
  border: 1px solid #cccccc4d;
}

div#abstract li strong {
  font-weight: 400;
}

/* Table Styles */
.scheduleTable td {
  padding: 0 6px;
  border-radius: 2px;
  vertical-align: top;
}

.scheduleTable th {
  border-radius: 2px;
}

.scheduleTable tr.lighter {
  background: #f7f7f7;
}

.scheduleTable div.sessions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 -6px;
}

.scheduleTable div.sessions>div {
  flex: 1;
  min-width: calc(25% - 1rem);
  box-sizing: border-box;
}

/* Tab Styles */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--secondary-10);
  margin-bottom: 20px;
}

.tab-link {
  flex: 1;
  padding: 14px;
  background-color: #f1f1f1;
  border: 1px solid #f1f1f1;
  cursor: pointer;
  text-align: center;
  border-radius: 2px;
  font-size: 16px;
  color: var(--primary-color);
}

.tab-link:hover {
  background-color: var(--secondary-20);
}

.tab-link.active,
.tab-link:active {
  background-color: var(--secondary-70);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Intro and Call Sections */
#intro,
#call {
  width: 61.8vw;
  padding: 15vh 0;
  margin: auto;
}

#intro .content {
  display: flex;
  justify-content: stretch;
  gap: 6rem;
}

#intro h3,
#call h3 {
  font-size: calc(28px + 1.2vh);
  margin-top: 0.75rem;
}

#call .content .flex {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
}

#call .flex div {
  flex-basis: 48%;
}

/* Theme Grid Layout */
#themes {
  width: 100%;
  box-sizing: border-box;
}

#themes .content.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  max-width: 90vw;
  margin: 0 auto;
}

/* Theme Cards */
.theme-card {
  position: relative;
  background: #ffffff30;
  border: 1px solid var(--gradient-start);
  border-radius: 1.25rem;
}

/* Force square aspect ratio */
.theme-card::before {
  content: '';
  display: block;
  padding-bottom: 100%;
}

.theme-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}


/* Typography */
#themes h3,
#themes h4 {
  margin: 0;
  padding: 0;
}

#themes h3 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

#themes h4 {
  font-size: 1.8rem;
  line-height: 1.4;
  max-width: 90%;
  /* Prevents text from touching card edges */
  margin: 0 auto;
  /* Centers the text block */
}

/* Theme Colors - when .coloured class is applied */
.theme-card:nth-child(1) {
  background: var(--gradient-start);
}

.theme-card:nth-child(2) {
  border-color: var(--theme-a-light);
}

.theme-card:nth-child(3) {
  border-color: var(--theme-b-light);
}

.theme-card:nth-child(4) {
  border-color: var(--theme-c-light);
}

.theme-card:nth-child(5) {
  border-color: var(--theme-d-light);
}

.theme-card:nth-child(6) {
  border-color: var(--theme-e-light);
}

.theme-card:nth-child(2):hover {
  border-color: var(--theme-a);
  background: radial-gradient(circle at center, #ffffff30, #9bccc820);
}

.theme-card:nth-child(3):hover {
  border-color: var(--theme-b);
  background: radial-gradient(circle at center, #ffffff30, #b2d9f420);
}

.theme-card:nth-child(4):hover {
  border-color: var(--theme-c);
  background: radial-gradient(circle at center, #ffffff30, #dcc4df20);
}

.theme-card:nth-child(5):hover {
  border-color: var(--theme-d);
  background: radial-gradient(circle at center, #ffffff30, #f9a26120);
}

.theme-card:nth-child(6):hover {
  border-color: var(--theme-e);
  background: radial-gradient(circle at center, #ffffff30, #ffd36c20);
}

.theme-card:nth-child(1) h3 {
  color: var(--bg-color);
}

.theme-card:nth-child(2) h4 {
  color: var(--theme-a);
}

.theme-card:nth-child(3) h4 {
  color: var(--theme-b);
}

.theme-card:nth-child(4) h4 {
  color: var(--theme-c);
}

.theme-card:nth-child(5) h4 {
  color: var(--theme-d);
}

.theme-card:nth-child(6) h4 {
  color: var(--theme-e);
}

@keyframes rippleWave {
  0% {
    border-color: var(--animate-border-start);
    background: var(--animate-background-start);
    transform: scale(1);
  }

  50% {
    border-color: var(--animate-border-end);
    background: var(--animate-background-end);
    transform: scale(1.05);
  }

  100% {
    border-color: var(--animate-border-start);
    background: var(--animate-background-start);
    transform: scale(1);
  }
}

/* Animation classes for each card */
.theme-card:nth-child(1).animate {
  --animate-border-start: var(--gradient-start);
  --animate-border-end: var(--gradient-end);
  --animate-background-start: var(--gradient-start);
  --animate-background-end: var(--gradient-end);
  animation: rippleWave 2s ease-in-out forwards;
}

.theme-card:nth-child(2).animate {
  --animate-border-start: var(--theme-a-light);
  --animate-border-end: var(--theme-a);
  --animate-background-start: #ffffff30;
  --animate-background-end: radial-gradient(circle at center, #ffffff30, #9bccc820);
  animation: rippleWave 2s ease-in-out forwards;
}

.theme-card:nth-child(3).animate {
  --animate-border-start: var(--theme-b-light);
  --animate-border-end: var(--theme-b);
  --animate-background-start: #ffffff30;
  --animate-background-end: radial-gradient(circle at center, #ffffff30, #b2d9f420);
  animation: rippleWave 2s ease-in-out forwards;
}

.theme-card:nth-child(4).animate {
  --animate-border-start: var(--theme-c-light);
  --animate-border-end: var(--theme-c);
  --animate-background-start: #ffffff30;
  --animate-background-end: radial-gradient(circle at center, #ffffff30, #dcc4df20);
  animation: rippleWave 2s ease-in-out forwards;
}

.theme-card:nth-child(5).animate {
  --animate-border-start: var(--theme-d-light);
  --animate-border-end: var(--theme-d);
  --animate-background-start: #ffffff30;
  --animate-background-end: radial-gradient(circle at center, #ffffff30, #f9a26120);
  animation: rippleWave 2s ease-in-out forwards;
}

.theme-card:nth-child(6).animate {
  --animate-border-start: var(--theme-e-light);
  --animate-border-end: var(--theme-e);
  --animate-background-start: #ffffff30;
  --animate-background-end: radial-gradient(circle at center, #ffffff30, #ffd36c20);
  animation: rippleWave 2s ease-in-out forwards;
}

details div,
details p,
p.overview {
  font-size: 95% !important;
}
p.overview {
  margin-top: 5px !important;
}
details p {
  padding-top: 3px !important;
}
p.mobileNote {
  margin-top: 1.618rem;
  display: none;
}
/* Preserve hover states */
.theme-card:hover {
  animation: none;
  /* Ensure hover states take precedence over animation */
}
button#topButton {
  padding: .618rem 1rem;  
}

/* Icon Styles */
span.material-icons {
  font-size: calc(3rem + 2vh);
}

.icon {
  margin: 0 0 1rem 0;
}


/* Media Queries */
@media (max-width: 1880px) {
  #header div.content {
    width: 90%;
  }

  #themes h3 {
    font-size: 1.9rem;
  }

  #themes h4 {
    font-size: 1.4rem;
  }

  #header h1 {
    font-size: 3.8rem;
    line-height: 4rem;
  }

  #header h2 {
    font-size: 2.8rem;
  }

  #hostedBy {
    font-size: 1rem;
  }
}

@media (max-width: 1480px) {
  #header h1 {
    font-size: 2.8rem;
    line-height: 3rem;
  }

  #themes h3 {
    font-size: 1.66rem;
  }

  #themes h4 {
    font-size: 1.15rem;
  }

  #header h2 {
    font-size: 2.1rem;
  }

  #hostedBy {
    font-size: 0.8rem;
    line-height: 0.9rem;
  }
}

@media (max-width: 1280px) {
  #header h1 {
    font-size: 2.5rem;
    line-height: 2.6rem;
  }

  #themes h3 {
    font-size: 1.45rem;
  }

  #themes h4 {
    font-size: 1rem;
  }

  #header h2 {
    font-size: 1.9rem;
  }

  button {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    margin: 0 0.5rem 1rem 0;
  }

}

.scheduleTable tbody td:first-child {
  white-space: nowrap;
}

@media (max-width: 1024px) {

  #themes .content.grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #themes h3 {
    font-size: 1.85rem;
  }

  #themes h4 {
    font-size: 1.45rem;
  }

  #footer h3,
  #footer h3 strong {
    font-size: 1rem;
  }
  #footer.stacked h3, #footer.stacked h3 strong {
    font-size: 1.25rem;
  }
  
  #intro .content {
    display: block;
  }

  button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    margin: 0 0.5rem 1rem 0;
  }

  .scheduleTable tbody td:first-child {
    white-space: nowrap;
  }

  .scheduleTable div.sessions {
    flex-direction: column;
    gap: 0;
  }

  .scheduleTable div.sessions>div {
    min-width: 100%;
  }

  #logos {
    margin-top: 1.5rem;
  }
  p.mobileNote {
    display: block;
    white-space: normal;
  }
}

@media (max-width: 850px) {
  div#titleContainer {
    max-width: 90vw;
  }

  #themes .content.grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 61.8vw;
  }

  #themes h3 {
    font-size: 1.75rem;
  }

  #themes h4 {
    font-size: 1.33rem;
  }

  #themes .content.grid {
    gap: 1rem;
  }

  #intro,
  #call {
    width: 80vw;
    padding: 10vh 0;
  }

  #intro h3 {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin: 0 0.2rem 0.8rem 0;
  }

  #header {
    text-align: center;
  }

  #header div.content {
    max-width: 80%;
    text-align: center;
    justify-content: center;
  }

  #header .flex .flex {
    justify-content: center;
  }

  div#downArrow {
    display: none;
  }

  #logos {
    margin-top: 1.5rem;
  }

  .scheduleTable div.sessions {
    flex-direction: column;
    gap: 0;
  }

  .scheduleTable div.sessions>div {
    min-width: 100%;
  }

  #footer h3 {
    width: 90vw;
  }

  div#abstract img {
    width: 270px;
    margin: 0 0.66rem 0.66rem 1rem;
  }
}

@media (max-width: 600px) {
  #header .content {
    min-width: auto;
  }

  #themes h3 {
    font-size: 1.75rem;
  }

  #themes h4 {
    font-size: 1.3rem;
  }

  #themes .content.grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 95vw;
  }

  #header h1 {
    font-size: 2.5rem;
    line-height: 2.6rem;
  }

  #header h2 {
    font-size: 1.9rem;
    margin: 0 0.5rem;
  }

  #intro,
  #call {
    width: 90vw;
    padding: 8vh 0;
  }

  #intro h3,
  #call h3 {
    font-size: calc(22px + 1.2vh);
    margin-top: 0rem;
  }

  #subtitle span,
  button#findOutMore {
    margin-right: 0;
  }

  button#findOutMore {
    margin-left: 0rem;
  }

  #logos {
    margin-top: 1.5rem;
    width: 50%;
  }

  img#cquni {
    margin: 0 1rem;
    width: calc(100% - 2rem);
  }

  #appBar {
    padding: 1rem;
    text-align: left;
    padding-right: 3rem;
  }

  #appBar .spaceBetween {
    display: block;
  }

  #appBar h1 span {
    display: block;
    font-size: 1.5rem;
    margin-top: 0.75rem;
  }

  #appBar #logos {
    display: none;
  }

  #pageContent {
    margin: 1rem;
  }

  #pageContent #abstract button {
    margin-bottom: 0;
  }

  #call .content .flex {
    display: inline;
  }

  .scheduleTable tbody td:first-child {
    white-space: normal;
  }

  .tabs button span {
    white-space: nowrap;
  }

  p.room.theme.inlinelabel {
    width: auto;
    display: block;
    white-space: normal;
    margin-bottom: -5px;
  }
  
}

@media (max-width: 500px) {
  #header h1 {
    font-size: 2.2rem;
    line-height: 2.4rem;
  }

  #header h2 {
    font-size: 1.8rem;
    margin: 0 0.5rem;
  }

  #themes h3 {
    font-size: 1.5rem;
  }

  #themes h4 {
    font-size: 1.1rem;
  }

  #bannerButtons {
    margin: 0.8rem 0;
  }

  #logos {
    margin-top: 1rem;
    width: 70%;
  }

  button {
    padding: 0.5rem 0.618rem;
    font-size: 12pt;
    margin: 0 0rem 0.8rem 0;
  }

}

/* Animations */
@keyframes downArrow {
  from {
    bottom: 2rem;
    opacity: 0;
  }

  to {
    bottom: 0.33rem;
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    padding-top: 3rem;
    opacity: 0;
  }

  to {
    padding-top: 0;
    opacity: 1;
  }
}

.animateIn {
  opacity: 0;
}

.fadeInUp {
  animation: fadeInUp 0.75s ease-in-out;
  opacity: 1;
}

/* Dialog Overlay */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Bottom Dialog */
.bottom-dialog {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1001;
}

.dialog-overlay.active .bottom-dialog {
  transform: translateY(0);
}

.dialog-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 32px 32px 0 32px;
  border-radius: 24px 24px 0 0;
  z-index: 10;
}

.dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  transition: all 0.2s ease;
  padding: unset;
  margin: unset;
}

.dialog-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.dialog-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 8px;
  line-height: 1.2;
  padding-right: 60px;
}

.dialog-presenter {
  font-size: 1.1rem;
  color: var(--secondary-70);
  font-weight: 600;
  margin-bottom: 24px;
}

.dialog-content {
  padding: 0 32px 32px 32px;
}

.dialog-abstract {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  background: var(--bg-color);
  padding: 24px;
  border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 640px) {

  .dialog-header {
    padding: 24px 24px 0 24px;
  }

  .dialog-content {
    padding: 0 24px 24px 24px;
  }

  .dialog-title {
    font-size: 1.5rem;
    padding-right: 50px;
  }

}

/* Smooth scrollbar for dialog */
.bottom-dialog::-webkit-scrollbar {
  width: 6px;
}

.bottom-dialog::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

.bottom-dialog::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 3px;
}

.bottom-dialog::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}