/* =========================
   PREMIUM ACCORDION + MODAL
   ========================= */

/* Accordion wrapper */
.accordion{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:16px;
}

/* Each category card */
.acc-item{
  border:1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 14px 45px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  transition: transform .12s ease, filter .12s ease, border-color .2s ease;
}

.acc-item:hover{
  filter: brightness(1.03);
  border-color: rgba(255,255,255,.22);
}

.acc-item:active{
  transform: scale(.995);
}

/* Accordion header button */
.acc-head{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding: 16px 16px;
  background: linear-gradient(
    135deg,
    rgba(108,92,231,.28),
    rgba(0,210,211,.14)
  );
  color: var(--text);
  border: none;
  cursor:pointer;
  font-weight: 950;
  letter-spacing: .2px;
}

/* Title better readability */
.acc-head span:first-child{
  font-size: 15px;
  line-height: 1.2;
}

/* Chevron */
.acc-head .chev{
  opacity:.9;
  font-size: 20px;
  transform: rotate(90deg);
  transition: transform .18s ease, opacity .18s ease;
}

/* When open, rotate */
.acc-body:not(.hidden) ~ .acc-head .chev{
  transform: rotate(-90deg);
}

/* Accordion body */
.acc-body{
  padding: 14px 14px 16px;
  background: rgba(255,255,255,.03);
}

.acc-body.hidden{display:none}

/* Subcategory list */
.sub-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

/* Subcategory button */
.sub-btn{
  width:100%;
  border:1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  color: var(--text);
  border-radius: 16px;
  padding: 13px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease, border-color .2s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.sub-btn:hover{
  filter: brightness(1.06);
  border-color: rgba(255,255,255,.24);
}

.sub-btn:active{
  transform: scale(.99);
}

/* Sub text */
.sub-btn span:first-child{
  text-align:left;
  font-weight: 850;
  font-size: 14px;
  line-height: 1.25;
}

/* Mini arrow */
.mini-arrow{
  opacity:.85;
  font-size: 14px;
}

/* Small padding helper */
.pad{padding:8px 2px}

/* =========================
   PREMIUM FULLSCREEN MODAL
   ========================= */

.modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.75);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

.modal.hidden{display:none}

.modal-inner{
  width:100%;
  max-width: 720px;
  background: linear-gradient(
    180deg,
    rgba(18,22,50,.98),
    rgba(10,14,30,.99)
  );
  border:1px solid rgba(255,255,255,.14);
  border-radius: 24px 24px 0 0;
  padding: 16px 16px 20px;
  min-height: 72vh;
  max-height: 90vh;
  overflow:auto;
  position:relative;
  box-shadow: 0 -18px 70px rgba(0,0,0,.55);
  -webkit-overflow-scrolling: touch;
}

/* Modal header title */
.modal-title{
  font-weight: 950;
  font-size: 18px;
  margin: 8px 0 14px;
  padding-right: 50px; /* space for close btn */
  letter-spacing: .2px;
}

/* Modal body */
.modal-body{
  line-height: 1.7;
  color: rgba(255,255,255,.93);
  font-size: 14px;
}

/* Modal close button */
.modal-close{
  position:absolute;
  right: 12px;
  top: 12px;
  border:none;
  width:40px;
  height:40px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  cursor:pointer;
  font-size: 16px;
  transition: transform .12s ease, filter .12s ease;
}

.modal-close:hover{
  filter: brightness(1.07);
}

.modal-close:active{
  transform: scale(.98);
}

/* Make page behind modal look "disabled" */
.modal-open .accordion,
.modal-open .search-wrap{
  filter: blur(3px);
  opacity: .25;
  pointer-events:none;
}

/* Optional: nicer modal content styles (for CKEditor HTML) */
.modal-body h1, .modal-body h2, .modal-body h3{
  margin: 12px 0 8px;
}
.modal-body p{
  margin: 10px 0;
}
.modal-body ul, .modal-body ol{
  margin: 10px 0 10px 18px;
}
.modal-body table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 12px;
}
.modal-body table td, .modal-body table th{
  border: 1px solid rgba(255,255,255,.14);
  padding: 10px;
}

.lang-select{
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 12px 12px;
  font-weight: 900;
}
.lang-select option{
  color:#111;
  background:#fff;
}

