.sg-temple-detail-wrap {
  padding: 32px 0 48px;
}

.sg-temple-detail-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sg-temple-detail-gallery-wrap {
  width: 100%;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  background: #f8f8f8;
}

.sg-temple-detail-gallery {
  width: 100%;
}

.sg-temple-detail-gallery--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  box-sizing: border-box;
}

.sg-temple-detail-gallery--full {
  padding: 8px;
  box-sizing: border-box;
}

.sg-temple-detail-gallery--full .sg-temple-detail-gallery-main {
  width: 100%;
  height: 280px;
  max-height: 280px;
}

.sg-temple-detail-gallery-main {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 100%;
  min-height: 0;
}

.sg-temple-detail-gallery-main img,
.sg-temple-detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.sg-temple-detail-gallery-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.sg-temple-detail-gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 0;
}

.sg-temple-detail-gallery-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

#templeDetailLightGallery {
  display: none !important;
}

.sg-temple-detail-body {
  width: 100%;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 24px 24px 32px;
}

.sg-temple-detail-name {
  color: #000;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}

.sg-temple-detail-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  width: 100%;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.sg-temple-detail-meta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.sg-temple-detail-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.sg-temple-detail-meta-item i {
  color: #f5a623;
  flex-shrink: 0;
}

.sg-temple-detail-meta-item .bi-star-fill {
  color: #f5a623;
}

.sg-temple-detail-meta-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.sg-temple-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 118px;
  min-height: 88px;
  padding: 10px 12px;
  background: #fffce1 !important;
  border: 1px solid #ece4d8 !important;
  border-radius: 14px;
  text-decoration: none !important;
  color: #000 !important;
  box-shadow: none !important;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.sg-temple-action-btn:hover {
  color: #000 !important;
  transform: scale(1.03);
}

.sg-temple-action-btn img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.sg-temple-action-btn span {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: #000;
}

.sg-temple-detail-section + .sg-temple-detail-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #f0f0f0;
}

.sg-temple-detail-section h2 {
  color: #000;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  margin: 0 0 14px;
}

.sg-temple-detail-section-content {
  color: #333;
  font-size: 15px;
  line-height: 1.75;
}

.sg-temple-detail-section-content p:last-child {
  margin-bottom: 0;
}

.sg-temple-timings-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #f0f0f0;
}

.sg-temple-timings-section h2,
.sg-temple-direction-section h2 {
  color: #000;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  margin: 0 0 18px;
}

.sg-temple-timings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sg-temple-timing-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 14px;
  min-height: 96px;
}

.sg-temple-timing-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f4e98c;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.sg-temple-timing-card-body {
  min-width: 0;
}

.sg-temple-timing-card-title {
  margin: 0 0 6px;
  color: #1f2a44;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.sg-temple-timing-card-value {
  margin: 0;
  color: #667085;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.sg-temple-direction-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #f0f0f0;
}

.sg-temple-direction-accordion {
  padding: 4px 0;
}

.sg-temple-direction-accordion .accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.375rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  padding: 0 !important;
  background: #fff !important;
}

.sg-temple-direction-accordion .accordion-item:last-child {
  margin-bottom: 0;
}

.sg-temple-direction-accordion .accordion-header {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.sg-temple-direction-accordion .accordion-button {
  padding: 1rem 1.25rem !important;
  font-size: 16px;
  font-weight: 600;
  color: #212529 !important;
  background: #fff !important;
  background-color: #fff !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.sg-temple-direction-accordion .accordion-button:not(.collapsed) {
  color: #212529 !important;
  background: #fff !important;
  background-color: #fff !important;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125) !important;
}

.sg-temple-direction-accordion .accordion-button:hover,
.sg-temple-direction-accordion .accordion-button:focus {
  box-shadow: none !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #212529 !important;
}

.sg-temple-direction-accordion .accordion-button::after {
  filter: none;
  opacity: 0.65;
}

.sg-temple-direction-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sg-temple-direction-label i {
  color: #e8742a !important;
  font-size: 20px;
  line-height: 1;
}

.sg-temple-direction-accordion .accordion-body {
  padding: 1rem 1.25rem 1.25rem !important;
  color: #475467;
  font-size: 15px;
  line-height: 1.75;
  background: #fff !important;
}

@media (max-width: 767px) {
  .sg-temple-detail-wrap {
    padding: 20px 0 32px;
  }

  .sg-temple-detail-body {
    padding: 20px 16px 24px;
  }

  .sg-temple-detail-gallery--split {
    grid-template-columns: 1fr;
  }

  .sg-temple-detail-gallery--split .sg-temple-detail-gallery-main {
    height: 220px;
    max-height: 220px;
  }

  .sg-temple-detail-gallery--full .sg-temple-detail-gallery-main {
    height: 220px;
    max-height: 220px;
  }

  .sg-temple-detail-gallery-side {
    height: 160px;
    max-height: 160px;
  }

  .sg-temple-detail-meta-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sg-temple-detail-meta-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sg-temple-timings-grid {
    grid-template-columns: 1fr;
  }

  .sg-temple-direction-accordion .accordion-button {
    padding: 0.875rem 1rem !important;
  }

  .sg-temple-direction-accordion .accordion-body {
    padding: 0.875rem 1rem 1rem !important;
  }
}

/* extra css */

.puja-thumbnail {
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #ddd;
}
.image-zoom-modal {
  z-index: 9999;
}
.image-zoom-content {
  background: transparent;
  border: none;
}
.image-zoom-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 10000;
  font-size: 2rem;
  opacity: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.image-zoom-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.video-max-height {
  max-height: 400px;
}

.puja-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.puja-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.puja-card-image {
  width: 100%;
  object-fit: cover;
}
.puja-card-body {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.puja-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}
.order-info {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  font-size: 14px;
}
.order-info-item {
  margin-bottom: 5px;
}
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.status-assigned {
  background-color: #28a745;
  color: white;
}
.puja-card-buttons {
  display: flex;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Table Styling for Puja Listing */
.table thead th {
  font-weight: 600;
  font-size: 14px;
  padding: 12px 15px;
  vertical-align: middle;
}
.table-header-border {
  border-right: 1px solid rgba(255,255,255,0.3);
}
.table thead th:last-child {
  border-right: none;
}
.table tbody td {
  padding: 12px 15px;
  vertical-align: middle;
}
.table tbody tr:hover {
  background-color: #f8f9fa !important;
}
.badge {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}
.icon-size {
  font-size: 1.2rem;
}
.puja-card-buttons .btn {
  flex: 1;
  white-space: nowrap;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.puja-card-buttons .btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.modal .close {
  padding: 0;
  background-color: transparent;
  border: 0;
  opacity: 0.5;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  cursor: pointer;
}
.modal .close:hover {
  opacity: 0.75;
}
.family-dropdown-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 0;
}
.family-dropdown-item:last-child {
  border-bottom: none;
}
.family-header {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 5px;
  transition: background-color 0.2s;
}
.family-header:hover {
  background-color: #e9ecef;
}
.family-header input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}
.family-header-label {
  flex: 1;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  user-select: none;
}
.family-toggle-icon {
  margin-left: auto;
  font-size: 12px;
  color: #666;
  transition: transform 0.2s;
}
.family-toggle-icon.expanded {
  transform: rotate(90deg);
}
.family-members {
  padding-left: 30px;
  padding-top: 5px;
  display: none;
}
.family-members.show {
  display: block;
}
.family-member-item {
  padding: 5px 8px;
  color: #555;
  font-size: 14px;
  border-left: 2px solid #ddd;
  margin-left: 10px;
  margin-bottom: 3px;
}
.family-member-item:last-child {
  margin-bottom: 0;
}
.left-icon i {
  color: #FF0000;   /* YouTube Red */
  font-size: 20px;  /* Size adjust kar sakte ho */
}
.booking .card {
     border: none;
     border-radius: 10px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s, box-shadow 0.3s;
 }
.booking .card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
 }
