.material-symbols-outlined {
  font-variation-settings:
    "wght" 400,
    "FILL" 0,
    "GRAD" 0,
    "opsz" 24;
}

.article-animate,
.autoShow.animated {
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

.container_custom,
.navbar {
  box-sizing: border-box;
}

#noResults,
.box,
.cookie-content,
footer {
  text-align: center;
}

@font-face {
  font-family: Comfortaa;
  font-display: swap;
  src: url(Comfortaa.ttf);
}

img.img-fluid {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  transform: scale(1);
  max-width: 100%;
  height: auto;
}

.box {
  flex: 0 0 calc((100% - 40px) / 3);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box .material-symbols-outlined:hover,
.box p:hover,
.box:hover .material-symbols-outlined,
.box:hover p {
  transform: scale(1.2);
}

.footer-icon-text a,
.footer-icon-text p,
.footer-icon-text span {
  margin: 0;
}

footer {
  color: #fff !important;
  max-width: 1400px;
  margin: 0 auto 20px;
  padding: 20px 40px;
  background-color: var(--main);
  color: var(--footer-text);
  border-radius: 12px;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.box p,
.btn-show-more {
  font-size: 16px;
  font-weight: 500;
}

.input-group {
  border: 2px solid #ccc;
  border-radius: 5px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.input-group:hover {
  border-color: var(--main);
}

.input-group:focus-within {
  border-color: var(--main);
  box-shadow: 0 0 5px var(--main);
}

.input-group .btn,
.input-group .form-control,
.input-group .input-group-text {
  border: none;
}

.input-group-text {
  background-color: #fff;
  border-right: none;
}

.input-group .form-control {
  border-left: none;
}

mark {
  background-color: #f6d056;
  padding: 0 2px;
  border-radius: 4px;
}

#noResults {
  display: none;
  margin-top: 2rem;
  font-weight: 700;
  color: var(--main);
}

@media (max-width: 820px) {
  .container_custom {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .box {
    flex: 0 0 auto;
    min-width: 200px;
  }

  .footer-icon-text {
    flex-direction: column;
  }

  #carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
  }

  #header-container h2 {
    text-align: center;
  }

  .article .col-md-6 {
    margin-bottom: 1.5rem;
  }
}

.dark-mode .box,
.dark-mode .card,
.dark-mode .class-card,
.dark-mode .dark-mode footer,
.dark-mode .footer-bottom,
.dark-mode .teacher-card {
  background-color: var(--main);
  color: #f1f1f1;
  border-color: #444;
}

.dark-mode .btn {
  background-color: #2b2b2b;
  color: var(--background);
  border-color: #555;
}

.dark-mode .btn:hover {
  background-color: #555;
}

.dark-mode .btn-outline-secondary {
  background-color: #444;
  color: var(--background);
  border-color: #555;
}

.dark-mode .btn-outline-warning {
  background-color: gray !important;
  color: #fff !important;
  border-color: gray !important;
}

#b_1,
.btn-show-more:hover {
  background-color: var(--second-1);
}

.dark-mode .btn-outline-warning:focus,
.dark-mode .btn-outline-warning:hover {
  background-color: #555 !important;
  border-color: #555 !important;
}

.dark-mode .text-primary {
  color: var(--background) !important;
}

.dark-mode a {
  color: var(--background);
}

.dark-mode .input-group {
  border: none !important;
  box-shadow: none !important;
}

.dark-mode h1 {
  color: #f1f1f1;
}

.effect.effect-5 {
  transition: 0.2s linear;
  position: relative;
}

.effect.effect-5::before {
  content: "arrow_forward_ios";
  font-family: "Material Symbols Outlined";
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30px;
  color: #fff;
  background-color: transparent;
  transform: scale(0, 1);
  transform-origin: left center;
  transition: 0.2s linear;
}

.effect.effect-5:hover {
  text-indent: 15px;
  border-color: var(--main) !important;
  color: var(--main) !important;
}

.effect.effect-5:hover::before {
  transform: scale(1, 1);
  color: var(--main);
}

.preview-student,
.preview-teacher {
  max-width: 100%;
  margin-bottom: 2rem;
}

.preview-container {
  display: block;
}

.preview-student .card,
.preview-teacher .card {
  max-width: 450px;
  margin: 0 auto;
}

.preview-student img,
.preview-teacher img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 992px) {
  .preview-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
  }

  .preview-student,
  .preview-teacher {
    flex: 0 0 auto;
  }
}

