/* Site-specific overrides (Escul theme expects small SVG logos) */
.th-header.header-layout3 .header-logo img {
  display: block;
  max-height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.th-menu-wrapper .mobile-logo img {
  max-width: 185px;
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.preloader-inner img {
  max-height: 60px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.th-widget-about .about-logo img {
  max-height: 55px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 575px) {
  .th-header.header-layout3 .header-logo img {
    max-height: 40px;
    max-width: 160px;
  }
}

/* Paket seçim sidebar filtreleri */
.shop-cat-list .list-wrap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shop-cat-list .list-wrap > li {
  list-style: none;
  margin-bottom: 12px;
  padding-left: 0;
}

.shop-cat-list .list-wrap > li::before,
.shop-cat-list .list-wrap > li::marker {
  display: none;
  content: none;
}

.paket-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 24px;
}

.paket-filter-check .form-check-input {
  float: none;
  margin: 0;
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.paket-filter-check .form-check-label {
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.widget-sidebar .widget {
  background: var(--smoke-color2, #f5f7f8);
  border-radius: 16px;
  padding: 24px;
}

/* Paket detay sayfası */
.paket-detay-page .course-single .nav-tabs {
  border: 0;
  gap: 8px;
  margin-bottom: 24px;
}

.paket-detay-page .course-single .nav-tabs .nav-link {
  border: 1px solid var(--th-border-color, #e7e7e7);
  border-radius: 999px;
  padding: 10px 22px;
  color: var(--title-color);
  font-weight: 600;
}

.paket-detay-page .course-single .nav-tabs .nav-link.active {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
}

.paket-detay-page .accordion-item {
  border: 1px solid var(--th-border-color, #e7e7e7);
  border-radius: 14px !important;
  overflow: hidden;
  margin-bottom: 12px;
}

.paket-detay-page .accordion-button {
  font-weight: 700;
  padding: 16px 20px;
}

.paket-detay-page .accordion-body {
  padding: 8px 20px 20px;
}

.paket-detay-page .accordion-body > .list-wrap,
.paket-detay-page .accordion-body .list-wrap {
  list-style: none;
  padding: 0;
  margin: 0;
}

.paket-detay-page .course-item,
.paket-detay-page .kazanim-item,
.paket-detay-page .paket-secim-item {
  border: 1px solid var(--th-border-color, #ececec);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
  list-style: none;
}

.paket-detay-page .course-item-link {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
}

.paket-detay-page .course-item .form-check-input,
.paket-detay-page .paket-secim-item .form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin: 4px 0 0;
  flex-shrink: 0;
}

.paket-detay-page .course-item .form-check-label,
.paket-detay-page .paket-secim-item .form-check-label {
  margin: 0;
  font-weight: 600;
  flex: 1 1 180px;
  line-height: 1.5;
}

.paket-detay-page .course-item-link .course-item-meta {
  flex: 0 0 100%;
  margin: 0;
  padding-left: calc(1.1em + 14px);
}

.paket-detay-page .course-item-meta .duration,
.paket-detay-page .course-item-meta .item-meta {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--body-color, #666);
  background: var(--smoke-color2, #f5f7f8);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 500;
}

.paket-detay-page .paket-secim-item .course-item-meta {
  margin-left: auto;
  flex: 0 0 auto;
  padding-left: 0;
}

.paket-detay-page .paket-search-box {
  position: relative;
  margin-bottom: 20px;
}

.paket-detay-page .paket-search-box > i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-color);
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
}

.paket-detay-page .paket-search-box .form-control {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  padding: 12px 18px 12px 46px;
  border: 1px solid var(--th-border-color, #e7e7e7);
  background: var(--smoke-color2, #f5f7f8);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.paket-detay-page .paket-search-box .form-control:focus {
  border-color: var(--theme-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 168, 164, 0.12);
}

.paket-detay-page .kazanim-item.is-filter-hidden,
.paket-detay-page .alt-kazanim-item.is-filter-hidden {
  display: none !important;
}

.paket-detay-page .accordion-item.is-filter-hidden {
  display: none !important;
}

.paket-detay-page .paket-qty-row {
  display: grid;
  grid-template-columns: minmax(84px, 96px) minmax(0, 1fr);
  grid-template-areas:
    "input badge"
    "link link";
  gap: 10px 14px;
  align-items: stretch;
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e4e4e4;
}

.paket-detay-page .paket-qty-row input[type="number"] {
  grid-area: input;
  max-width: 100% !important;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--th-border-color, #ddd);
  border-radius: 10px;
  font-weight: 600;
}

.paket-detay-page .paket-qty-row .badge,
.paket-detay-page .paket-qty-row .bg-primary {
  grid-area: badge;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: rgba(0, 168, 164, 0.1) !important;
  color: var(--title-color) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
}

.paket-detay-page .paket-qty-row .badge b,
.paket-detay-page .paket-qty-row .badge strong {
  margin-left: auto;
  color: var(--theme-color);
  font-size: 1rem;
  font-weight: 700;
}

.paket-detay-page .paket-qty-row > span:has(a) {
  grid-area: link;
  margin: 0;
  padding: 0;
}

.paket-detay-page .paket-qty-row a {
  color: var(--theme-color);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.paket-detay-page .paket-qty-row a:hover {
  text-decoration: underline;
}

.paket-detay-page .sidebar-area .widget_course_info,
.paket-detay-page .sidebar-area .event-widget {
  background: var(--smoke-color2, #f5f7f8);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--th-border-color, #ececec);
}

.paket-detay-page .sidebar-area .thumb {
  aspect-ratio: 16 / 10;
  background: var(--smoke-color2, #f5f7f8);
  border-radius: 12px;
  overflow: hidden;
}

.paket-detay-page .sidebar-area .thumb-empty,
.paket-detay-page .sidebar-area .paket-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  width: 100%;
}


.paket-detay-page .sidebar-area .thumb img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.paket-detay-page .sidebar-area .price,
.paket-detay-page .sidebar-area h4.price {
  font-size: 1.35rem;
  margin: 16px 0;
}

.paket-detay-page .sidebar-area .event-information-wrap .list-wrap,
.paket-detay-page .sidebar-area .info-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.paket-detay-page .sidebar-area .event-information-wrap li,
.paket-detay-page .sidebar-area .info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.paket-detay-page .sidebar-area .event-information-wrap li:last-child,
.paket-detay-page .sidebar-area .info-list li:last-child {
  border-bottom: 0;
}

.paket-detay-page .sidebar-area .event-information-wrap li i,
.paket-detay-page .sidebar-area .info-list li > i {
  width: 18px;
  color: var(--theme-color);
}

.paket-detay-page .sidebar-area .paket-share-social i,
.paket-detay-page .sidebar-area .event-social i {
  width: auto;
  min-width: 1em;
  color: #fff !important;
  font-size: 16px;
  margin: 0;
}

.paket-detay-page .sidebar-area .event-information-wrap li span,
.paket-detay-page .sidebar-area .info-list li span {
  margin-left: auto;
  font-weight: 600;
}

.paket-detay-page .course-card .box-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
}

.paket-detay-page .course-price-wrap .th-btn {
  width: 100%;
}

.paket-detay-page .course-price-wrap {
  margin-top: 16px;
}

.paket-detay-page .info-list .title {
  font-size: 1rem;
  font-weight: 700;
  margin: 20px 0 4px;
  padding-top: 16px;
  border-top: 1px dashed var(--th-border-color, #e7e7e7);
}

.paket-detay-page .sidebar-area .info-list li:has(.event-social),
.paket-detay-page .sidebar-area .info-list li.paket-share-row {
  display: block;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px dashed var(--th-border-color, #e7e7e7);
}

.paket-detay-page .sidebar-area .info-list li:has(.event-social) > i,
.paket-detay-page .sidebar-area .info-list li.paket-share-row > i {
  margin-right: 8px;
}

.paket-detay-page .sidebar-area .event-social,
.paket-detay-page .sidebar-area .th-social.paket-share-social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  width: 100%;
}

.paket-detay-page .sidebar-area .event-social li,
.paket-detay-page .sidebar-area .th-social.paket-share-social a {
  display: inline-flex;
  padding: 0;
  border: 0;
  margin: 0;
}

.paket-detay-page .sidebar-area .event-social a,
.paket-detay-page .sidebar-area .th-social.paket-share-social a {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--theme-color) !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 16px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.paket-detay-page .sidebar-area .event-social a:hover,
.paket-detay-page .sidebar-area .th-social.paket-share-social a:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  background: var(--theme-color) !important;
  color: #fff !important;
}

@media (max-width: 575px) {
  .paket-detay-page .paket-qty-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "input"
      "badge"
      "link";
  }
}

/* Paket listesi kart thumb placeholder */
#course-sec .course-card .box-img.paket-card-thumb,
.paket-card-thumb {
  position: relative;
  overflow: hidden;
  background: var(--smoke-color2, #f5f7f8);
}

.paket-card-thumb.is-empty {
  min-height: 200px;
}

.paket-card-thumb .paket-card-thumb-placeholder,
.paket-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(0, 168, 164, 0.14) 0%, rgba(0, 168, 164, 0.04) 55%, #f5f7f8 100%);
  color: var(--theme-color);
  font-size: 2.75rem;
  opacity: 0.7;
}

.paket-card-thumb .paket-card-thumb-placeholder i,
.paket-thumb-placeholder i {
  filter: drop-shadow(0 2px 6px rgba(0, 168, 164, 0.15));
}

.paket-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paket-detay-page .sidebar-area .thumb-empty .paket-thumb-placeholder {
  min-height: 160px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(0, 168, 164, 0.14) 0%, rgba(0, 168, 164, 0.04) 55%, #f5f7f8 100%);
  opacity: 0.7;
  font-size: 2.25rem;
}

/* Online ödeme sayfası */
.odeme-page .odeme-empty {
  background: var(--smoke-color2, #f5f7f8);
  border: 1px dashed var(--th-border-color, #e7e7e7);
  border-radius: 16px;
}

.odeme-page .odeme-empty i {
  font-size: 2.5rem;
  color: var(--theme-color);
  opacity: 0.6;
}

.odeme-panel,
.odeme-summary {
  background: #fff;
  border: 1px solid var(--th-border-color, #ececec);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0, 17, 43, 0.05);
}

.odeme-summary {
  position: sticky;
  top: 100px;
}

.odeme-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 168, 164, 0.1);
  color: var(--theme-color);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.odeme-panel-title,
.odeme-summary-title {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.odeme-panel-desc {
  color: var(--body-color, #666);
  margin: 0 0 24px;
  font-size: 0.9375rem;
}

.odeme-card-preview {
  background: linear-gradient(135deg, #1f2937 0%, #0f766e 100%);
  border-radius: 18px;
  padding: 22px 24px;
  color: #fff;
  margin-bottom: 28px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.25);
}

.odeme-card-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.odeme-card-chip {
  width: 42px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f5d061, #d4a017);
}

.odeme-card-brands {
  display: flex;
  gap: 10px;
  font-size: 1.75rem;
  opacity: 0.85;
}

.odeme-card-preview-number {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  letter-spacing: 0.12em;
  font-weight: 600;
  word-break: break-all;
}

.odeme-card-preview-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.odeme-card-preview-bottom small {
  display: block;
  opacity: 0.7;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.odeme-card-preview-bottom strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.odeme-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--title-color);
}

.odeme-input-wrap .form-control {
  min-height: 52px;
  border-radius: 12px;
  border-color: var(--th-border-color, #e7e7e7);
}

.odeme-input-wrap .form-control:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(0, 168, 164, 0.12);
}

.odeme-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--body-color, #777);
  font-size: 0.8125rem;
}

.odeme-agreements {
  background: var(--smoke-color2, #f8fafb);
  border: 1px solid var(--th-border-color, #ececec);
  border-radius: 14px;
  padding: 16px 18px;
}

.odeme-check {
  margin-bottom: 12px;
}

.odeme-check:last-child {
  margin-bottom: 0;
}

.odeme-check .form-check-label {
  line-height: 1.5;
  font-size: 0.9rem;
}

.odeme-check .form-check-label a {
  color: var(--theme-color);
  font-weight: 600;
  text-decoration: none;
}

.odeme-check .form-check-label a:hover {
  text-decoration: underline;
}

.odeme-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  font-size: 1rem;
  font-weight: 700;
}

.odeme-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  text-align: center;
  color: var(--body-color, #666);
  font-size: 0.875rem;
}

.odeme-summary-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--th-border-color, #e7e7e7);
}

.odeme-summary-item {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.odeme-summary-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.odeme-summary-item-head {
  margin-bottom: 8px;
}

.odeme-summary-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.odeme-summary-line-name {
  color: var(--body-color, #666);
}

.odeme-summary-line-price {
  font-weight: 600;
}

.odeme-summary-discount {
  grid-column: 1 / -1;
  color: #198754;
}

.odeme-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.9375rem;
}

.odeme-summary-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--th-border-color, #e7e7e7);
  font-size: 1.05rem;
}

.odeme-summary-total strong {
  color: var(--theme-color);
  font-size: 1.25rem;
}

.odeme-3d-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 168, 164, 0.08);
  color: var(--title-color);
  font-size: 0.9rem;
}

.odeme-3d-body {
  min-height: 600px;
}

@media (max-width: 991px) {
  .odeme-summary {
    position: static;
  }
}

/* Bootstrap 5 beta modal fix (Escul theme breaks dialog layout) */
.modal-backdrop {
  z-index: 1000000 !important;
  opacity: 0.55 !important;
}

.modal.fade {
  z-index: 1000001 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal.fade.show {
  display: flex !important;
}

.modal.fade .modal-dialog {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  pointer-events: none;
}

.modal.fade .modal-dialog.modal-lg {
  max-width: 900px;
}

.modal.fade .modal-dialog.modal-dialog-centered {
  min-height: calc(100% - 2rem);
  display: flex;
  align-items: center;
}

.modal.fade .modal-content {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden;
  pointer-events: auto;
}

.modal.fade .modal-header {
  border-bottom: 1px solid #ececec !important;
  background: #fff;
  padding: 1rem 1.25rem;
}

.modal.fade .modal-body {
  background: #fff;
  color: var(--title-color);
  max-height: min(72vh, 760px);
  overflow-y: auto;
}

.modal.fade .modal-footer {
  border-top: 1px solid #ececec;
  background: #fff;
  padding: 0.75rem 1.25rem;
}

.modal.fade .btn-close {
  background: var(--smoke-color2, #f0f0f0) !important;
  color: var(--title-color) !important;
  opacity: 1 !important;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  filter: none;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .th-menu-wrapper,
body.modal-open .scroll-top,
body.modal-open #magic-cursor {
  z-index: auto !important;
}
