.success-page * {
  box-sizing: border-box;
  font-family: "Noto Sans", sans-serif;
  
}

.success-page .success-heading {
  background-color: #fdf2f2;
  padding: 30px 0;
}

.success-page .section-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.success-page .section-content h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  font-weight: 600;
  color: black;
}

.success-page .section-content p {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  color: black;
}

/* === SUCCESS PAGE Main === */

.success-page .success-main1{
background-color:#f5f5f5;
}
.success-page .success-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 20px;
}

/* Section Headings */
.success-page .success-main h1,
.success-page .challenges-section h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: black;
  margin: 0;
  margin-bottom: 1rem;
  text-align: left;
}

/* === STORY NAVIGATION BUTTONS === */
.success-page .story-nav {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 30px;
  color: black;
}

.success-page .story-nav button {
  background: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 8px;
  position: relative;
  transition: all 0.3s ease;
  color: black;
}

.success-page .story-nav button::after {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 5px;
  width: calc(100% - 20px);
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s;
}

.success-page .story-nav button:hover::after,
.success-page .story-nav button.active::after {
  background-color: #bb1a1a;
}

/* === STORY CONTENT LAYOUT === */
.success-page .story-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  color: black;
}

.success-page .story-text {
  flex: 1;
}

.success-page .story-text h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  max-width: 500px;
  text-align: left;
  color: black;
}

.success-page .story-text p {
  max-width: 450px;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: left;
  color: black;
}

/* Read More Button */
.success-page .read-button {
  background: none;
  border: none;
  color: #bb1a1a;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.success-page .read-button:hover {
  color: #7c1f2b;
}

/* === IMAGE === */
.success-page .story-image {
  flex: 1;
  max-width: 600px;
}

.success-page .story-image img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  /* Hide desktop nav and desktop content ONLY in success page */
  .success-page .story-nav,
  .success-page .story-content {
    display: none;
  }
}

@media (min-width: 769px) {
  /* Hide mobile accordion on desktop */
  #story-nav-mobile,
  .mobile-accordion {
    display: none;
  }
}

/* Challenges Section */
.success-page .challenges-section {
  padding: 40px 0;
  color: black;
}

.success-page .challenges-section .challenges-subheading {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 20px;
  font-weight: 600;
  text-align: left;
  color: black;
}

.success-page .challenge-case {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 30px;
  padding: 20px;
}

.success-page .challenge-case.with-bg {
  background-color: #ffffff;
  padding: 2rem;
}

.success-page .challenge-case.no-bg {
  background-color: transparent;
  padding: 2rem;
}

@media (min-width: 768px) {
  .success-page .challenge-case {
    flex-direction: row;
    align-items: center;
  }
}

/*  ----------------Chllennge----------------------*/
.success-page .challenge-img {
  flex: 2;
}

.success-page .challenge-img img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.success-page .challenge-text {
  align-items: center;
  flex: 3;
  padding-left: 20px;
  margin-bottom: 50px;
}

.success-page .challenge-text h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  font-weight: 600;
  color: black;
}

.success-page .challenge-text p {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 14px;
  line-height: 1.6;
  color: black;
}

.success-page .case-button {
  background: none;
  border: none;
  color: #bb1a1a;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
}

.success-page .case-button:hover {
  color: #7c1f2b;
}

.accordion-header {
  -webkit-tap-highlight-color: transparent;
  font-size: 15px;
  width: 100%;
  text-align: left;
  padding: 1rem;
  background-color: #f7f7f7;
  color: black !important;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header:focus {
  outline: none;
}
.accordion-header:active {
  background-color: #f7f7f7; /* same as default, so no “flash” */
}

.accordion-header::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 10px;
}
.accordion-header.active::after {
  transform: rotate(-135deg); /* ▲ up arrow */
}

/* Medium Devices: Mobile Landscape / Small Tablets (481px - 767px) */
@media (max-width: 767px) {
.success-page .success-main,
.success-page .challenges-section,
.accordion-content {
  padding: 30px 20px;
}
  
  .success-page .section-content h1,
  .success-page .success-main h1 {
  margin-bottom: 16px;
    font-size: 2rem;
    font-weight: 800;
    text-align: left;
  }
  .success-page .section-content p,
  .accordion-content p,
  .success-page .challenge-text p {
    font-size: 13px;
    text-align: left;
  }
  .success-page .story-nav button {
    font-size: 14px;
  }

  .success-page .story-content,
  .success-page .challenge-case {
    flex-direction: column;
    align-items: left;
    text-align: left;
  }

  .success-page .story-text,
  .success-page .challenge-text {
    padding-left: 0;
  }

  .mobile-accordion {
    display: flex;
    flex-direction: column;
  }

  .accordion-item {
    overflow: hidden;
  }

  .accordion-header {
    width: 100%;
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    background-color: #f7f7f7;
    border: none;
    cursor: pointer;
  }

  .accordion-header.active {
    background-color: #f7f7f7;
  }

  .accordion-content {
    background-color: #fff;
    padding: 1rem 2rem;
  }

  .accordion-content img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
  }


  .accordion-content .read-button {
    font-size: 15px;
    font-weight: 600;
  }
  
}

