
:root {
  /* --yellow: #4793e0; */
  --primary: #4793e0;
  --warning: #4793e0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    font-family: "Roboto Slab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

a {
  color: #4793e0;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
}

p {
  line-height: 1.75;
}

.blockquote-footer::before {
  content: "— ";
}


.container,
.container-fluid,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.container-fluid{
    padding: 0;
}

.Subhead {
    border-bottom: var(--borderWidth-thin, max(1px, 0.0625rem)) solid hsla(210,18%,87%,1);
    display: flex;
    flex-flow: row wrap;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.highlight {
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    background-color: #f7f7f9;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.force-content-max-width > *:not(.skip-force-width) {
  max-width: 100% !important;
}

.btn-continue {
  border-radius: 50%;
  aspect-ratio: 1;
}

.page-section h2.section-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 2.5rem;
  color: #4793e0;
  letter-spacing: 0.0625em;
  font-weight: bold;
}
.page-section h3.section-subheading {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  font-family: "Droid Serif", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  margin-bottom: 4rem;
}


@media (min-width: 768px) {
  section {
    padding: 3rem;
  }
}
::-moz-selection {
  background: #4793e0;
  text-shadow: none;
}

::selection {
  background: #4793e0;
  text-shadow: none;
}

img::-moz-selection {
  background: transparent;
}

img::selection {
  background: transparent;
}

img::-moz-selection {
  background: transparent;
}

.btn-xl {
  padding: 0.75rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1.125rem;
  font-weight: 700;
}

.btn-social {
  height: 2.5rem;
  width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 100%;
}

#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: #212529;
}
#mainNav .navbar-toggler {
  padding: 0.75rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.75rem;
  color: #fff;
  text-transform: uppercase;
  background-color: #4793e0;
  border: 0;
}
#mainNav .navbar-brand {
  color: #4793e0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  letter-spacing: 0.0625em;
  text-transform: uppercase;
}
#mainNav .navbar-brand img {
  height: 2rem;
}

#mainNav .navbar-nav .nav-item .nav-link {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.95rem;
  color: #4793e0;
  letter-spacing: 0.0625em;
  font-weight: bold;
}
#mainNav .navbar-nav .nav-item .nav-link.active, #mainNav .navbar-nav .nav-item .nav-link:hover {
  color: #4793e0;
}

@media (min-width: 992px) {
  #mainNav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border: none;
    background-color: transparent;
    transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
  }
  #mainNav .navbar-brand {
    font-size: 1.5em;
    transition: font-size 0.3s ease-in-out;
  }
  #mainNav .navbar-brand img {
    height: 3rem;
    transition: height 0.3s ease-in-out;
  }
  #mainNav.navbar-shrink {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: #212529;
  }
  #mainNav.navbar-shrink .navbar-brand {
    font-size: 1.25em;
  }
  #mainNav.navbar-shrink .navbar-brand svg,
  #mainNav.navbar-shrink .navbar-brand img {
    height: 2rem;
  }
  #mainNav .navbar-nav .nav-item {
    margin-right: 1rem;
  }
  #mainNav .navbar-nav .nav-item:last-child {
    margin-right: 0;
  }
}
header.masthead {
  padding-bottom: 6rem;
  text-align: center;
  color: #333;
  /* background-image: url("../assets/meetings-1149198_1920.jpg"); */
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center center;
  background-size: cover;
}

header.masthead .cover-image {
  max-width: max-content;
}

