.grid-row-wrap {
  width: 100%;
  margin: 0 auto;
  /* Changed to visible to allow premium glow to spread outside the row bounds */
  overflow: visible;
}

.addon-columns-nested {
  width: 100%;
}

.nested-col {
  min-width: 0;
}

@media (max-width: 768px) {
  .addon-columns-nested {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Quill Rich Text Fixes */
.rich-text-content .ql-align-center {
  text-align: center;
}

.rich-text-content .ql-align-right {
  text-align: right;
}

.rich-text-content .ql-align-justify {
  text-align: justify;
}

.rich-text-content ul,
.rich-text-content ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.rich-text-content blockquote {
  border-left: 4px solid #58a6ff;
  padding-left: 15px;
  font-style: italic;
  opacity: 0.8;
  margin: 1em 0;
}

.rich-text-content p {
  margin-bottom: 1em;
}

.rich-text-content img {
  max-width: 100%;
  height: auto;
}

.addon-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: inherit;
  display: block;
  object-fit: cover;
}

/* Premium Design Utilities */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #8b949e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: rgba(22, 27, 34, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.addon-hero {
  padding: 60px 0 !important;
  max-width: 900px;
  margin: 0 auto;
}

.featured-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 24px;
  padding: 35px 30px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.featured-box:hover {
  border-color: #58a6ff;
}

.featured-media img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Slider Specific Styles */
.addon-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 250px;
  max-height: 85vh;
  background: #000;
  border-radius: inherit;
  min-width: 0;
}

@media (max-width: 768px) {
  .addon-slider {
    aspect-ratio: 4 / 3;
  }
}

.addon-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.addon-slider .swiper-button-next,
.addon-slider .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.addon-slider:hover .swiper-button-next,
.addon-slider:hover .swiper-button-prev {
  opacity: 1;
}

.addon-slider .swiper-button-next::after,
.addon-slider .swiper-button-prev::after {
  font-size: 14px;
}

.addon-slider .swiper-pagination-bullet-active {
  background: #fff;
}

/* Accordion Styles */
.addon-accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.accordion-item.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.5);
}

.accordion-header {
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.accordion-icon {
  transition: transform 0.3s ease;
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  opacity: 1;
  color: #3b82f6;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
  max-height: 5000px;
}

.accordion-content-inner {
  padding: 5px 25px 25px 25px;
}

/* Tabs Styles */
.addon-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tabs-nav {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #8b949e;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: #3b82f6;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

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