body {
  font-family: Arial, sans-serif;
  margin: 0; /* Ensure no extra margin around the body */
  padding: 
    var(--body-padding-top, 0px) 
    var(--body-padding-right, 0px) 
    var(--body-padding-bottom, 0px) 
    var(--body-padding-left, 0px); /* Adjust padding to suit */
  min-height: 100vh; /* Ensure the body takes up at least the full viewport height */
  display: flex;
  flex-direction: column; /* Align content vertically */
  justify-content: space-between; /* Ensure footer is pushed down */
  text-align: center; /* Ensure text is centered inside all elements */
  overflow-x: hidden;  /* Prevent horizontal scrolling */
  max-width: 100%; /* Ensure no horizontal overflow */
  
  /* Linear gradient background */
  background: linear-gradient(to right, whitesmoke, #b3dcfa);
}

/* ============================= */
/* MAIN HEADER + SUBHEADER STICKY UNIT */
/* ============================= */

.header-container {
  position: sticky;
  top: 0;
  z-index: 10000;               /* ensure it's above all content */
  width: 100%;
}

/* Main header with only logo, centered */
.site-header {
  display: flex;
  justify-content: center;       /* center logo horizontally */
  align-items: center;           /* center vertically */
  padding: 10px 15px;            /* reduce vertical padding */
  background: linear-gradient(to right, #003e69, #67a9da);
  color: white;
  box-sizing: border-box;
}

.site-header img.logo {
  width: 80%;                    /* adjust width for narrow header */
  max-width: 75px;               /* prevent logo from being too big */
  height: auto;
}

/* H1 sizing stays same */
.site-header h1 {
  font-size: 0.9rem;
  margin: 0;
  word-break: break-word;
}

/* Subheader immediately under main header */
.subheader {
  display: flex;
  justify-content: center;       /* center content */
  align-items: center;
  background: #003e69;
  padding: 8px 0;
  margin: 0;
  width: 100%;
}

/* Menu toggle styling */
.menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  color: white;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile menu styling */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;                      
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border-radius: 10px;
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  display: block;
  max-height: 500px;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  border-bottom: 1px solid #ddd;
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu a {
  display: block;
  padding: 12px 20px;
  color: #003e69;                 
  text-decoration: none;
  font-weight: bold;
}

.mobile-menu a:hover {
  background: #f0f0f0;
}

/* Special color for top 3 links */
.mobile-menu li:nth-child(-n+3) a {
  color: #67a9da;
}

.mobile-menu li:nth-child(-n+3) a:hover {
  background: #e0f1ff;
}

/* Footer */
footer {
  background: linear-gradient(to right, #003e69, #67a9da);
  color: white;
  padding: 20px; /* Standard padding */
  text-align: center;
  width: 100%; /* Ensure footer stretches full width */
  margin: 0; /* Remove any margin */
  box-sizing: border-box;
}

/* Main Content Styling */
main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 0; /* Ensure content takes full space */
  margin: 0; /* Remove margin */
  box-sizing: border-box;
}
/* Button Styling */
button {
  padding: var(--button-padding, 20px 30px); /* Button padding */
  font-size: var(--button-text-size, 18px); /* Button text size */
  background: linear-gradient(to right, #003e69, #67a9da); /* Gradient background */
  color: var(--button-text-color, white); /* Button text color */
  border: var(--button-border, none); /* Button border */
  border-radius: var(--button-border-radius, 10px); /* Button border radius */
  cursor: pointer; /* Pointer cursor on hover */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth hover effects */
  margin: var(--button-margin, 0px); /* Margin between buttons */
  display: inline-block; /* Ensure proper spacing */
}

/* Optional: hover effect for gradient buttons */
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}


/* Media Query for Mobile */
@media (max-width: 1024px) {
  button {
    display: block; /* Make buttons block-level elements */
    width: 100%; /* Ensure buttons take up full width */
    margin: 10px 0; /* Adjust margin for spacing between stacked buttons */
  }
}

/* Button Hover */
button:hover {
  background-color: var(--button-hover-color, #FFD700); /* Customize button hover color */
}

/* Button Focus (when clicked or selected) */
button:focus {
  outline: none; /* Remove the outline when the button is focused */
}

/* The main content container */
.container {
  max-width: 960px;  /* Max width for content */
  margin: 0 auto;    /* Center it horizontally */
  padding: 1.5rem;   /* Adds padding around the content */
}

/* Header and footer remain full width */
header, footer {
  width: 100%;
}

/* Prevent horizontal scrolling for mobile view */
@media (max-width: 768px) {
  body {
    background-attachment: scroll; /* Disable fixed background attachment for smaller screens */
  }

  header {
    padding: 10px 5px; /* Adjust header padding for mobile */
  }

  header img {
    max-width: 150px !important; /* Adjust logo size for small screens */
  }

  h1 {
    font-size: 1.2rem; /* Adjust header title font size */
  }
}

/* ============================= */
/* Tile Section */
/* ============================= */

#tile-section {
  background: linear-gradient(to right, whitesmoke, #b3dcfa);
  padding: 40px 25px;
  width: 100%;
  box-sizing: border-box;
}

/* Grid container */
.tiles-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Individual tile */
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
background: linear-gradient(to bottom, #ffffff, #e6e6e6); border: 2px solid #003e69;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

/* Make tiles square */
@media (min-width: 400px) {
  .tile {
    aspect-ratio: 1 / 1;
  }
}

/* Tile images */
.tile img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Hover effect */
.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Section wrapper */
.info-section {
  padding: 40px 16px;  /* adjust to match your tiles section */
  background: linear-gradient(to right, whitesmoke, #b3dcfa);
}


/* Container */
.info-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.info-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: center;
  padding: 40px 40px;
    margin-bottom: 30px;    /* space to next card */
}


/* Remove margin on the last card */
.info-card:last-child {
  margin-bottom: 0;
}

/* Image */
.info-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 16px;
}

/* Title */
.info-title {
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.info-subtitle {
  font-size: 3rem;          /* your size */
  font-weight: 600;         /* semi-bold */
  color: #003e69;           /* your color */
  margin-top: 5px;            /* remove gap above */
  margin-bottom: 4px;       /* space below subtitle */
  text-transform: uppercase;
}


/* Description */
.info-description {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #444;
}
.info-button {
  display: inline-block;
  padding: 40px 90px;
  background-color: #003e69;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.info-button:hover {
  background-color: #00518a;
}

.info-button:active {
  transform: scale(0.97);
}
main .keynote-order {
 font-size: 1.2em;
 font-weight: bold;
 color: #003e69;
}

/* Keynote page section */
.keynote-section {
  padding: 20px 16px 20px 16px;   /* no top padding, side & bottom padding retained */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Full-width speaker image */
.keynote-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;           /* flush against subheader */
  margin-bottom: 10px;                  /* remove default spacing */
  object-fit: cover;
}

/* Content below the image */
.keynote-content {
  background: white;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 20px;
  margin-top: -4px;           /* optional slight overlap with image for seamless look */
  text-align: center;
}

/* Titles */
.keynote-title {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.keynote-subtitle {
  margin: 0 0 16px 0;
  font-weight: bold;
  font-size: 1.1rem;
  color: #003e69;
}

/* Paragraphs */
.keynote-description,
.keynote-bio {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 18px;
  color: #444;
  text-align: left;          /* optional: left-align for readability on long text */
}

/* Button */
.info-button {
  display: block;              /* makes it block-level so margin auto works */
  margin: 30px auto 0 auto;    /* 30px top margin, auto left/right to center */
  padding: 10px 90px;
  background-color: #003e69;
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.info-button:hover {
  background-color: #00518a;
}

.info-button:active {
  transform: scale(0.97);
}
/* Only h1s inside <main> */
main h1 {
  font-size: 1.9rem;
  color: #003e69;
  font-weight: 700;
  text-align: center;
  display: inline;   /* inline or inline-block for multi-line wrap */
  
  /* Multi-line highlight */
  background: rgb(255, 230, 0);
  padding: 0.1em 0.2em; /* padding around text */
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; /* Safari support */
  
  /* Space below heading */
  margin-bottom: 1em;   /* adjust as needed */
}
/* Timetable Section */
.timetable-section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
}

.timetable-section h2 {
  font-size: 1.8rem;
  color: #003e69;
  font-weight: 700;
  text-align: center;
  display: inline;                   /* inline or inline-block to wrap nicely */
  
  /* Full yellow highlight */
  background: rgb(255, 230, 0);      /* your yellow highlight */
  padding: 0.1em 0.3em;              /* adjust padding for a nice rectangle */
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; /* Safari support */
  
  /* Space below heading */
  margin-bottom: 1em;                /* keep spacing consistent */
}

/* Timetable grid */
.timetable-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 16px;
}

/* Time column */
.timetable-grid .time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 600;
  color: #003e69;
  padding-right: 10px;
  font-size: 1.4rem;
}
.timetable-grid .session br {
  line-height: 0;   /* removes extra vertical gap */
  margin: 0;        /* ensures no extra space */
  display: block;   /* still forces a line break */
}

/* Session column */
.timetable-grid .session {
  background: #ffffff;
  border-left: 5px solid #67a9da;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.5rem;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}



/* Session hover effect for desktop */
.timetable-grid .session:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Alternating row shading (optional subtle) */
.timetable-grid .time:nth-child(4n+1),
.timetable-grid .time:nth-child(4n+2) {
  background: #f9fcff;
  border-radius: 8px;
}

/* Key bold text inside sessions */
.timetable-grid .session strong {
  color: #003e69;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .timetable-grid {
    grid-template-columns: 80px 1fr;
    gap: 8px 12px;
  }
/* Make time cells white like session cells */
.timetable-grid .time {
  background: #ffffff;      /* same white as sessions */
  border-radius: 12px;      /* match session rounding */
  padding-right: 10px;      /* keep original padding */
  font-size: 0.9rem;        /* keep original size */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 600;
  color: #003e69;
}

  .timetable-grid .session {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
}

/* Optional: small visual marker for keynote or workshops */
.timetable-grid .session[data-type="keynote"] {
  border-left-color: #003e69;
  background: rgba(0, 62, 105, 0.05);
}

.timetable-grid .session[data-type="workshop"] {
  border-left-color: #67a9da;
  background: rgba(103, 169, 218, 0.1);
}

/* ---------- Profile Section ---------- */
.profile-section {
  width: calc(100% - 40px);    /* Full width minus 20px padding on each side */
  max-width: none;             /* Remove max-width constraint */
  margin: 20px auto 20px auto; /* top:20px, bottom:40px, centered horizontally */
  background-color: white;     
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 40px;               /* internal spacing */
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}


/* Full-width top image */
.profile-image {
  width: 100%;                /* Stretch image to full container width */
  height: auto;
  object-fit: cover;          /* Maintain aspect ratio without stretching */
  margin-bottom: 20px;        /* Space below image */
}

/* Profile content */
.profile-content {
  width: 100%;
  text-align: center;         /* Center all text inside the card */
}

.profile-content h2 {
  font-size: 2.3rem;
  color: #003e69;            /* Brand color */
  margin-bottom: 10px;
}

.profile-content p {
  font-size: 1.3rem;
  color: #333;
  margin: 5px 0;
}

/* Highlight field titles (e.g., Company, Email) */
.profile-content strong {
  color: #003e69;
}

/* Placeholder for workshops / additional info */
#profile-workshops {
  margin-top: 20px;
  text-align: left;
  width: 100%;
}

/* Responsive tweaks for mobile */
@media (max-width: 480px) {
  .profile-section {
    padding: 15px;
  }
  
  .profile-content h2 {
    font-size: 1.5rem;
  }
  
  .profile-content p {
    font-size: 0.95rem;
  }
}
/* Global box-sizing to avoid overflow issues */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Signup section container */
#signup-section {
  max-width: 400px;        /* keeps the form a reasonable width */
  width: 90%;              /* responsive for smaller screens */
  margin: 50px auto;       /* centers vertically with spacing */
  padding: 30px 20px;
  background: #f8faff;     /* soft background */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;      /* center-align titles and buttons */
}

/* Form heading */
#signup-section h2 {
  font-size: 1.8rem;
  color: #003e69;
  margin-bottom: 25px;
  font-weight: 600;
}

/* Form inputs */
#signup-form input {
  width: 100%;             /* fills container */
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#signup-form input:focus {
  border-color: #003e69;
  box-shadow: 0 0 5px rgba(0, 62, 105, 0.3);
  outline: none;
}