header.masthead .masthead-subheading {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5rem;
  margin-bottom: 25px;
  font-family: "Droid Serif", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

header.masthead .masthead-heading {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 3.25rem;
  margin-bottom: 2rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

@media (min-width: 768px) {
  header.masthead {
    padding-bottom: 3rem;
  }

  header.masthead .masthead-subheading {
    font-size: 2.25rem;
    font-style: italic;
    line-height: 2.25rem;
    margin-bottom: 2rem;
  }

  header.masthead .masthead-heading {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 4.5rem;
    margin-bottom: 4rem;
  }
}
#portfolio .portfolio-item {
  max-width: 25rem;
  margin-left: auto;
  margin-right: auto;
}
#portfolio .portfolio-item .portfolio-link {
  position: relative;
  display: block;
  margin: 0 auto;
}
#portfolio .portfolio-item .portfolio-link .portfolio-hover {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(254, 209, 54, 0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity ease-in-out 0.25s;
}
#portfolio .portfolio-item .portfolio-link .portfolio-hover .portfolio-hover-content {
  font-size: 1.25rem;
  color: white;
}
#portfolio .portfolio-item .portfolio-link:hover .portfolio-hover {
  opacity: 1;
}
#portfolio .portfolio-item .portfolio-caption {
  padding: 1.5rem;
  text-align: center;
  background-color: #fff;
}
#portfolio .portfolio-item .portfolio-caption .portfolio-caption-heading {
  font-size: 1.5rem;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  margin-bottom: 0;
}
#portfolio .portfolio-item .portfolio-caption .portfolio-caption-subheading {
  font-style: italic;
  font-family: "Droid Serif", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.portfolio-modal .modal-dialog {
  margin: 1rem;
  max-width: 100vw;
}
.portfolio-modal .modal-content {
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}
.portfolio-modal .modal-content h2 {
  font-size: 3rem;
  line-height: 3rem;
}
.portfolio-modal .modal-content p.item-intro {
  font-style: italic;
  margin-bottom: 2rem;
  font-family: "Droid Serif", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.portfolio-modal .modal-content p {
  margin-bottom: 2rem;
}
.portfolio-modal .modal-content ul.list-inline {
  margin-bottom: 2rem;
}
.portfolio-modal .modal-content img {
  margin-bottom: 2rem;
}
.portfolio-modal .close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  background-color: transparent;
}
.portfolio-modal .close-modal:hover {
  opacity: 0.3;
}

.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}
.timeline:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  margin-left: -1.5px;
  content: "";
  background-color: #e9ecef;
}
.timeline > li {
  position: relative;
  min-height: 50px;
  margin-bottom: 50px;
}
.timeline > li:after, .timeline > li:before {
  display: table;
  content: " ";
}
.timeline > li:after {
  clear: both;
}
.timeline > li .timeline-panel {
  position: relative;
  float: right;
  width: 100%;
  padding: 0 20px 0 100px;
  text-align: left;
}
.timeline > li .timeline-panel:before {
  right: auto;
  left: -15px;
  border-right-width: 15px;
  border-left-width: 0;
}
.timeline > li .timeline-panel:after {
  right: auto;
  left: -14px;
  border-right-width: 14px;
  border-left-width: 0;
}
.timeline > li .timeline-image {
  position: absolute;
  z-index: 100;
  left: 0;
  width: 80px;
  height: 80px;
  margin-left: 0;
  text-align: center;
  color: white;
  border: 7px solid #e9ecef;
  border-radius: 100%;
  background-color: #4793e0;
}
.timeline > li .timeline-image h4 {
  font-size: 10px;
  line-height: 14px;
  margin-top: 12px;
}
.timeline > li.timeline-inverted > .timeline-panel {
  float: right;
  padding: 0 20px 0 100px;
  text-align: left;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
  right: auto;
  left: -15px;
  border-right-width: 15px;
  border-left-width: 0;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
  right: auto;
  left: -14px;
  border-right-width: 14px;
  border-left-width: 0;
}
.timeline > li:last-child {
  margin-bottom: 0;
}
.timeline .timeline-heading h4 {
  margin-top: 0;
  color: inherit;
}
.timeline .timeline-heading h4.subheading {
  text-transform: none;
}
.timeline .timeline-body > ul,
.timeline .timeline-body > p {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .timeline:before {
    left: 50%;
  }
  .timeline > li {
    min-height: 100px;
    margin-bottom: 100px;
  }
  .timeline > li .timeline-panel {
    float: left;
    width: 41%;
    padding: 0 20px 20px 30px;
    text-align: right;
  }
  .timeline > li .timeline-image {
    left: 50%;
    width: 100px;
    height: 100px;
    margin-left: -50px;
  }
  .timeline > li .timeline-image h4 {
    font-size: 13px;
    line-height: 18px;
    margin-top: 16px;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    float: right;
    padding: 0 30px 20px 20px;
    text-align: left;
  }
}
@media (min-width: 992px) {
  .timeline > li {
    min-height: 150px;
  }
  .timeline > li .timeline-panel {
    padding: 0 20px 20px;
  }
  .timeline > li .timeline-image {
    width: 150px;
    height: 150px;
    margin-left: -75px;
  }
  .timeline > li .timeline-image h4 {
    font-size: 18px;
    line-height: 26px;
    margin-top: 30px;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 20px 20px;
  }
}
@media (min-width: 1200px) {
  .timeline > li {
    min-height: 170px;
  }
  .timeline > li .timeline-panel {
    padding: 0 20px 20px 100px;
  }
  .timeline > li .timeline-image {
    width: 170px;
    height: 170px;
    margin-left: -85px;
  }
  .timeline > li .timeline-image h4 {
    margin-top: 40px;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    padding: 0 100px 20px 20px;
  }
}
.team-member {
  margin-bottom: 3rem;
  text-align: center;
}
.team-member img {
  width: 14rem;
  height: 14rem;
  border: 0.5rem solid rgba(0, 0, 0, 0.1);
}
.team-member h4 {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

section#contact {
  background-color: #212529;
  background-image: url("../img/map-image.png");
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
}
section#contact .section-heading {
  color: #fff;
}