.preview-container img.img-fluid:hover {
  transform: none !important;
}

.card .row.align-stretch {
  display: flex;
  align-items: stretch;
}

.card .col-image {
  display: flex;
  align-items: center;
}

.card .col-image img {
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 576px) {
  #header-container h2 {
    text-align: center;
  }

  .br-mobile-not {
    display: none;
  }
}

#logo {
  width: 150px;
  height: auto;
  position: fixed;
  top: 28px;
}

.dark-mode img.logo {
  filter: none;
}

@keyframes autoShowAnimation {
  from {
    opacity: 0;
    transform: translateY(-200px) scale(0.3);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.autoShow {
  opacity: 0;
  transform: translateY(-200px) scale(0.3);
}

.autoShow.animated {
  animation-name: autoShowAnimation;
  animation-duration: 0.8s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-animate {
  opacity: 0;
  animation-name: fadeInUp;
  animation-duration: 0.6s;
}

.card.article {
  border-radius: var(--radius-lg) !important;
}

.btn-show-more {
  background-color: var(--main);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-show-more:hover {
  transform: scale(1.05);
}

.btn-show-more:active {
  transform: scale(0.98);
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: Comfortaa, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--background);
  transition:
    background-color 0.3s,
    color 0.3s;
}

body.dark-mode,
html.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
  --text: #e0e0e0;
  --text-muted: #b9bac4;
}

.container_custom {
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.box {
  flex: 1 1 30%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
  cursor: pointer;
  border-radius: 12px;
}

#b_2 {
  background-color: var(--second-2);
}

#b_3 {
  background-color: var(--second-3);
}

.box p {
  margin: 0;
  transition: transform 0.3s;
}

.dark-mode footer {
  background-color: var(--main);
  color: #f1f1f1;
}

.dark-mode .btn-show-more {
  background-color: #2b2b2b;
  color: var(--background);
  border: 1px solid #555;
}

.dark-mode .btn-show-more:hover {
  background-color: #444;
}

.layer,
.navbar {
  align-items: center;
  display: flex;
}

.navbar {
  justify-content: space-between;
  max-width: 98%;
  position: fixed;
}

.dark-mode .layer,
.layer,
.rectangle .layer {
  position: absolute;
}

.navbar .nav-link {
  color: #000;
  transition:
    color 0.3s,
    text-shadow 0.3s;
}

.navbar .nav-link:hover {
  color: var(--main);
  text-decoration: underline;
  text-shadow: 0 0 12px rgba(182, 97, 175, 0.8);
}

.navbar .nav-link.active {
  font-weight: 500;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.dark-mode .layer_1_duplicate_2,
.layer_1,
.layer_1_duplicate_2 {
  width: 100%;
  height: 100%;
  filter: blur(1px);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dark-mode .nav-link {
  color: #ddd;
}

.dark-mode .nav-link.active,
.dark-mode .nav-link:hover {
  color: var(--main);
  text-shadow: 0 0 10px rgba(4, 23, 26, 0.9);
}

.navbar-light .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

body.dark-mode .carousel-inner img {
  filter: brightness(0.85);
  transition: filter 0.3s ease-in-out;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.show-more {
  color: #000;
}

.dark-mode .show-more {
  color: var(--text);
}

.layer {
  background: rgba(255, 255, 255, 0.089);
  justify-content: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  height: 100%;
  width: 100%;
}

.navbar-brand,
.navbar-nav {
  position: relative;
  z-index: 10;
}

.dark-mode .layer {
  background: rgba(6, 1, 1, 0.104);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none;
}

.layer_1_duplicate_2 {
  box-shadow:
    inset 3px -2px 7px 0 rgba(0, 0, 0, 0.4),
    inset -6px 6px 17px 0 rgba(0, 0, 0, 0.4);
  background: 0 0;
}

.dark-mode .layer_1_duplicate_2 {
  box-shadow:
    inset 3px -2px 7px 0 rgba(0, 0, 0, 0.2),
    inset -6px 6px 17px 0 rgba(0, 0, 0, 0.2);
  background: 0 0;
}

.layer_1 {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.layer_2 {
  width: 95%;
  height: 95%;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  filter: blur(2px);
  border: 0;
}

.layer_3 {
  width: 93%;
  height: 93%;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  filter: blur(5px);
  border: 0;
}

.layer_1_duplicate {
  width: 100%;
  height: 100%;
  box-shadow:
    inset 3px -2px 7px 0 rgba(255, 255, 255, 0.2),
    inset -6px 6px 17px 0 rgba(255, 255, 255, 0.3);
  background: 0 0;
}

.container-fluid {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 0;
}

.navbar {
  margin: 15px;
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  background-color: transparent !important;
}

.layer,
.rectangle {
  border-radius: 12px;
  margin: 0 auto;
}

.navbar-brand,
.navbar-nav,
.navbar-toggler {
  position: relative;
  z-index: 1;
}

.layer {
  height: 100%;
}

.navbar .navbar-nav {
  margin-left: 2rem;
}

.navbar .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

.rectangle {
  inset: 0;
  min-width: 100%;
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  height: 56px;
  /* ADDED FOR SAFARI: Forces a new composite layer */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  z-index: 0;
}

@media (max-width: 820px) {
  .box,
  footer {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }

  .container_custom {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .box {
    flex: 1 1 calc(100% - 40px);
    min-width: 280px;
  }

  .footer-icon-text {
    flex-direction: column;
  }

  #carousel .carousel-inner {
    height: 300px;
  }

  #carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
  }

  #header-container h2 {
    text-align: center;
  }

  .article .col-md-6 {
    margin-bottom: 1.5rem;
  }

  .navbar,
  .rectangle {
    max-width: calc(100% - 30px);
  }

  .navbar {
    margin: 10px auto 0;
  }

  .rectangle {
    margin: 0 auto;
    left: 0;
    right: 0;
    min-height: 56px;
    height: auto;
    transition: height 0.3s;
  }

  .navbar-collapse {
    height: calc(56px + var(--menu-extra-height, 200px));
  }

  .rectangle .layer {
    width: 100%;
    height: 100%;
    transition: height 0.3s;
  }
}

.aspect-ratio-16-9 {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 48;
}

.cookie-consent {
  background-color: #ffffff63;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 350px;
  width: 90%;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  animation: 0.5s slideUp;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  color: #000;
}

.cookie-content {
  padding: 1rem 1.5rem;
}

body.light .cookie-consent {
  background: rgba(255, 255, 255, 0.35);
  color: #222;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

body.dark .cookie-consent {
  background: rgba(20, 20, 20, 0.35);
  color: #f1f1f1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-actions .btn {
  border-radius: 2rem;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: 0.3s;
}

body.light .cookie-actions .btn {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #000;
}

body.light .cookie-actions .btn:hover {
  background: rgba(0, 0, 0, 0.15);
}

body.dark .cookie-actions .btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f1f1f1;
}

body.dark .cookie-actions .btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

@keyframes slideUp {
  from {
    transform: translate(-50%, 50px);
    opacity: 0;
  }

  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.hidden {
  display: none;
}

.box,
.box .btn,
.box .btn-link,
.box .show-more,
.box .text-dark,
.box a.show-more,
.box a.text-dark,
.dark-mode .box a,
.dark-mode a.box,
footer a,
footer a:hover {
  color: #fff !important;
}

.material-symbols-outlined {
  font-size: 36px;
  transition:
    transform 0.3s,
    color 0.3s;
  transform: scale(1);
  font-variation-settings:
    "wght" 400,
    "FILL" 0,
    "GRAD" 0,
    "opsz" 24;
}

.box a,
.box a:active,
.box a:hover,
.box a:link,
.box a:visited {
  color: inherit !important;
  text-decoration: none !important;
}

a.box,
a.box:active,
a.box:hover,
a.box:visited {
  color: #fff !important;
  text-decoration: none !important;
}

.box .material-symbols-outlined,
.box p,
.box span {
  color: inherit !important;
}

@supports (-webkit-touch-callout: none) {
  .box a {
    -webkit-text-fill-color: #fff !important;
  }
}

.navbar .container-fluid {
  position: relative; /* context for background + content */
}

.navbar .container-fluid {
  position: relative;
  height: 100%;
}

.rectangle {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.navbar-brand,
.navbar-nav,
.navbar-toggler {
  position: relative;
  z-index: 1;
}

.navbar {
  height: 56px; /* Bootstrap default */
  background: transparent !important;
}

.navbar-nav .nav-link {
  padding-top: 15px;
  padding-bottom: 0;
  line-height: 56px; /* match navbar height */
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-toggler {
  position: relative; /* or remove position entirely */
  top: auto;
  margin-left: auto; /* keeps it on the right */
}

#dark-mode-toggle {
  position: relative;
  top: 23px;
}

.rectangle {
  height: 56px; /* default */
  transition: height 0.3s;
}

.rectangle.expanded {
  height: calc(56px + var(--menu-extra-height, 415px));
}

.rectangle .layer {
  height: 100%;
  transition: height 0.3s;
}

/* Hide navbar links faster when collapsing */
.navbar-collapse {
  transition:
    height 0.1s ease,
    opacity 0.1s ease;
  opacity: 1;
}

.navbar-collapse.collapsing {
  opacity: 0; /* fade out while collapsing */
}

@media (max-width: 820px) {
  .navbar-toggler {
    position: relative;
    top: 8px;
  }
}

.navbar-toggler.collapsed {
  position: relative;
  top: 8px !important;
}

/* Mobile layout: darkmode left, logo center, toggler right */
@media (max-width: 820px) {
  .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between; /* left, center, right */
    padding: 0 1rem;
    position: relative;
  }

  /* Dark mode toggle on left */
  #dark-mode-toggle {
    order: 0;
    margin: 0;
    top: 8px;
  }

  #logo {
    width: 150px;
    height: auto;
    position: fixed;
    top: -8px;
    left: -85px; /* move 10px further left */
  }
}

.layer_1,
.layer_1_duplicate_2,
.layer_1_duplicate,
.layer_2,
.layer_3 {
  width: 100%;
  height: 100%;
}

/* Back-to-Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  opacity: 0;
  transform: translateY(50px);
  z-index: 99999;

  /* Liquid glass base */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px) saturate(180%) contrast(80%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.2),
    inset 0 4px 20px rgba(255, 255, 255, 0.3);

  color: #fff;
  width: 80px;
  height: 80px;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  cursor: pointer;
  outline: none;
}