/* Signup button */
#signup-form .info-button {
  display: inline-block;
  width: 100%;             /* full width of form */
  padding: 12px 0;
  background-color: #003e69;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}

#signup-form .info-button:hover {
  background-color: #00518a;
}

#signup-form .info-button:active {
  transform: scale(0.97);
}

/* Optional: small screen adjustments */
@media (max-width: 480px) {
  #signup-section {
    padding: 25px 15px;
  }

  #signup-section h2 {
    font-size: 1.5rem;
  }

  #signup-form input {
    padding: 10px 12px;
  }
}
#login-form input {
  width: 100%;             /* fills container */
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

#login-form input:focus {
  border-color: #003e69;
  box-shadow: 0 0 5px rgba(0, 62, 105, 0.3);
  outline: none;
}

/* Login button */
#login-form .info-button {
  display: inline-block;
  width: 100%;             /* full width of form */
  padding: 12px 0;
  background-color: #003e69;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}

#login-form .info-button:hover {
  background-color: #00518a;
}

#login-form .info-button:active {
  transform: scale(0.97);
}

/* Optional: small screen adjustments */
@media (max-width: 480px) {
  #login-section {
    padding: 25px 15px;
  }

  #login-section h2 {
    font-size: 1.5rem;
  }

  #login-form input {
    padding: 10px 12px;
  }
}