section#contact form#contactForm .form-group {
  margin-bottom: 1.5rem;
}

section#contact form#contactForm .form-group input,
section#contact form#contactForm .form-group textarea {
  padding: 1.25rem;
}

section#contact form#contactForm .form-group input.form-control {
  height: auto;
}

section#contact form#contactForm .form-group-textarea {
  height: 100%;
}

section#contact form#contactForm .form-group-textarea textarea {
  height: 100%;
  min-height: 10rem;
}

section#contact form#contactForm p.help-block {
  margin: 0;
}

section#contact form#contactForm .form-control:focus {
  border-color: #4793e0;
  box-shadow: none;
}

section#contact form#contactForm ::-webkit-input-placeholder {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  color: #ced4da;
}

section#contact form#contactForm :-moz-placeholder {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  color: #ced4da;
}

section#contact form#contactForm ::-moz-placeholder {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  color: #ced4da;
}

section#contact form#contactForm :-ms-input-placeholder {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  color: #ced4da;
}

/* --- Footer --- */

.footer {
  padding: 1.875rem 0;
  border-top: 1px #EAEAEA solid;
  margin-top: 3.125rem;
  font-size: 0.875rem;
  background-color: {{ site.footer-col | default: "#EAEAEA" }};
  {% if site.footer-img %}
    background-image: url({{ site.footer-img | relative_url }});
    background-attachment: fixed;
  {% endif %}
}

.footer p.text-muted {
  color: {{ site.footer-text-col | default: "#777777" }} !important;
}

.footer a {
  color: {{ site.footer-link-col | default: "#404040" }};
}

.footer .list-inline {
  margin: 0;
  padding: 0;
  margin-bottom: 1.875rem;
}
.footer .copyright {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
}
.footer .theme-by {
  text-align: center;
  margin: 0.625rem 0 0;
}
.footer .footer-custom-content {
  text-align: center;
  margin-bottom: 0.9375rem;
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) {
  .footer {
    padding: 3.125rem 0;
  }
  .footer .footer-links {
    font-size: 1.125rem;
  }
  .footer .copyright {
    font-size: 1rem;
  }
  .footer .footer-custom-content {
    font-size: 1rem;
  }
  .button-container {
    justify-content: flex-end;
  }
  .button-container {
    flex-direction: column;
  }
  .action-button {
    width: 100%;
  }
}

:target:before {
  content: "";
  display: block;
  height: 3.125rem;
  margin: -3.125rem 0 0;
}

.checkbox-size{
  transform: scale(1.7);
}

.custom-img {
  max-height: 80px;
  object-fit: contain;
}

.event-name {
  word-break: break-word;
  white-space: normal;
  line-height: 1.2rem;
}

.main-content {
    width: 100%;
  width: 100%;
}

.event-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

/* --- Homepage --- */
.date-mobile {
    display: none;
}

@media (max-width: 550px) {
    #futureeventlist td:nth-child(3),
    #pasteventlist td:nth-child(3) {
        display: none;
    }

    .date-mobile {
        display: block;
        font-weight: normal;
        font-size: 0.9rem;
        color: #666;
        margin-top: 0.25rem;
    }
}


/* --- Update to the 3 option (Clone/Delete/Publish) in My Events --- */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.action-button {
  height: 36px;
  font-size: 0.85rem;
  white-space: nowrap;
  width: 100%;
  min-width: 120px;
}