/* Shiny highlight overlay */
#backToTop::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  box-shadow:
    inset -10px -10px 20px rgba(255, 255, 255, 0.7),
    inset 10px 10px 20px rgba(255, 255, 255, 0.2);
  filter: blur(2px);
}

/* Hover animation */
#backToTop:hover {
  transform: translateY(0) scale(1.1);
}

#backToTop {
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Show button */
#backToTop.show {
  opacity: 1;
  transform: translateY(0);
}

/* Focus accessibility */
#backToTop:focus {
  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.12),
    0 0 0 6px rgba(255, 255, 255, 0.06) inset;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #backToTop {
    width: 65px;
    height: 65px;
    bottom: 18px;
    right: 16px;
    font-size: 1.2rem;
  }
}

/* Dark mode liquid glass button */
.dark-mode #backToTop {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px) saturate(150%) contrast(90%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    inset 0 4px 16px rgba(255, 255, 255, 0.05);

  color: #f1f1f1;
}

/* Dark mode highlight overlay */
.dark-mode #backToTop::after {
  background: rgba(255, 255, 255, 0.03);
  box-shadow:
    inset -8px -8px 16px rgba(255, 255, 255, 0.08),
    inset 6px 6px 12px rgba(0, 0, 0, 0.3);
}

/* Hover animation */
#backToTop:hover {
  transform: translateY(0) scale(1.2);
}

