.home {
  background-image: url(assets/shared/tile-bulbs.jpg);
  background-size: 250px;
}
.grid-container--home {
  background-image: url(assets/home/background-home-mobile.jpg);
  background-size: 100%;
  background-position: 25%;
  padding-top: 8rem;
}
.large-button,
.with-large-button {
  display: none;
}
/* without-button-hidden { } */
ul#topics {
  margin-top: 0.25em;
}

@media (min-width: 35rem) {
  .grid-container--home {
    background-image: url(assets/home/background-home-tablet.jpg);
  }
}
@media (min-width: 60em) {
  ul#topics {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }
  .grid-container--home {
    background-image: url(assets/home/background-home-desktop.jpg);
    align-items: center;
    width: 100%;
    max-height: 38vw;
  }
  .grid-container--home > :first-child {
    grid-column: 2;
  }
  .grid-container--home > :last-child {
    grid-column: 3;
  }
  .without-large-button {
    display: none;
  }
  .with-large-button {
    display: initial;
  }
  .large-button {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    padding: 0 2em;
    border-radius: 50%;
    aspect-ratio: 1;
    text-decoration: none;
    background-color: white;
  }
  .large-button:after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s linear, transform 0.75s ease-in-out;
  }
  .large-button:not(.inactive):focus:after,
  .large-button:not(.inactive):hover:after {
    opacity: 1;
    transform: scale(1.5);
  }
  .large-button:not(.inactive):hover {
    background: var(--strong-color,white);
  }
  .large-button span {
    --fg: var(--strong-color,rgb(178, 15, 15));
    --bg: white;
    color: var(--fg);
    display: block;
    text-align: center;
  }
  .large-button.inactive span {
    --fg: lightblue;
  }
  .large-button:not(.inactive):focus span,
  .large-button:not(.inactive):hover span {
    --fg: white;
    --bg: var(--strong-color,rgb(178, 15, 15));
  }
  .large-button span.text-shadow {
    text-shadow: 1px  0   var(--bg), -1px  0   var(--bg), 
                 0    1px var(--bg),  0   -1px var(--bg), 
                 1px  1px var(--bg), -1px -1px var(--bg), 
                 1px -1px var(--bg), -1px  1px var(--bg);
  }
  .info-box h2,
  .info-title h2,
  .info-title p{
    text-align: left;
  }
}

#conference-name h3 {
  font-size: 1.75rem;
}

/* -------- Registration Fees table -------- */

.table-wrapper {
  overflow-x: auto;
  margin-top: 1.5rem;
}

.fees-table {
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.fees-table th,
.fees-table td {
  border: 1px solid #ccc;
  padding: 0.6rem 0.5rem;
  text-align: center;
  width: 20%;
  vertical-align: baseline;
}

.fees-table th {
  background: #f3f3f3;
  font-weight: 600;
}

.fees-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.fees-table td:first-child {
  width: 30%;
}

@media (max-width: 600px) {
  .fees-table th,
  .fees-table td {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
}

/* Base styling */
.info-text {
  position: relative;
}

/* Hide visually but keep accessible */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* Default: show all text and the toggle button */
.info-text .show-more {
  display: block;
}

.info-text .toggle-btn {
  display: inline-block;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  line-height: 1;
  padding: .25rem .5rem;
  position: absolute;
  right: 0;
  bottom: 0;
}

.toggle-btn ~ .show-more,
.toggle-btn ~ ul > .show-more {
  display: none;
}

.toggle-checkbox:checked + .toggle-btn ~ .show-more {
    display: block;
}

.toggle-checkbox:checked + .toggle-btn ~ ul > .show-more {
    display: list-item;
}

.toggle-btn::after {
  content: "show more";
}

.toggle-checkbox:checked + .toggle-btn::after {
  content: " show less";
}

/* Larger screens: always show all, hide toggle */
@media (min-width: 40em) {
  .info-text .toggle-btn,
  .info-text .toggle-checkbox {
    display: none;
  }
  .info-text .show-more {
    display: block;
  }

  .toggle-btn ~ ul > .show-more {
    display: list-item;
  }
}




/* ===== Announcement (time-limited) ===== */
.announcement-box {
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  background-color: white;
  border-radius: 15px;
  padding: 0.5rem 5rem;
  margin-bottom: 1rem;

  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  border: 2px solid rgba(178, 15, 15, 0.35);
}

.announcement-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  transform: rotate(-35deg);
  transform-origin: left top;
  padding: 0.15rem 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgb(178, 15, 15);
  color: white;
  border-radius: 0.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  animation: announcement-blink 1.1s steps(2, end) infinite;
}

@keyframes announcement-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}