@media (min-width: 500px) {
  .button-container {
     flex-direction: row;
     justify-content: flex-end;
     align-items: center;
     gap: 8px;
  }

  .action-button {
     width: auto;
  }
}

.highlight {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.responsive-col {
    width: 100%;
}

@media (min-width: 768px) {
    .responsive-col {
        max-width: 100%;
    }
}

/* --- Update to Edit.razor to be more responsive --- */
@media (max-width: 991px) {
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.container, .container-fluid {
    overflow-x: hidden;
    max-width: 100%;
}

[class*="col-"] {
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
}

body, html {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.virtual-wrapper {
    padding-top: 2rem;
}

@media (max-width: 767.98px) {
    .virtual-wrapper {
        flex-direction: column;
        padding-top: 0;
    }

    .virtual-wrapper .form-check-input {
        margin: 0 auto 0.5rem auto;
    }

    .virtual-wrapper .form-check-label {
        text-align: center;
    }
}

/* --- Checkbox Virtual of the page Create an Event --- */
.row.text-center {
    justify-content: center;
}

.col-md-4 .form-control {
    text-align: center;
}

.form-check-input {
    flex-shrink: 0;
    transform: scale(1.2);
}

.form-group {
    width: 100%;
}

.form-group {
    width: 100%;
}

.form-group > label {
    display: block; 
    width: 100%; 
    margin-bottom: 0.5rem; 
    padding-left: 0.375rem;
    box-sizing: border-box;
}

.form-group > input,
.form-group > input[type="date"],
.form-control {
    width: 100%;
    padding-left: 0.375rem; 
    box-sizing: border-box;
}
    
.row.text-center {
    justify-content: center;
}

/* --- run.events Integration checkbox in Create an event --- */
.checkbox-groupRun {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    padding:  0;
    box-sizing: border-box;
}

.checkbox-wrapperRun {
    display: flex;
    align-items: center;
    width: 240px;
    gap: 0.5rem;
    justify-content: flex-start;
    box-sizing: border-box;
}

.checkbox-wrapperRun label {
    margin: 0;
    flex: 1;
    text-align: left;
}

@media (max-width: 1656px) {
    .checkbox-groupRun {
        flex-direction: column;
        align-items: center;
    }

    .checkbox-wrapperRun {
        width: 240px;
    }
}

/* --- Add Organizer --- */
.organizer-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    align-items: flex-start;
    text-align: center;
    flex-direction: row;
    margin-bottom: 1rem;
}

.organizer-input .form-group {
    margin-bottom: 0.3rem;
}

.organizer-input {
    flex: 1 1 0;
    max-width: 320px;
    box-sizing: border-box;
}

.organizer-input label {
    margin-bottom: 0.2rem;
    display: block;
}

.organizer-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

@media (max-width: 1202px) {
    .organizer-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .organizer-input {
        width: 100%;
        max-width: 400px;
    }

    .organizer-actions {
        margin-top: 0.4rem;
    }
}

.form-control {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* --- Add Milestone --- */
.milestone-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    align-items: flex-start;
    text-align: center;
    flex-direction: row;
    margin-bottom: 1rem;
}

.milestone-input
.form-group {
    margin-bottom: 0.3rem;
}

.milestone-input {
    flex: 1 1 0;
    max-width: 320px;
    box-sizing: border-box;
}

.milestone-input label {
    margin-bottom: 0.2rem;
    display: block;
}

.milestone-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

@media (max-width: 1202px) {
    .milestone-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .milestone-input {
        width: 100%;
        max-width: 400px;
    }

    .milestone-actions {
        margin-top: 0.4rem;
    }
}

.form-control {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* --- Add Speaker in  Preconference --- */
.precon-speaker-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    text-align: center;
    align-items: flex-start;
    flex-direction: row;
    margin-top: 1.5rem;
}

.precon-speaker-input {
    flex: 1 1 0;
    max-width: 320px;
    box-sizing: border-box;
}

.precon-speaker-input label {
    margin-bottom: 0.2rem;
    display: block;
}

.precon-speaker-input .form-group {
    margin-bottom: 0.3rem;
}

.precon-speaker-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

@media (max-width: 1490px) {
    .precon-speaker-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .precon-speaker-input {
        width: 100%;
        max-width: 400px;
    }

    .precon-speaker-wrapper .form-group {
        margin-bottom: 0.2rem;
    }

    .precon-speaker-action {
        margin-top: 0.4rem;
    }
}

.form-control {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* --- Add Rooms --- */
.room-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    text-align: center;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-direction: row;
}

.room-wrapper .form-group {
    margin-bottom: 0.3rem;
}

@media (max-width: 801px) {
    .room-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }

    .room-wrapper .form-group {
        margin-bottom: 0.2rem;
    }

    .room-wrapper .form-control {
        margin-bottom: 0.2rem;
    }
}

/* --- Other checkbox --- */
.checkbox-group {
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
    gap: 64px;
    flex-wrap: nowrap;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.form-check {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.form-check-input {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    transform: scale(1.2);
}


.form-check-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    text-align: left;
}

@media (max-width: 1091px) {
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .checkbox-wrapper {
        width: 100%;
    }

    .form-check {
        width: 100%;
    }

    .form-check-label {
        white-space: normal;
        display: inline-block;
        width: 100%;
    }
}

@media (min-width: 1249px) {
    .checkbox-group {
        padding-left: 20px;
    }
}

/* --- Menù "My Profile" navbar --- */
.dropdown-menu {
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    height: 0;
    display: block;
}

.show > .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    height: auto;
    overflow: visible;
}

.dropdown-menu a:hover {
    background-color: transparent !important;
    color: inherit;
}

@media (max-width: 991px) {
    .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        padding-left: 25px;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.3rem;
    }

    .dropdown-menu a:hover {
        background-color: transparent !important;
        color: inherit;
    }
}