@media (max-width: 480px) {
.success-page .success-heading {
  background-color: #fdf2f2;
  padding: 20px 0;
}
  .success-page .success-main,
  .success-page .challenges-section {
    padding: 20px;

    
  }

  .success-page .section-content h1 {
    margin: 0;
    font-size: 2.5rem;
  }

.success-page .challenge-text {
  margin: 0;
}
  
.success-page .challenge-text h3 {
  font-size: 1.3rem;
  margin: 0;
}

.success-page .case-button {
  font-size: 15px;
}


.success-page .section-content {
  padding: 1rem;
}

  .success-page .section-content h1 {
    margin-bottom: 12px;
    font-size: 2.5rem;
    font-weight: 800;
  }

  .success-page .section-content p,
  .accordion-content p,
  .success-page .challenge-text p {
    font-size: 14px;
  }

  .success-page .story-content,
  .success-page .challenge-case {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

.success-page .challenge-case.with-bg {
  background-color: #f5f5f5;
  padding: 2rem;
}

.success-page .challenge-case.no-bg {
  background-color: transparent;
  padding: 2rem;
}
  .success-page .story-text,
  .success-page .challenge-text {
    padding-left: 0;
  }

  .mobile-accordion {
    display: flex;
    flex-direction: column;
  }

  
.success-page .challenges-section .challenges-subheading {
  margin: 0;
}
}


.filters-container {
  margin: 20px 0 20px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.filter-label {
  font-weight: 600;
  margin-right: 10px;
  font-size: 15px;
  white-space: nowrap;
}

.filter-pill {
  padding: 5px 13px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background-color: #f8f8f8;
  font-size: 13px;
  color: #444;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.filter-pill:hover {
  background-color: #e0e0e0;
}

.filter-pill.active {
  color: #bb1a1a;
  border: 2px solid #bb1a1a;
}

.results-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.challenges-subheading {
  margin: 0;
  font-weight: 600;
}

.filter-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  color: black;
  gap: 0.3rem;
  font-size: 1.1rem;
}

.filter-toggle-btn .arrow {
  font-size: 0.8rem;
  transition:transform 0.3s ease;
  color: black;
}

.filters-container {
  padding: 1rem 0;
  border-top: 1px solid #ddd;
  margin-bottom: 2rem;
}
.results-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
  
/* Prevent scroll when modal is open */
body.mobile-filter-open {
  overflow: hidden;
}

/* Fullscreen filter modal */
.mobile-filter-modal {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Header */
.filter-modal-header {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e6e6e6;
}
.filter-modal-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.close-btn {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
}

/* Scrollable content area */
.filter-modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* Filter blocks */
.filter-block {
  margin-bottom: 2px;
}
.filter-group-label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 12px;
}
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Filter options */
.filter-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}
.filter-option:hover {
  background-color: #f5f5f5;
}
.filter-option.selected .tick {
  color: #ee0000;
  font-weight: bold;
}
.tick {
  font-size: 1rem;
}

/* Footer buttons */
.filter-modal-footer {
  padding: 25px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e6e6e6;
  background: #f6f9fb;
}
.clear-btn,
.apply-btn {
  flex: 1;
  margin: 0 6px;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #b0c5d6;
  background: #fff;
  color: #102a43;
}
.apply-btn {
  background: #bb1a1a;
  border-color: #bb1a1a;
  color: #fff;
}
/* Hover styles */
.clear-btn:hover {
  background-color: #e0e0e0;
}

.apply-btn:hover:not(:disabled) {
  background-color: #a50000;
  border-color: #a50000;
}

/* Disabled apply button */
.apply-btn:disabled {
  background: #e5e5e5;
  color: #888;
  border-color: #ccc;
  cursor: not-allowed;
}


@media (max-width: 768px) {
  .filter-modal-header {
    padding: 10px;
  }

  .filter-modal-header h2 {
    font-size: 1rem;
  }

  .close-btn {
    font-size: 13px;
  }

  .filter-modal-content {
    padding: 10px;
  }

  .filter-block {
    margin-bottom: 0;
  }

  .filter-group-label {
    font-size: 14px;
    margin-bottom: 5px;
    margin-top: 10px;
  }

  .filter-option {
    font-size: 13px;
    padding: 8px 12px;
  }

  .tick {
    font-size: 13px;
  }

  .filter-modal-footer {
    flex-direction: column;
    gap: 10px;
  }

  .clear-btn,
  .apply-btn {
    width: 100%;
    margin: 0;
    padding: 8px;
    font-size: 14px;
  }
}


@media (max-width: 480px) {

.filter-toggle-btn {
  font-size: 15px;
}

.filter-toggle-btn .arrow {
  margin-top: 0.2rem;
  font-size: 10px;
  transition:transform 0.3s ease;
  color: black;
}

}