/* Existing user login prompt */
.existing-user-box {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
  color: #003e69;
}

.existing-user-box a.login-btn {
  display: inline-block;
  margin-top: 20px;
  margin-left: 6px;
  padding: 8px 18px;
  background-color: #003e69;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.existing-user-box a.login-btn:hover {
  background-color: #00518a;
  transform: translateY(-1px);
}

/* Profile Workshop Tiles */
.workshop-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.workshop-tile {
  background: #f0f4f8;
  border-radius: 10px;
  border: 2px solid #003e69;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  margin-bottom: 20px; /* spacing between tiles */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.workshop-tile .workshop-code {
  font-size: 1.7rem;
  font-weight: bold;
  color: #003e69;
  margin-bottom: 8px;
}
.workshop-tile .workshop-name {
  font-size: 1rem;
  color: black;
}
.workshop-speaker {
  font-size: 0.85rem;
  color: black;
  margin-top: 4px;
}

.workshop-room {
  font-size: 1rem;
  color: #003e69;
  margin-top: 10px;
  margin-bottom: 10px;
}
.keynote-order {
  margin-top: 10px;    /* space above the subtitle */
  margin-bottom: 5px;  /* space below the subtitle */
   font-size: 0.95rem;
  font-weight: bold;
  color: #003e69;
}