/* --- Forgot Password Page --- */
.section-heading {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 700;
    color: #007bff;
    text-align: center;
}

/* --- Help Image --- */
.img-help {
    margin-top: 15px;
    margin-bottom: 15px;
    display: block;
    width: 100%;
    max-width: 750px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .img-help {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .img-help {
        max-width: 100%;
    }
}

/* --- Event Detail (Event.cshtml) --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #fff;
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h2.section-heading {
    font-size: 2.5rem;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.alert-light {
    background-color: transparent;
    border: none;
    padding: 0;
}

.masthead-heading {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
}

.masthead-subheading {
    font-size: 1.5rem;
    margin-top: 10px;
    text-align: center;
}

.cover-image {
    object-fit: cover;
    max-height: 400px;
    width: 100%;
    border-radius: 8px;
}

.btn-xl {
    padding: 1.25rem 2rem;
    font-size: 1.2rem;
    border-radius: 10px;
}

#join .btn {
    margin: 10px;
}

#milestones ul {
    padding-left: 0;
    list-style: none;
    text-align: center;
}

#milestones li {
    font-size: 1.5rem;
    margin: 15px 0;
}

#precon .precon-box {
    border: 2px solid #ccc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    background-color: #fff;
    text-align: center;
}

#precon img {
    border-radius: 50%;
    margin: 15px;
    max-width: 170px;
}

#venue iframe {
    width: 100%;
    height: 450px;
    max-width: 100%;
    border: none;
    border-radius: 8px;
}

#sponsors .hero-box img {
    max-height: 120px;
    max-width: 100%;
    object-fit: contain;
}

#sponsors .hero-box {
    padding: 10px;
    text-align: center;
}

#contact .btn-social {
    margin-left: 10px;
    margin-right: 10px;
}

@media (max-width: 1200px) {
    .masthead-heading {
        font-size: 2.4rem;
    }

    .masthead-subheading {
        font-size: 1.2rem;
    }

    .btn-xl {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    #milestones .offset-3 {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    #precon .precon-box {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    h2.section-heading {
        font-size: 2rem;
    }

    .masthead-heading {
        font-size: 2rem;
    }

    .masthead-subheading {
        font-size: 1rem;
    }

    #precon img {
        max-width: 120px;
    }

    .btn-xl {
        padding: 0.8rem 1.2rem;
    }

    iframe {
        height: 300px !important;
    }

    .alert {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .masthead-heading {
        font-size: 1.8rem;
    }

    .masthead-subheading {
        font-size: 0.9rem;
    }

    #milestones li {
        font-size: 1.2rem;
    }

    .btn-xl {
        font-size: 0.9rem;
    }
}