.gts-hero {
  height: 200px;
  border-radius: 20px;
  margin-left: 38px;
  margin-right: 38px;
  margin-top: 90px;
  margin-bottom: 40px;
  max-width: 1400px;
  background: linear-gradient(135deg, var(--main), var(--second-2));
  color: white;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.dark-mode .gts-hero {
  background: linear-gradient(135deg, var(--main), var(--second-3));
}

/* Global focus styles */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(147, 149, 211, 0.55);
  outline-offset: 3px;
}

/* Section titles */
.section-title {
  letter-spacing: -0.01em;
}

/* Shared card surfaces */
.card-surface {
  background-color: var(--main);
  color: #fff;
}

.card-surface .card-title,
.card-surface .card-text {
  color: inherit;
}

.preview-card {
  width: 100%;
  max-width: 450px;
}

.preview-card .card-body {
  width: 100%;
}

.card-media {
  width: 100%;
  display: block;
  object-fit: cover;
}

.card-media--tall {
  height: 300px;
}

.card-media--compact {
  height: 200px;
}

.carousel-aspect {
  aspect-ratio: 8 / 3;
}

.btn-outline-main {
  border-color: var(--main) !important;
  border-width: 2px;
  color: var(--main) !important;
}

.btn-outline-main:hover,
.btn-outline-main:focus-visible {
  background-color: var(--main);
  color: #fff !important;
}

