/* @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap"); */

@tailwind base;
@tailwind components;
@tailwind utilities;

/*
 * A disabled button has to look unavailable (client, 2026-10-10). Most
 * features wrote their own `<button disabled>` with no disabled styling, so
 * the default lives here, in the base layer: any button that sets its own
 * opacity or cursor with a utility class keeps it, because utilities win
 * over base. Read-only state markers opt out with `opacity-100`
 * (see `ManageActionIcon`). A button busy with its own request keeps more
 * contrast — `aria-busy` is what `Button`'s `loading` sets.
 */
@layer base {
  button:disabled,
  [role="button"][aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.5;
  }

  button:disabled[aria-busy="true"] {
    cursor: wait;
    opacity: 0.75;
  }
}

/*
 * Safety net against page-level horizontal overflow. Several third-party
 * widgets on form pages (Google Places' `.pac-container`, react-select
 * dropdowns, the date/time pickers) size and position themselves outside
 * this app's control — if any of them ever computes a wrong width/offset,
 * it drags the whole document wider instead of just clipping itself.
 * `clip` (not `hidden`) keeps this from creating its own scroll container,
 * which would otherwise break `position: fixed` elements on iOS Safari.
 */
html,
body {
  overflow-x: clip;
}

/* @font-face {
  font-family: "Tajawal";
  src: url("../src/fonts/tajawal/Tajawal-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
} */
@font-face {
  font-family: "Cairo";
  src: url("/fonts/Cairo/Cairo-VariableFont_slnt,wght.ttf")
    format("truetype");
  font-display: swap;
  font-weight: 200 900;
  font-style: normal;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter/Inter-VariableFont_opsz,wght.ttf")
    format("truetype");
  font-display: swap;
  /* font-weight: 200 900; */
}

/* Apply at the document root so body portals inherit the same font. */
html,
body,
.font-arabic,
.font-english {
  font-family: "Cairo", sans-serif;
  /* Pin Cairo's slant axis across browsers; leave its weight axis automatic. */
  font-variation-settings: "slnt" 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.selectfiled .css-13cymwt-control {
  background-color: #f8f8fa !important;
  height: 48px;
  border-radius: 15px !important;
  border: 1px solid #170a511a !important;
}

.selectfiled .css-1u9des2-indicatorSeparator {
  display: none;
}

.selectfiled .css-tj5bde-Svg {
  fill: rgb(41 36 109);
}

.selectfiled .css-1nmdiq5-menu {
  top: 50%;
}

.selectfiled .css-1jqq78o-placeholder {
  color: #29246d;
  font-size: 16px;
}

.selectfiled .css-t3ipsp-control {
  border: 1px solid #170a511a;
  box-shadow: none;
  background: #170a511a;
  border-radius: 15px;
  height: 48px;
  cursor: pointer;
}

.selectfiled .css-t3ipsp-control:hover {
  border-color: #170a511a;
}

input {
  color: #29246d;
  font-size: 14px;
}

.sponsors .react-multi-carousel-track {
  margin-bottom: 50px;
}

.sponsors-swiper {
  position: relative;
  padding-bottom: 50px;
}

.sponsors-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 30px;
  position: absolute;
  bottom: 0;
}

.sponsors-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #dedede;
  /* Light gray for inactive dots */
  border-radius: 50%;
  cursor: pointer;
  opacity: 1;
  transition: all 0.3s ease;
}

.sponsors-pagination-bullet-active {
  background-color: #333399;
  /* Dark blue for active dot */
  width: 12px;
  height: 12px;
}

/* Extra enhancements for better visibility */
/* swiper css */
.swiper-pagination {
  position: relative !important;
  margin-top: 20px !important;
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next,
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev,
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
  transform: none !important;
  background: #29246d;
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
  transform: none !important;
  background: #29246d;
}

.sponsors .react-multi-carousel-dot button {
  width: 16px !important;
  height: 16px !important;
  border-color: transparent;
}

.swiper-pagination-bullet {
  width: 16px !important;
  height: 16px !important;
}

.swiper-pagination-bullet-active {
  background: #1a1a66 !important;
}

/* Keep event gallery bullets visible over the fixed-height banner and match
   the home hero carousel pagination. */
.event-details-swiper .swiper-pagination {
  position: absolute !important;
  inset-inline: 0 !important;
  bottom: 16px !important;
  z-index: 10;
  margin-top: 0 !important;
}

.event-details-swiper .swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  margin-inline: 4px !important;
  background: #ffffff4d !important;
  opacity: 1 !important;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.event-details-swiper .swiper-pagination-bullet-active {
  background: #29246d !important;
}

/* swiper css */
.sponsors .react-multi-carousel-dot--active button {
  background: #29246d !important;
}

.sponsors .react-multi-carousel-dot {
  border-color: transparent;
}

.sponsors .react-multi-carousel-dot button {
  background: #eaeaf1;
}

.dotlist .react-multi-carousel-dot-list,
.dotlist-white .react-multi-carousel-dot-list {
  display: none;
}

/* ==========================================
   Apple-Style Auto-Hiding Scrollbars
   ========================================== */

/* 1. Global scrollbar settings for WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 10px;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.25s ease-in-out;
}

/* 2. Show scrollbar thumb when parent has is-scrolling class or contains is-scrolling */
.is-scrolling::-webkit-scrollbar-thumb,
.is-scrolling *::-webkit-scrollbar-thumb,
body.is-scrolling ::-webkit-scrollbar-thumb,
html.is-scrolling ::-webkit-scrollbar-thumb {
  background-color: rgba(41, 36, 109, 0.35); /* Primary Fursa color at 35% opacity */
}

/* 3. Darker thumb on hover */
.is-scrolling::-webkit-scrollbar-thumb:hover,
.is-scrolling *::-webkit-scrollbar-thumb:hover,
body.is-scrolling ::-webkit-scrollbar-thumb:hover,
html.is-scrolling ::-webkit-scrollbar-thumb:hover {
  background-color: rgba(41, 36, 109, 0.65); /* Primary Fursa color at 65% opacity */
}

/* 4. Global scrollbar settings for Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* Show Firefox scrollbar thumb when active */
.is-scrolling {
  scrollbar-color: rgba(41, 36, 109, 0.35) transparent;
}