/* ---------- Profiles Section ---------- */
.profiles-section {
  width: 100%;
  max-width: 960px;          /* prevents the section from being too wide */
  margin: 20px auto 40px auto; /* top 20px, bottom 40px, centered horizontally */
  padding: 0 20px;           /* side padding */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;       /* center the grid and heading */
}

/* ---------- Profiles Section Title ---------- */
.profiles-section h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 5px  ;            /* top & bottom spacing */
  color: #003e69;
  text-align: center;
}

/* ---------- Grid of Profile Cards ---------- */
.profiles-container {
  display: grid;
  grid-template-columns: 1fr;   /* single column by default */
  gap: 20px;
  width: 100%;
  justify-items: center;        /* center the cards horizontally */
  margin-top: 20px;
}

/* ---------- Individual Profile Card ---------- */
.profile-card {
  width: 100%;
  max-width: 60vw;           /* cards no wider than 60% of viewport width */
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ---------- Profile Card Content ---------- */
.profile-card h4 {
  margin: 0 0 5px 0;
}

.profile-card p {
  margin: 4px 0;
}

.message-btn {
  margin-top: 10px;
  padding: 5px 10px;
  cursor: pointer;
}



/* ---------- Chat Section ---------- */
.chat-section {
  display: flex;
  flex-direction: column;
  height: calc(90vh - 140px); /* full viewport minus header+subheader height */
  padding: 0 20px;             /* side padding only */
  box-sizing: border-box;
}
.chat-section h1 {
  font-size: 1.25rem;      /* adjust size */
  font-weight: 600;         /* semi-bold */
  margin-top: 30px;         /* space above the header */
  margin-bottom: px;      /* space below the header */
  color: #003e69;           /* theme color */
}

/* ---------- Messages Container ---------- */
.messages-container {
  flex-grow: 0.90;               /* take all available vertical space */
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 10px;              /* extra padding around messages */
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ---------- Individual Messages ---------- */
.message {
  max-width: 70%;
  padding: 10px 14px;         /* slightly more padding for better spacing */
  border-radius: 12px;
  word-wrap: break-word;
  font-size: 0.95rem;
  position: relative;
}

/* Sender name above message bubble */
.message .sender-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Messages sent by current user */
.my-message {
  align-self: flex-end;
  background-color: #003e69;
  color: #fff;
  border-bottom-right-radius: 0;
  text-align: right;          /* align bubble content to the right */
}

/* Sender name for current user */
.my-message .sender-name {
  color: #ffd700;             /* gold for "You" */
  text-align: right;
}

/* Messages received from others */
.their-message {
  align-self: flex-start;
  background-color: #e0e0e0;
  color: #000;
  border-bottom-left-radius: 0;
  text-align: left;           /* align bubble content to the left */
}

/* Sender name for others */
.their-message .sender-name {
  color: #003e69;             /* theme color */
  text-align: left;
}

/* ---------- Input Area ---------- */
.message-input-container {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

#message-input {
  flex-grow: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#send-message-btn {
  padding: 10px 16px;
  border: none;
  background-color: #003e69;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

#send-message-btn:hover {
  background-color: #00508f;
}

/* ---------- Scrollbar Styling ---------- */
.messages-container::-webkit-scrollbar {
  width: 6px;
}

.messages-container::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}
/* ---------- Banner Image Above Profiles ---------- */
.profiles-banner {
  width: 100%;
  overflow: hidden;      /* ensures image doesn't spill out */
  margin-bottom: 20px;
    margin-top: 0;
  padding-top: 0;
}

.profiles-banner img {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Ensure subheader is the positioning context */
.subheader {
  display: flex;
  justify-content: center;      /* center the menu button */
  align-items: center;          /* vertical center */
  background: #003e69;
  padding: 8px 0;
  margin: 0;
  width: 100%;
  position: relative;           /* positioning context for absolute children */
}

/* Inbox button positioning inside subheader */
.inbox-button {
  position: absolute;
  right: 15px;                  /* slight padding from right edge */
  top: 50%;                      /* vertically center in subheader */
  transform: translateY(-50%);   /* exact centering */
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  display: flex;                 /* for proper alignment of counter */
  align-items: center;
}

.inbox-count {
  background-color: #ffd700;     /* yellow counter */
  color: #003e69;               /* theme color for text */
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
  margin-left: 4px;
}
/* ---------- Simplified Inbox Styling ---------- */
/* Container */
#inbox-container {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 15px;
}

/* Conversation card */
.inbox-conversation {
  background-color: #f4f8fb; /* softer background */
  border-radius: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Link inside conversation card */
.inbox-conversation a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  text-decoration: none;
  color: #003e69;
  font-weight: 600;
  font-size: 1.1rem; /* slightly larger text */
  line-height: 1.4;
}

/* Hover effect */
.inbox-conversation a:hover {
  background-color: #e0f1ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* Unread badge */
.unread-count {
  background-color: #ffd700; /* gold */
  color: #003e69;
  border-radius: 50%;
  padding: 8px 14px; /* slightly bigger for readability */
  font-size: 0.95rem;
  font-weight: bold;
  min-width: 32px;
  text-align: center;
  margin-left: 12px; /* add space between name and badge */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}


/* Responsive tweak */
@media (max-width: 480px) {
  .inbox-conversation a {
    font-size: 1rem;
    padding: 14px 16px;
  }
  .unread-count {
    padding: 6px 10px;
    min-width: 28px;
  }
}
.find-delegates-wrapper {
  text-align: center;
  margin: 24px 0 40px; /* Space above and below the button */
}

.find-delegates-btn {
  display: inline-block;
  background-color: #003e69;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s;
}

.find-delegates-btn:hover {
  background-color: #005a9e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ============================= */
/* MAP WRAPPER */
/* ============================= */

.map-wrapper {
  position: relative;
  width: 90%;
  margin-bottom: 40px;
}

.map-wrapper img {
  width: 100%;
  display: block;
}

/* ============================= */
/* MARKERS */
/* ============================= */

.marker {
  position: absolute;
  color: #fff;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.7rem;
  user-select: none;
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Highlight effect when button clicked */
.marker.highlight {
  transform: scale(1.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  z-index: 10;
}

/* ============================= */
/* CATEGORY COLOURS (SHARED) */
/* ============================= */

.session-a { background-color: #ff6bf5; }
.session-b { background-color: #4ECDC4; }
.session-c { background-color: #FFD93D; }
.session-d { background-color: #6A4C93; }
.keynote   { background-color: #1A535C; }
.posters   { background-color: #FF9F1C; }
.safe      { background-color: #1dbbe7; }
.registration { background-color: #FF595E; }
.food      { background-color: #1982C4; }

/* ============================= */
/* BUTTONS */
/* ============================= */
.map-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  margin: 20px auto 20px;
  max-width: 900px;
}

/* Reset button styling */
.map-buttons button {
  flex: 1 1 30%;      /* 3 buttons per row */
  max-width: 200px;    /* prevents stretching too much */
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.8em;
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  background: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect for desktop */
.map-buttons button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Category-specific button colors */
.map-buttons button[data-category="session-a"]         { background-color: #FF6BF5; }
.map-buttons button[data-category="session-b"]         { background-color: #4ECDC4; }
.map-buttons button[data-category="session-c"]         { background-color: #FFD93D; }
.map-buttons button[data-category="session-d"]         { background-color: #6A4C93; }
.map-buttons button[data-category="keynote"]           { background-color: #1A535C; }
.map-buttons button[data-category="posters"]           { background-color: #FF9F1C; }
.map-buttons button[data-category="safe"]              { background-color: #1dbbe7; }
.map-buttons button[data-category="registration"]      { background-color: #FF595E; }
.map-buttons button[data-category="food"]              { background-color: #1982C4; }

/* ============================= */
/* MAP SECTION TITLE HIGHLIGHT */
/* ============================= */
.map-section .map-title {
  display: inline;                   /* inline or inline-block for multi-line wrap */
  background: rgb(255, 230, 0);      /* yellow highlight */
  padding: 0.1em 0.2em;              /* highlight padding */
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone; /* Safari support */
}
/* Install Container */
.pwa-install {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffd700; /* changed from #003e69 */
  color: #003e69;       /* darker text for contrast */
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  text-align: center;
  z-index: 9999;
  width: 90%;
  max-width: 500px;
  animation: slideUp 0.4s ease-out;
}

.install-btn {
  background: #003e69;
  color: white;
  border: none;
  width: 80%;              /* 80% of container */
  padding: 14px 0;         /* taller button */
  font-size: 18px;         /* larger text */
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  margin: 0 auto;          /* center it */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* iOS message */
.ios-install-message {
  display: none;
}
  font-size: 14px;
  line-height: 1.4;
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translate(-50%, 20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.sponsor-banner {
  margin-top: 40px;
  width: 80%;
}