.booking .card img {
     border-top-left-radius: 10px;
     border-top-right-radius: 10px;
     height: 200px;
     object-fit: cover;
 }
.booking .card-title {
     font-size: 1.2rem;
     font-weight: 600;
 }
 .booking .card-text {
     color: #6c757d;
 }
 .ast_dash{
   padding-top: 8px;
 }
 .assigned-puja-table img.puja-thumb {
   width: 60px;
   height: 60px;
   object-fit: cover;
   border-radius: 6px;
 }
 .assigned-puja-table th,
 .assigned-puja-table td {
   vertical-align: middle;
   font-size: 14px;
 }
 .assigned-puja-table .puja-name {
   font-weight: 600;
   color: #333;
 }
 .assigned-puja-table .status-badge {
   display: inline-block;
   padding: 4px 10px;
   border-radius: 12px;
   font-size: 12px;
   font-weight: 600;
   text-transform: uppercase;
   background-color: #28a745;
   color: #fff;
 }
 .referral-card {
     border: none;
     border-radius: 10px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s, box-shadow 0.3s;
     margin-bottom: 0;
     height: 100%;
 }
 .referral-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
 }
 .referral-card-header {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     padding: 15px 20px;
     border-radius: 10px 10px 0 0;
     font-weight: 600;
     font-size: 1.1rem;
 }
 .referral-card-body {
     padding: 20px;
 }
 .referral-item {
     background: #f8f9fa;
     border-radius: 8px;
     padding: 15px;
     margin-bottom: 15px;
     border-left: 4px solid #667eea;
 }
 .referral-item:last-child {
     margin-bottom: 0;
 }
 .referral-item-name {
     font-size: 1.1rem;
     font-weight: 600;
     color: #333;
     margin-bottom: 8px;
 }
 .referral-item-date {
     color: #6c757d;
     font-size: 0.9rem;
 }
 .empty-state {
     text-align: center;
     padding: 40px 20px;
     color: #6c757d;
 }
 .empty-state i {
     font-size: 3rem;
     margin-bottom: 15px;
     color: #dee2e6;
 }
 .balance-card {
     border: none;
     border-radius: 15px;
     box-shadow: 0 4px 12px rgba(0,0,0,0.1);
     margin-bottom: 20px;
 }
 .withdrawal-form-card {
     border: none;
     border-radius: 15px;
     box-shadow: 0 4px 12px rgba(0,0,0,0.1);
 }
 .history-item {
     border-left: 4px solid #667eea;
     padding: 15px;
     margin-bottom: 10px;
     background: #f8f9fa;
     border-radius: 5px;
 }
 .ast-review-list-card {
   background: #fff;
   border: 1px solid #dee2e6;
   border-radius: 10px;
   padding: 14px 16px;
   box-shadow: 0 1px 3px rgba(0,0,0,0.06);
 }
 .ast-review-list-card .ast-review-avatar-img {
   width: 48px;
   height: 48px;
   object-fit: cover;
   border-radius: 50%;
   flex-shrink: 0;
 }
 .ast-review-stars {
   color: #ffc107;
   font-size: 0.95rem;
   line-height: 1.2;
   margin-bottom: 6px;
 }
 .ast-review-name {
   font-weight: 700;
   font-size: 1rem;
   color: #212529;
   margin-bottom: 4px;
 }
 .ast-review-comment {
   font-size: 0.9rem;
   color: #495057;
   margin: 0;
   line-height: 1.45;
 }

 .a_time_iconn {
   position: relative;
   left: 69%;
   top: 37px;
 }