.sponsors .react-multi-carousel-track {
  align-items: center;
}

.css-1dimb5e-singleValue {
  color: #29246d !important;
}

body[dir="rtl"] {
}

.sponsers .react-multi-carousel-list {
  display: grid !important;
}

.sponsersitm .react-multi-carousel-track {
  margin-bottom: 0px;
}

.filtermodal input {
  background-color: transparent;
}

.filtermodal .no-custom-background {
  background-color: #29246d21 !important;
}

.filtermodal .css-13cymwt-control {
  background-color: transparent !important;
  border: 1px solid #cbcbcb !important;
}

.filtermodal .css-1jqq78o-placeholder {
  font-size: 14px !important;
}

.filtermodal .relative.w-full label,
.daterange label,
.filtermodal .css-1jqq78o-placeholder {
  color: rgba(83, 81, 81, 0.8) !important;
}

.daterange input {
  padding-left: 19px;
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for Firefox */
.scrollbar-hidden {
  scrollbar-width: none;
}

.sponseritm .react-multi-carousel-track {
  margin-bottom: 65px;
}

.sponseritm .react-multi-carousel-dot button {
  background: #29246d3b;
}

.voulnteerlist .css-13cymwt-control {
  background: #fff !important;
  border: none !important;
}

.voulnteerlist .css-1dimb5e-singleValue {
  color: #181822cc !important;
}

.voulnteerlist .css-tj5bde-Svg {
  fill: #181822;
}

/* `start`, not `left`: a physical value packs the select's content to the
   left in RTL too, and the focused state below already uses `start`. */
.voulnteerlist .css-13cymwt-control {
  justify-content: start;
}

.voulnteerlist .css-t3ipsp-control {
  border: none;
  background: none;
  justify-content: start !important;
}

.css-tr4s17-option {
  background-color: #29246d !important;
}

.css-d7l1ni-option {
  background-color: #29246d21 !important;
}

.voulnteerlist .css-1nmdiq5-menu {
  top: 60%;
}

.filtermodal .css-tj5bde-Svg {
  fill: #181822;
}

.opp-itm .t-b {
  top: 60% !important;
}

.css-8mmkcg {
  fill: rgb(41 36 109) !important;
}

.ProseMirror {
  min-height: 100px;
  padding: 12px;
}

.ProseMirror:focus {
  outline: none;
}

.ProseMirror p {
  margin: 0;
}

/* Style the placeholder text */
.ProseMirror .is-empty::before {
  content: attr(data-placeholder);
  float: left;
  color: #29246d;
  /* Match text-primary-5 */
  pointer-events: none;
  height: 0;
}

/* Ensure the toolbar and editor area are seamlessly connected */
.ProseMirror {
  border-top: none !important;
  /* Remove any top border that might create a gap */
}

.contactinput input,
.contactinput textarea {
  border: 1px solid rgba(23, 10, 81, 0.1);
}

.contactinput input::placeholder,
.contactinput textarea::placeholder,
.txt-area {
  color: rgb(41 36 109);
}

.txt-area {
  font-size: 14px;
}

.organizehome .sponsors {
  /* padding-top: 70px; */
}

.uploaddocfiles .uplods {
  width: 50%;
}

.uploaddocfiles .borderitm {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.uploaddocfiles button {
  height: 35px;
  font-size: 16px;
  width: 120px;
}

.uploaddocfiles .flex.justify-center.pt-4 {
  padding-top: 0;
}

.uploaddocfiles .w-20 img {
  width: 30px;
  height: 30px;
}

.uploaddocfiles .w-20 {
  height: 20px;
}

.uploaddocfiles .grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  overflow: hidden;
}

.uploaddocfiles .-top-2 {
  width: 40px;
}

.descritpionitm .editorbtn {
  width: 100%;
  padding: 10px;
  background-color: #2f212112;
  border-radius: 8px;
  display: flex;
  gap: 15px;
}

.descritpionitm .top-10 {
  top: 5rem;
}

.editorbtn button svg {
  color: #2f2121;
}

.editorbtn {
  position: relative;
  top: 12px;
}

.postseacrh .searchitms {
  width: 60%;
}

.selectfiled .css-1pf9g9a-singleValue {
  padding-top: 12px;
  font-size: 14px;
}

.current-status .css-bo6otu-control .css-1pf9g9a-singleValue {
  padding-top: 12px;
  font-size: 14px;
}

.filtermodal .css-b62m3t-container {
  background: transparent;
}

.barchat-boxshadow {
  box-shadow: 0px 4px 4px 0px #00000040;
}

.learnserve-boxshaow {
  box-shadow: 0px 4px 4px 0px #00000040;
}

.contributionboxshadow {
  box-shadow: 0px 4px 4px 0px #00000040;
}

.eventshadhow {
  box-shadow: 0px 2px 4px 0px #00000040;
}

.organizehome .profilevolunteer {
  padding-top: 0px !important;
}

.filtermodal .css-bo6otu-control {
  background: transparent;
  background-color: transparent;
  border: 1px solid #cbcbcb;
}

.filtermodal .custom-border {
  border: 1px solid #cbcbcb;
}

.opp-itm-shadow .boxshadows {
  box-shadow: 0px 4px 4px 0px #00000040;
}

.borderitm {
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='10' ry='10' stroke='%23170A51FF' stroke-width='3' stroke-dasharray='8' stroke-dashoffset='100' stroke-linecap='round'/%3e%3c/svg%3e");
  border-radius: 10px;
}

.filtermodal input,
.filtermodal textarea,
.filtermodal ::placeholder {
  color: rgba(83, 81, 81, 0.8) !important;
}

/* .filtermodal textarea::placeholder {
  color: #000000 !important;
} */

.filtermodal .custom-border-input input {
  border: 1px solid #cbcbcb;
}

.community-modal .css-b62m3t-container .css-bo6otu-control,
.community-modal .rmdp-container input {
  border: 1px solid #cbcbcb;
}

.profile-modal .rmdp-container input {
  border: 1px solid #cbcbcb;
}

.community_box_shadow {
  box-shadow: 0px 4px 4px 0px #00000040;
  border: 1px solid #ebebeb;
}

.createpost .f6 span {
  font-weight: 600 !important;
}

/* Legacy scrollbars cleared for new Apple-style overrides */

.bg-contacts input {
  height: 40px !important;
}

.bg-contacts textarea {
  height: 285px;
}

@media screen and (max-width: 991px) {
  .selectfiled .css-1jqq78o-placeholder {
    font-size: 14px;
  }

  .organizehome .sponsors {
    /* padding-top: 40px; */
  }
}

@media screen and (max-width: 767px) {
  .setpadding {
    padding-bottom: 10px !important;
  }
  .qrscreenswidth {
    max-width: 209px;
    max-height: 209px;
  }

  .postseacrh .searchitms {
    width: 100% !important;
  }

  .uploaddocfiles .uplods {
    width: 100% !important;
  }

  .descritpionitm .editorbtn {
    gap: 0px !important;
  }

  .editorbtn button svg {
    font-size: 12px;
  }

  .organizehome .sponsors {
    /* padding-top: 40px; */
  }

  .filtermodal label {
    font-size: 12px !important;
  }

  .bg-contacts {
    background: transparent !important;
  }

  .bgcl1 {
    background-color: #f3f3f3;
  }

  .bgcl2 {
    background-color: #29246d;
  }

  .moreprofile .react-multi-carousel-track {
    margin-bottom: 50px;
  }

  .moreprofile .react-multi-carousel-dot-list {
    bottom: 20px;
  }

  .selectfiled .css-1jqq78o-placeholder {
    font-size: 14px;
  }

  .dotlist .react-multi-carousel-dot-list,
  .dotlist-white .react-multi-carousel-dot-list {
    display: flex;
  }

  .custom-scrollable-dots .react-multi-carousel-dot-list {
    display: flex !important;
    align-items: center;
    padding: 10px 20px;
    /* Add consistent padding */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;

    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
  }

  .custom-scrollable-dots .react-multi-carousel-dot-list::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .dotlist .react-multi-carousel-dot--active button {
    background: #fff;
    border-color: #fff;
    opacity: 1 !important;
  }

  .dotlist .react-multi-carousel-dot button {
    background: #fff;
    border-color: #fff;
    opacity: 0.3;
  }

  .dotlist-white .react-multi-carousel-dot--active button {
    background: #29246d;
    border-color: #29246d;
    opacity: 1 !important;
  }

  .dotlist-white .react-multi-carousel-dot button {
    background: #29246d;
    border-color: #29246d;
    opacity: 0.3;
  }

  .sponsersitm .react-multi-carousel-track {
    margin-bottom: 40px !important;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  .orgsearch .searchitms {
    width: 250px !important;
  }
}

/* Legacy scrollbars style-1 cleared for new Apple-style overrides */

.filtermodal .css-t3ipsp-control {
  background-color: #fff !important;
}

.rotate-180 {
  transform: rotate(180deg);
}

.rotate-0 {
  transform: rotate(180deg);
}

.transition-transform {
  transition: transform 0.2s ease-in-out;
}

.sponsors .react-multi-carousel-list {
  justify-content: center;
}

.carousel-arrow.active-touch {
  background-color: #29246d !important;
  /* Use your hover color here */
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: none;
}

.css-5thazd-control {
  border: none !important;
  justify-content: normal !important;
  box-shadow: none !important;
  cursor: pointer;
}

.css-1w7x9ey-control:hover {
  border-color: #fff !important;
}

.css-1w7x9ey-control {
  border: none !important;
  justify-content: normal !important;
  box-shadow: none !important;
  cursor: pointer;
}

.rotate-rtl {
  transform: rotate(177deg);
}

.modal_intrest_tag input {
  border: 0 !important;
}

.eventlist th:nth-child(1) {
  width: 37% !important;
}

.eventlist th:nth-child(2) {
  width: 39% !important;
}

.eventlist th:nth-child(3) {
  width: 37% !important;
}

/* .table-container .border-collapse th:nth-child(1) {
  width: 26%;
}

.table-container .border-collapse th:nth-child(2) {
  width: 17%;
}

.table-container .border-collapse th:nth-child(3) {
  width: 25%;
}

.table-container .border-collapse th:nth-child(4) {
  width: 20%;
} */
.voulnteerlist .css-whfp15-menu {
  min-width: 180px !important;
}

/* swiper css */
.swiper-pagination {
  position: relative !important;
  margin-top: 20px !important;
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next,
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev,
.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {
  transform: none !important;
  background: #29246d;
}

.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {
  transform: none !important;
  background: #29246d;
}

.sponsors .react-multi-carousel-dot button {
  width: 16px !important;
  height: 16px !important;
  border-color: transparent;
}

.swiper-pagination-bullet {
  width: 16px !important;
  height: 16px !important;
}

.swiper-pagination-bullet-active {
  background: #1a1a66 !important;
}

/* swiper css */

.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  background-color: white;
  min-height: 80px;
}

.z9 {
  z-index: 99;
}

@supports (-webkit-touch-callout: none) {
  .header-fixed {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
}

/* Mobile menu container */
.mobile-menu {
  top: 60px;
  /* Adjust based on your header height */
  left: 0;
  right: 0;
  bottom: 0;
  max-height: calc(100vh - 60px);
  /* Ensure it fits within viewport */
  overflow-y: auto;
  /* Enable vertical scrolling */
  background: white;
  z-index: 40;
  /* Below header but above content */
  width: 100%;
  box-sizing: border-box;
}

/* Ensure dropdowns stay within the menu's flow */
.dropdown-menu-mobile {
  position: static;
  /* Prevent dropdowns from breaking out */
  width: 100%;
  background: #f5f5f5;
  /* Match your dropdown background */
}

/* Lock body scroll when menu is open */
.body-no-scroll {
  height: 100vh;
  /* Prevent body from expanding */
}

input::-webkit-date-and-time-value {
  text-align: start !important;
}

.modal_intrest_tag .border.rounded-2xl {
  background-color: transparent !important;
  border: 1px solid #cbcbcb !important;
}

.sponsors .swiper-pagination {
  display: none;
}

.react-multi-carousel-track {
  transform: translateX(0);
  /* Or whatever behavior you want */
}

.organize-modal {
  /* position: fixed; */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
}

.organize-modal .modal-content {
  background-color: #1a1a66;
  color: white;
  padding: 20px;
  width: 300px;
  text-align: center;
  position: relative;
  width: 100%;
  height: 100dvh;
}

.modal-content .uplods {
  background: transparent;
  border: none;
}

.qr-scan-area {
  position: relative;

  overflow: hidden;
  /* Ensure the line doesn't overflow outside the area */
}

.qr-scan-area img {
  width: 100%;
  height: 100%;
}

.scan-line {
  top: 0;
  left: 20px;
  width: 86% !important;
  height: 16px !important;
  animation: scan 4s infinite linear;
  transition: ease-in-out 0.5s;
}

@keyframes scan {
  0% {
    top: 0;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 0;
  }
}

.qr-scan-area {
  position: relative;

  overflow: hidden;
}

.css-894a34-indicatorSeparator {
  display: none;
}

.css-1u9des2-indicatorSeparator {
  display: none;
}

.z50 {
  z-index: 99;
}

.opp-modal .bordclr input,
.bordclr input {
  border: 1px solid #cbcbcb;
}

.opp-modal .bordclr .custom-border-age .modal-border {
  border: 1px solid #cbcbcb;
}

.event-modal .bordclr .custom-border-age .modal-border {
  border: 1px solid #cbcbcb;
}

.tags .flex.flex-wrap {
  border: 1px solid #cbcbcb;
}

.z-10 .css-1w7x9ey-control {
  background: transparent;
}

.z-10 .css-5thazd-control {
  background-color: transparent !important;
}

.z50 {
  z-index: 99;
}

.z2 {
  z-index: 2;
}

.z9 {
  z-index: 1;
}

.fixed.inset-0.z9 {
  z-index: 999;
}

form .rmdp-day.rmdp-today span {
  background-color: #29246d;
}

.css-1pf9g9a-singleValue {
  /* padding-top: 12px; */
  font-size: 14px;
}

form .rmdp-arrow {
  border: solid #29246d;
  border-width: 0 2px 2px 0;
}

form .rmdp-week-day {
  color: #29246d;
}

form .rmdp-arrow-container:hover {
  background-color: #29246d;
  align-items: center;
}

.boxshadowsitm {
  box-shadow: 0px 4px 4px 0px #00000040;
}

.css-guwkun-singleValue {
  font-size: 14px;
  padding-top: 8px;
}

.dropborder .css-bo6otu-control {
  border: 1px solid rgb(41 36 109 / 0.1);
}

.no-border {
  border: none !important;
}

.camera-container {
  position: relative;
  width: 302px;
  height: 301px;
  /* Adjust as needed */
  margin: 0 auto;
}

.camera-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* or 'contain' if you want full video visibility */
  border-radius: 0.5rem;
  /* optional */
}

/* .selectfiled .css-1xc3v61-indicatorContainer {
  padding-bottom: 0px;
} */

.custom-volunteer-colour
  .react-multi-carousel-dot-list
  .react-multi-carousel-dot
  button {
  background-color: rgb(82 113 255 / var(--tw-border-opacity, 1)) !important;
  border-color: rgb(82 113 255 / var(--tw-border-opacity, 1)) !important;
}

.custom-learn-colour
  .react-multi-carousel-dot-list
  .react-multi-carousel-dot
  button {
  background-color: rgb(112 180 194 / var(--tw-border-opacity, 1)) !important;
  border-color: rgb(112 180 194 / var(--tw-border-opacity, 1)) !important;
}

.custom-event-colour
  .react-multi-carousel-dot-list
  .react-multi-carousel-dot
  button {
  background-color: rgb(252 149 85 / var(--tw-border-opacity, 1)) !important;
  border-color: rgb(252 149 85 / var(--tw-border-opacity, 1)) !important;
}

.custom-select-input
  .css-b62m3t-container
  .css-bo6otu-control
  .css-1g5rk0c
  .css-1pf9g9a-singleValue {
  padding-top: 12px;
}

/* calander color */

.rmdp-arrow {
  border: solid #29246d !important;
  border-width: 0 2px 2px 0 !important;
}

.rmdp-week-day {
  color: #29246d !important;
}

.rmdp-arrow-container:hover {
  background-color: #29246d !important;
  color: #fff !important;
  align-items: center !important;
}

.rmdp-day.rmdp-today span {
  background-color: #29246d !important;
}

.rmdp-arrow-container:hover .rmdp-arrow {
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
}

.rmdp-arrow-container {
  align-items: center !important;
}

.rmdp-arrow {
  margin-top: 0px !important;
}

/* :root {
  color-scheme: light;
  background-color: #ffffff;
  color: #000000;
} */
.eventlistitem table th:first-child {
  padding-right: 15px !important;
  width: 20px;
  height: 20px;
}

.eventlistitem table td:first-child {
  padding-right: 15px !important;
  width: 20px;
  height: 20px;
}
.svg-crisp {
  image-rendering: -webkit-optimize-contrast; /* Force sharp edges in Safari */
  image-rendering: crisp-edges; /* Fallback */
  shape-rendering: geometricPrecision; /* Precise vector rendering */
  -webkit-backface-visibility: hidden; /* Prevent transform blur */
  transform: translateZ(0); /* Hardware acceleration */
  will-change: transform; /* Optimize rendering */
  -webkit-transform: translateZ(0); /* iOS-specific */
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .svg-crisp {
    width: 150% !important; /* Balanced scaling for Retina */
    height: 150% !important;
    transform: scale(0.6667) !important; /* 1/1.5 */
    transform-origin: center;
    -webkit-transform: scale(0.6667) translateZ(0); /* iOS-specific */
  }
}

.horizontal_scroll .infinite-scroll-component {
  padding-top: 20px;
  overflow: visible !important;
}

.cross-class-visible {
  overflow: visible !important;
}
/* Admin-authored CMS bodies (`/pages/{slug}` content). Tailwind's preflight
   strips list markers and heading sizes, so they are restored here — the HTML
   comes from the dashboard editor and carries no classes of its own. */
.cms-content {
  overflow-wrap: break-word;
  line-height: 1.7;
}
/* Plain-text bodies (no block markup) keep the line breaks the admin typed. */
.cms-content.cms-plain {
  white-space: pre-line;
}
.cms-content h1,
.cms-content h2 {
  font-size: 25px;
  font-weight: 700;
  color: #29246d;
  margin: 1.5rem 0 1rem;
}
.cms-content h3,
.cms-content h4 {
  font-size: 20px;
  font-weight: 600;
  color: #29246d;
  margin: 1.25rem 0 0.75rem;
}
.cms-content p {
  margin-bottom: 1rem;
}
.cms-content ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin: 1rem 0;
}
.cms-content ol {
  list-style-type: decimal;
  padding-left: 2rem;
  margin: 1rem 0;
}
[dir="rtl"] .cms-content ul,
[dir="rtl"] .cms-content ol {
  padding-right: 2rem;
  padding-left: 0;
}
.cms-content li {
  margin-bottom: 0.5rem;
}
.cms-content strong {
  font-weight: 700;
}
.cms-content a {
  color: #29246d;
  text-decoration: underline;
}
.cms-content img {
  max-width: 100%;
  height: auto;
}
.cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.cms-content th,
.cms-content td {
  border: 1px solid #dddddd;
  padding: 0.5rem 0.75rem;
  text-align: start;
}

/*
 * BE-61 — printing the attendance QR sheets.
 *
 * The organizer prints these once and puts them on the wall, so the printed
 * page must carry the codes and nothing else: no header, no sidebar, no dialog
 * chrome. Rather than build a separate print route, the poster area marks
 * itself `.qr-print-area` and everything else is hidden for the print medium
 * only. `position: static` on the ancestors is what stops the modal's own
 * `fixed` positioning from clipping the sheet to one screen's worth.
 */
/*
 * Attendance QR printing. The modal renders a second, print-only copy of the
 * sheets straight under <body> (`.qr-print-root`, a portal), and printing hides
 * every other top-level node with `display: none`.
 *
 * It used to hide the page with `visibility: hidden` and print the sheets in
 * place. Hidden content still takes its space, so the print came out as
 * several near-blank pages, and the sheets — inside the modal's fixed,
 * height-capped, overflow-hidden panel — were cut off half-way down the QR.
 */
.qr-print-root {
  display: none;
}

@media print {
  /* The open modal sets `overflow: hidden` on <body>, which some browsers
     honour when printing and cut the job to the first page. */
  html,
  body {
    overflow: visible !important;
    height: auto !important;
  }

  body > *:not(.qr-print-root) {
    display: none !important;
  }

  .qr-print-root {
    display: block;
  }

  /* One code per page, centred: the arrival and departure codes go on
     different walls, so they must not share a sheet of paper. */
  .qr-print-root .qr-print-page {
    min-height: 100vh;
    justify-content: center;
    border: none;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
  }

  .qr-print-root .qr-print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .qr-print-root .qr-print-page h3 {
    font-size: 32px;
  }

  .qr-print-root .qr-print-page svg {
    width: 12cm !important;
    height: 12cm !important;
  }

  .qr-print-hide {
    display: none !important;
  }
}


/* Shared presentation for filter dialogs, explicitly enabled by each caller. */
.compact-filter-dialog {
  width: calc(100% - 32px) !important;
  max-width: 460px !important;
  margin-inline: auto !important;
  border-radius: 20px !important;
  max-height: calc(100dvh - 48px) !important;
}

.compact-filter-dialog > div:first-child {
  padding: 12px 20px;
  border-bottom-width: 1px;
}

.compact-filter-dialog > div:first-child h2 {
  font-size: 20px;
  line-height: 1.5;
}

.compact-filter-dialog > div:last-child {
  min-height: 0;
  padding: 16px 20px;
  font-size: 14px;
}

.compact-filter-dialog form .relative.w-full {
  margin-bottom: 12px;
}

.compact-filter-dialog input:not([type="checkbox"]):not([type="radio"]):not([role="combobox"]):not(.no-border) {
  height: 44px !important;
  min-height: 0 !important;
  font-size: 14px !important;
  border-radius: 12px;
}

.compact-filter-dialog [class*="-control"] {
  min-height: 44px !important;
  height: auto !important;
  border-radius: 12px !important;
  font-size: 14px !important;
}

.compact-filter-dialog [class*="-placeholder"],
.compact-filter-dialog [class*="-singleValue"] {
  font-size: 14px !important;
}

.compact-filter-dialog form > .filtermodal,
.compact-filter-dialog .filtermodal:has(> form) {
  padding-bottom: 0;
}

.compact-filter-dialog > div:last-child > div:last-child:not(:first-child) > .flex {
  flex-direction: row;
  gap: 12px;
  margin-top: 8px;
}

.compact-filter-dialog > div:last-child > div:last-child:not(:first-child) > .flex > button {
  width: auto !important;
  min-width: 0 !important;
  flex: 1;
  height: 40px !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
}

.compact-filter-dialog .custom-border-age > .flex {
  flex-direction: column;
  gap: 12px;
}

.compact-filter-dialog label.top-3 {
  font-size: 14px;
}

.compact-filter-dialog div:has(> form) {
  padding-bottom: 0;
}

.compact-filter-dialog .custom-border-age .modal-border {
  height: 44px;
  border-radius: 12px;
}

.compact-filter-dialog .custom-border-age input {
  font-size: 14px;
}

/* Keep carousel navigation in reserved gutters inside its own container. */
.carousel-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.carousel-frame .carousel-navigation {
  top: 50%;
  width: 40px;
  height: 40px;
  padding: 10px;
  z-index: 2;
}

.carousel-frame .carousel-navigation-left {
  left: 0;
  right: auto;
}

.carousel-frame .carousel-navigation-right {
  right: 0;
  left: auto;
}

@media (min-width: 768px) {
  .carousel-frame-with-arrows {
    padding-inline: 48px;
  }
}

@media (max-width: 767px) {
  .carousel-frame .carousel-navigation {
    display: none;
  }
}

/* One compact scale for volunteer, development and event publishing forms. */
.compact-publish-form {
  font-size: 14px;
}

.compact-publish-form > h2 > p {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.3;
  margin-bottom: 24px;
}

.compact-publish-form form .relative.w-full {
  min-width: 0;
  margin-bottom: 12px;
}

.compact-publish-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([role="combobox"]):not(.no-border),
.compact-publish-form [class~="h-[48px]"] {
  height: 44px;
  font-size: 14px;
  border-radius: 12px;
}

.compact-publish-form [class*="-control"] {
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  font-size: 14px;
}

.compact-publish-form [class*="-singleValue"],
.compact-publish-form [class*="-placeholder"],
.compact-publish-form textarea,
.compact-publish-form .tiptap,
.compact-publish-form label.top-3 {
  font-size: 14px;
}

.compact-publish-form form > .grid {
  column-gap: 16px;
}

.compact-publish-form form h2,
.compact-publish-form form h3 {
  font-size: 18px;
  line-height: 1.5;
}

.compact-publish-form .uplods .borderitm {
  margin: 12px;
  padding: 16px;
}

.compact-publish-form .uplods label,
.compact-publish-form .uplods p span {
  font-size: 14px;
}

.compact-publish-form .publish-form-actions button,
.compact-publish-form .uplods button {
  min-height: 40px;
  height: 40px;
  font-size: 14px;
  padding: 8px 24px;
  width: auto;
  max-width: 100%;
}

.compact-publish-form .publish-form-actions button {
  min-width: 160px;
}

@media (max-width: 767px) {
  .compact-publish-form > h2 > p {
    margin-bottom: 20px;
  }
}

/* Labels stay on one line; action rows can wrap whole buttons instead. */
button,
.single-line-button,
.single-line-button > span {
  white-space: nowrap;
}

.single-line-button {
  min-width: max-content;
}

/* Labelled buttons have comfortable default side spacing; explicit utilities still override it. */
@layer components {
  .single-line-button {
    padding-inline: 1rem;
  }
}

/* Consistent spacing for card listings, including mobile event lists. */
.listing-card-grid {
  gap: 24px;
  align-items: stretch;
  padding-bottom: 4px;
}

@media (max-width: 767px) {
  .listing-card-grid {
    gap: 20px;
  }
}

/* All labelled actions use one height at every breakpoint. Icon controls
   (close, calendar, carousel navigation) keep their dedicated dimensions. */
.single-line-button.single-line-button {
  box-sizing: border-box;
  border-radius: 9999px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding-block: 8px !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

/* Compact screen preview; the separate printable QR sheets retain full size. */
.attendance-qr-dialog.attendance-qr-dialog {
  width: calc(100% - 24px);
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  margin-inline: auto;
  border-radius: 20px;
}

.attendance-qr-dialog > div:first-child {
  padding: 12px 20px;
}

.attendance-qr-dialog > div:first-child h2 {
  font-size: 20px;
  line-height: 1.4;
}

.attendance-qr-dialog > div:last-of-type {
  min-height: 0;
  padding: 16px 20px;
}

.attendance-qr-dialog .qr-print-page {
  width: 100%;
  max-width: 300px;
  min-width: 0;
  gap: 10px;
  padding: 16px;
}

.attendance-qr-dialog .qr-print-page h3 {
  font-size: 16px;
}

.attendance-qr-dialog .qr-print-page p {
  overflow-wrap: anywhere;
}

.attendance-qr-dialog .qr-print-page svg {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
}

.attendance-qr-dialog .qr-print-page > div {
  max-width: 100%;
}

.attendance-undo-dialog.attendance-undo-dialog {
  width: calc(100% - 24px);
  max-width: 480px;
  margin-inline: auto;
  border-radius: 20px;
}

.attendance-undo-dialog > div:first-child {
  padding: 12px 20px;
}

.attendance-undo-dialog > div:first-child h2 {
  font-size: 20px;
  line-height: 1.5;
}

.attendance-undo-dialog > div:last-of-type {
  padding: 20px;
}

/* Keep all homepage content cards on the same scale while allowing text to grow. */
.home-content-carousel .react-multi-carousel-item {
  display: flex;
  flex-direction: column;
}

/* Home rhythm: section padding, heading gap, then cards and optional dots.
   Dots stay in normal flow so their space exists only when they are visible. */
.home-section-spacing {
  padding-block: 48px;
}

.home-section-heading-gap {
  margin-bottom: 24px;
}

.home-contribution-spacing > div {
  margin-block: 0;
  padding-block: 0;
}

.home-contribution-spacing > div > div {
  margin-block: 0;
  padding-block: 40px;
}

.home-aligned-carousel .react-multi-carousel-list {
  display: flex;
  flex-wrap: wrap;
  padding-block: 0;
  margin-block: 0;
}

.home-content-carousel {
  margin-top: 24px;
}

.home-aligned-carousel .react-multi-carousel-track {
  flex: 0 0 auto;
  width: max-content;
  min-width: 100%;
  padding-bottom: 4px;
}

.opportunity-card > .single-line-button {
  /* The relatively raised action leaves 25px of unused space in normal flow. */
  margin-bottom: -25px;
}

.home-content-carousel .home-carousel-slide {
  margin-bottom: 0;
  padding-bottom: 0;
}

.home-aligned-carousel .react-multi-carousel-dot-list {
  position: static;
  flex: 0 0 100%;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  min-height: 12px;
}

@media (max-width: 767px) {
  .home-section-spacing {
    padding-block: 32px;
  }

  .home-section-heading-gap {
    margin-bottom: 20px;
  }

  .home-content-carousel {
    margin-top: 20px;
  }

  .home-contribution-spacing > div > div {
    padding-block: 32px;
  }
}

/* Keep the variable Cairo font upright in the mobile attendance toolbar. */
@media (max-width: 767px) {
  .volunteer-list-toolbar,
  .volunteer-list-toolbar * {
    font-style: normal;
    font-variation-settings: "slnt" 0;
  }
}

/* Compact profile-photo crop dialog; other image croppers retain their layout. */
.profile-picture-crop-dialog.profile-picture-crop-dialog {
  width: calc(100% - 24px);
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  margin-inline: auto;
  border-radius: 20px;
}

.profile-picture-crop-dialog > div:first-child {
  padding: 12px 20px;
}

.profile-picture-crop-dialog > div:first-child h2 {
  font-size: 20px;
  line-height: 1.4;
}

.profile-picture-crop-dialog > div:last-of-type {
  min-height: 0;
  padding: 16px;
}

.profile-picture-crop-dialog > div:first-child {
  flex-shrink: 0;
}

/* Reserve space for the title, zoom, help and actions on short screens. */
.profile-picture-crop-preview {
  height: clamp(80px, calc(100dvh - 310px), 280px);
}

.profile-picture-crop-actions {
  position: sticky;
  bottom: -16px;
  z-index: 1;
  padding-block: 8px;
  background: white;
}

@media (max-height: 500px) {
  .profile-picture-crop-dialog > div:first-child {
    padding-block: 8px;
  }

  .profile-picture-crop-dialog > div:last-of-type {
    padding-block: 8px;
  }

  .profile-picture-crop-actions {
    bottom: -8px;
  }
}

/* Homepage cards align with section headings; navigation sits in the outer margins. */
.home-aligned-carousel.carousel-frame {
  padding-inline: 4px;
}

.home-aligned-carousel .carousel-navigation-left {
  left: -44px;
}

.home-aligned-carousel .carousel-navigation-right {
  right: -44px;
}

@media (min-width: 1536px) {
  .home-aligned-carousel.carousel-frame {
    padding-inline: 8px;
  }
}

@media (max-width: 767px) {
  .home-aligned-carousel.carousel-frame {
    padding-inline: 0;
  }
}

/* Shared card scale and compact, single-line date/time strips on every surface. */
.content-card {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}
/* Grid columns and carousel slides own card width at every breakpoint. */
.listing-card-grid .content-card,
.home-content-carousel .content-card {
  min-width: 0;
  max-width: none;
  margin-inline: 0;
}

/* Keep opportunity cards equally compact in home, listings and profiles. */
.content-card .boxshadowsitm {
  min-height: 160px;
}
.content-card .event-card-body {
  min-height: 170px;
}

.card-schedule-strip > span {
  min-width: 0;
  gap: 2px;
  padding-inline: 3px;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.3;
}
.card-schedule-strip > span img {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* Dial prefixes stay in their normal +965 order inside RTL forms. */
.country-code-picker [class*="secondaryLabel"] {
  direction: ltr;
  unicode-bidi: isolate;
}

/* Shared by every country-code field, including lazy-loaded forms. */
.country-code-picker {
  min-width: 112px;
  flex-shrink: 0;
}

.country-code-picker [class*="flagsSelect"] {
  padding: 0;
}

.country-code-picker [class*="selectBtn"] {
  height: 100%;
  min-height: 46px;
  padding: 0 10px !important;
  border: 0 !important;
  justify-content: space-between !important;
  gap: 6px;
  font-size: 14px !important;
}

.country-code-picker [class*="selectBtn"]:focus-visible {
  outline: 2px solid #29246d;
  outline-offset: 2px;
  border-radius: 16px;
}

.country-code-picker [class*="selectBtn"]::after {
  flex-shrink: 0;
  margin: 0;
}

.country-code-picker [class*="selectValue"] {
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  gap: 6px;
}

.country-code-picker [class*="label"],
.country-code-picker [class*="secondaryLabel"] {
  padding: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  flex-shrink: 0;
  color: #29246d;
}

.country-code-picker [class*="selectFlag"] {
  padding: 0;
  flex-shrink: 0;
}

.country-code-picker [role="listbox"] {
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: 192px;
  min-width: 100%;
  max-width: calc(100vw - 32px);
  max-height: 260px;
  margin-top: 8px;
  padding: 0 0 6px;
  border: 1px solid rgb(41 36 109 / 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(41 36 109 / 0.14);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 60;
}

.country-code-picker [role="option"] {
  margin: 2px 6px;
  padding: 10px !important;
  border-radius: 8px;
  font-size: 14px;
}

.country-code-picker [class*="selectOptionValue"] {
  gap: 8px;
}

.country-code-picker [role="option"]:hover,
.country-code-picker [role="option"]:focus,
.country-code-picker [role="option"][aria-selected="true"] {
  background: rgb(41 36 109 / 0.07);
}

.country-code-picker [class*="filterBox"] {
  padding: 10px 0;
  z-index: 1;
}

.country-code-picker [class*="filterBox"] input {
  border: 1px solid rgb(41 36 109 / 0.16);
  border-radius: 8px;
  color: #29246d;
  font-size: 14px;
}

.country-code-picker [class*="filterBox"] input:focus-visible {
  outline: 2px solid #29246d;
  outline-offset: -2px;
}

/* About page: keep editorial copy readable without changing other CMS pages. */
.about-page-intro {
  background: #f7f7fb;
  padding: 32px 16px;
}
.about-page-intro > div > div {
  width: 100%;
  max-width: 1080px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgb(41 36 109 / 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 4px 20px rgb(41 36 109 / 0.03);
}
.about-page-intro h1 {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eeedf4;
}
.about-page-intro .cms-content {
  color: #514f64;
  font-size: 16px;
  line-height: 1.95;
  text-align: start;
}
.about-page-intro .cms-content > :first-child {
  margin-top: 0;
}
.about-page-intro .cms-content h2,
.about-page-intro .cms-content h3,
.about-page-intro .cms-content h4 {
  margin-top: 28px;
  margin-bottom: 12px;
  padding-inline-start: 12px;
  border-inline-start: 3px solid #29246d;
  color: #29246d;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}
.about-page-intro .cms-content p {
  margin-bottom: 12px;
}
.about-page-intro .cms-content li {
  margin-block: 8px;
  padding-inline-start: 4px;
}
.about-page-intro .cms-content li::marker {
  color: #29246d;
  font-weight: 700;
}
.about-page-intro .cms-content > :last-child {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .about-page-intro { padding: 20px 12px; }
  .about-page-intro .cms-content { font-size: 14px; line-height: 1.9; }
  .about-page-intro .cms-content h2,
  .about-page-intro .cms-content h3,
  .about-page-intro .cms-content h4 { font-size: 18px; }
}

.certificate-preview-dialog.certificate-preview-dialog {
  width: calc(100% - 8px);
  max-width: 1100px;
  max-height: calc(100dvh - 24px);
  border-radius: 24px;
}
.certificate-preview-dialog > div:first-child {
  flex-shrink: 0;
  padding: 14px 20px;
  border-bottom: 1px solid #eeedf4;
}
.certificate-preview-dialog > div:first-child h2 {
  font-size: 20px;
}
.certificate-preview-dialog > div:last-child {
  min-height: 0;
  padding: 16px;
}

/* Help and policies share a quiet, readable surface in both directions. */
.info-page { background: #f8f8fc; color: #29246d; padding-bottom: 64px; }
.info-page-width { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.info-page-hero { background: #efedf8; border-bottom: 1px solid #e3dff0; padding-block: 48px 72px; }
.info-page-eyebrow { display: block; font-size: 13px; font-weight: 700; color: #665f87; margin-bottom: 16px; }
.info-page-title-row { display: flex; align-items: center; gap: 16px; }
.info-page-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 18px; background: #fff; border: 1px solid #e3dff0; }
.info-page h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.5; margin: 0; }
.info-page-hero p { margin-top: 14px; max-width: 680px; color: #625d78; font-size: 16px; line-height: 1.9; }
.info-page-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 28px; margin-top: -24px; position: relative; }
.info-page-sidebar { position: sticky; top: 112px; }
.info-page-sidebar nav { padding: 10px; background: white; border: 1px solid #e7e5ef; border-radius: 20px; }
.info-page-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #625d78; transition: background .15s; }
.info-page-sidebar nav a:hover { background: #f7f6fb; }
.info-page-sidebar nav a[aria-current="page"] { background: #eeecf7; color: #29246d; font-weight: 800; }
.info-page-sidebar nav svg { flex-shrink: 0; }
.info-page-help { padding: 24px 16px; }
.info-page-help h2 { font-size: 16px; font-weight: 700; }
.info-page-help p { font-size: 14px; line-height: 1.9; margin-block: 8px 14px; color: #716c83; }
.info-page-help a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.info-page-main { min-width: 0; }
.info-page-document { padding: clamp(24px, 3vw, 44px); background: white; border: 1px solid #e7e5ef; border-radius: 24px; box-shadow: 0 8px 32px #29246d04; }
.info-page-document :is(.cms-content, p, li) { color: #555164; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.info-page-document .cms-plain { white-space: pre-line; }
.info-page-document :is(h2, h3, h4) { color: #29246d; font-weight: 700; line-height: 1.7; margin-block: 28px 12px; }
.info-page-document h2 { font-size: 21px; }
.info-page-document h3 { font-size: 18px; }
.info-page-document section { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #eeedf3; }
.info-page-document section:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.info-page-document li::marker, .info-faq-answer li::marker { color: #29246d; }
.info-page-document a { color: #29246d; text-decoration: underline; text-underline-offset: 4px; }
.info-page-document :first-child { margin-top: 0; }
.info-faq-search { display: flex; align-items: center; gap: 12px; border: 1px solid #e1deee; border-radius: 18px; background: #fff; padding: 16px 20px; margin-bottom: 20px; color: #827b9e; }
.info-faq-search:focus-within { border-color: #29246d; box-shadow: 0 0 0 3px #29246d0b; }
.info-faq-search input { min-width: 0; flex: 1; width: 100%; background: transparent; outline: none; color: #29246d; font-size: 15px; }
.info-faq-list { display: flex; flex-direction: column; gap: 12px; }
.info-faq-item { border: 1px solid #e7e5ef; border-radius: 18px; background: white; overflow: hidden; }
.info-faq-item[open] { border-color: #c9c3e2; box-shadow: 0 6px 24px #29246d06; }
.info-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; line-height: 1.8; }
.info-faq-item summary::-webkit-details-marker { display: none; }
.info-faq-item summary:hover { background: #faf9fd; }
.info-faq-item summary:focus-visible { outline: 2px solid #29246d; outline-offset: -4px; border-radius: 18px; }
.info-faq-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #f0eef8; }
.info-faq-item[open] .info-faq-toggle { background: #29246d; color: #fff; transform: rotate(45deg); }
.info-faq-answer { margin-inline: 24px; padding-block: 18px 24px; border-top: 1px solid #eeedf3; font-size: 15px; line-height: 2; color: #625d78; overflow-wrap: anywhere; }
.info-faq-answer :is(ul,ol) { padding-inline-start: 24px; margin-block: 12px; }
.info-faq-answer ul { list-style: disc; }
.info-faq-answer ol { list-style: decimal; }
.info-page-empty { text-align: center; padding: 40px 20px; background: white; border: 1px solid #e7e5ef; border-radius: 18px; }
@media (max-width: 900px) {
  .info-page-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .info-page-sidebar { position: static; }
  .info-page-sidebar nav { display: flex; overflow-x: auto; gap: 4px; }
  .info-page-sidebar nav a { flex: 1 0 auto; justify-content: center; padding: 12px; }
  .info-page-help { display: none; }
}
@media (max-width: 600px) {
  .info-page { padding-bottom: 32px; }
  .info-page-width { width: calc(100% - 28px); }
  .info-page-hero { padding-block: 28px 48px; }
  .info-page-title-row { gap: 12px; }
  .info-page-icon { width: 44px; height: 44px; border-radius: 14px; }
  .info-page-hero p { font-size: 14px; }
  .info-page-sidebar nav a { font-size: 12px; gap: 6px; padding: 10px 6px; }
  .info-page-sidebar nav svg { width: 16px; height: 16px; }
  .info-page-document { border-radius: 18px; padding: 22px 18px; }
  .info-page-document :is(.cms-content, p, li) { font-size: 14px; }
  .info-faq-item summary { padding: 18px 16px; font-size: 15px; gap: 12px; }
  .info-faq-answer { margin-inline: 16px; font-size: 14px; }
}

/* Compact footer row on desktop, stacked links on phones and tablets. */
.footer-page-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  margin-inline: 16px;
  padding-bottom: 40px;
  font-size: 14px;
}
.footer-page-links > a { flex-shrink: 0; }
@media (max-width: 1024px) {
  .footer-main {
    flex-direction: column;
  }
  .footer-page-links {
    flex-direction: column;
    flex: none;
    width: 100%;
    margin-inline: 0;
    padding: 32px 16px;
    font-size: 13px;
    gap: 12px;
    justify-content: center;
  }
}