/* Holiday widget */
.holiday-widget {
  margin: 2.5rem auto;
  padding: 1rem;
  box-sizing: border-box;
}

.holiday-card {
  --bg: var(--main, #2c6fdb);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, white 8%), var(--bg));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: none;
}

.holiday-card--flat {
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
}

.holiday-icon {
  width: 86px;
  height: 86px;
  min-width: 86px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), inset 0 4px 10px rgba(255, 255, 255, 0.03);
}

.holiday-icon .material-symbols-outlined {
  font-size: 38px;
}

.holiday-body {
  flex: 1 1 auto;
  min-width: 0;
}

.holiday-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.holiday-message {
  font-family: "Rubik Mono One", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.25rem;
  line-height: 1.05;
}

.holiday-sub {
  font-size: 0.9rem;
  opacity: 0.92;
}

.holiday-clock {
  min-width: 120px;
  text-align: right;
}

.live-time {
  font-family: "Inter", monospace;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.15rem;
}

.holiday-message .digit {
  display: inline-block;
  animation: digit-bounce 1.6s infinite ease-in-out;
}

.holiday-message .digit:nth-child(2) {
  animation-delay: 0.02s;
}

.holiday-message .digit:nth-child(3) {
  animation-delay: 0.04s;
}

@keyframes digit-bounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

.holiday-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 12px;
}

#confetti-btn {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--main, #2c6fdb);
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease;
}

#confetti-btn:active {
  transform: scale(0.98);
}

#confetti-btn:focus {
  outline: 3px solid rgba(66, 133, 244, 0.18);
  outline-offset: 2px;
}

#confetti-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

#confetti-btn:hover {
  transform: scale(1.2);
  transition: transform 0.32s ease;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483646;
  will-change: transform;
}

.holiday-card [aria-live] {
  outline: none;
}

@media (max-width: 720px) {
  .holiday-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .holiday-clock {
    width: 100%;
    text-align: left;
  }

  .holiday-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    font-size: 2rem;
  }

  .holiday-message {
    font-size: 1.15rem;
  }

  .holiday-controls {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
  }
}

/* Einladung-Widget */
.invite-widget .invite-row {
  max-width: 920px;
  margin: 0 auto;
}

.invite-widget .invite-img {
  height: 140px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.invite-widget .invite-text {
  max-width: 420px;
}

.invite-mirror {
  transform: scaleX(-1);
}

@media (max-width: 575.98px) {
  .invite-widget .invite-img {
    height: 120px;
  }

  .invite-widget .fs-3 {
    font-size: 1.35rem;
  }
}

#loading-overlay {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
