/* General Styles */
body, p, h1, h2, h3, h4, h5, h6 {
   font-family: Poppins, sans-serif;
}
.text-primary-coral-gradient.space-left {
   padding-bottom: 0px;
   padding-left: 0px;
}

/* Buttons */
.btn-secondary {
   display: block;
}

.container-wrapper-new {
   margin-inline: auto !important;
   max-width: var(--brand-layout-width);
}

/* Headings */
h1 .text-primary-coral-gradient {
   padding-bottom: 19px;
   margin-bottom: -19px;
   padding-right: 6px;
   margin-right: -6px;
   padding-left: 4px;
}

h2 {
   margin-top: 0;
}

ul li {
   font-family: 'Poppins', sans-serif;
}

.graph-section h2,
.whats-included-section .whats-included-content h3:before,
.cta-section h2,
.pmm-chart-container h2,
.access-product-section .access-product-content h2 {
   margin-top: 0;
   margin-bottom: 24px;
}

/* Paragraphs */
p,
.graph-section ul li,
.graph-section p,
.package-detail .key-takeaway > ul > li,
.menu-item .points,
.accordion-content p,
.accordion > p > span,
.pmm-chart-container .chart-slide-item p,
.pmm-chart-container .chart-slide-item li,
.pmm-chart-container .list-group ul li {
   font-family: Poppins, sans-serif;
   font-size: 16px;
   font-weight: 300;
   line-height: 24px;
}

.accordion > p {
   margin-bottom: 0;
   font-size: 24px;
   font-weight: 400;
   line-height: 32px;
   letter-spacing: -0.02em;
}

/* Banner */


/* The banner stacks until xl (flex-col! / xl:flex-row! on .banner-content), so
   bottom alignment only applies once it is genuinely a row - otherwise
   flex-end pushes the column's children against the right edge. */
.create-contribute-section .banner-content {
   align-items: flex-start;
}

.btn.hover-white:hover {
   background: var(--white) !important;
   color: var(--black) !important;
}

@media (min-width: 1280px) {
   .create-contribute-section .banner-content {
      align-items: flex-end;
   }

   /* .post-title is capped at 100ch, so the row has slack on the right. The
      CTA wrapper is content-width, so only an auto margin can reach the edge -
      justify-* on the wrapper has no free space to distribute. */
   .create-contribute-section .banner-content > div:not(.post-title) {
      margin-left: auto;
   }
}

.create-contribute-section .banner-content h1 {
   margin-bottom: 40px;
   position: relative;
   color: var(--black);
}

.create-contribute-section .banner-content h1 img {
   position: absolute;
   top: -40px;
   left: 510px;
}

.create-contribute-section .banner-content p {
   margin-bottom: 0;
   max-width: min(80ch, 100%);
}

.create-contribute-section .banner-content .video-content {
   display: flex;
   justify-content: center;
}

.create-contribute-section .banner-content .post-title {
   width: min(100ch, 100%);
}

.create-contribute-section .video-content {
   background: url("/assets/img/create-and-contribute/video-decals.svg");
   background-repeat: no-repeat;
   background-size: 100% 100%;
   background-position: center;
   display: flex;
   max-width: 1192px;
   margin: auto;
   justify-content: center;
   padding-bottom: 80px;
}
.create-contribute-section .video-container {
   width: 800px;
   border-radius: 12px;
   overflow: hidden;
}


/* Graph Section */
.graph-section {
   background-color: var(--black);
}

.graph-section .container{
   max-width: 1192px;
   margin: auto;
   padding: 80px 0;
}

.graph-section .header{
   display: flex;
   justify-content: space-between;
   gap: 24px;
   padding-bottom: 24px;
   border-bottom: 1px solid var(--white);
   flex-direction: column;
   position: relative;
}

.graph-section .header .get-involve-decal-1,
.graph-section .header .get-involve-decal-2  {
   position: absolute;
   width: 40px;
}

.graph-section .header .get-involve-decal-1 {
   top: -50px;
   left: 450px;
   transform: rotate(-30deg);
}
.graph-section .header .get-involve-decal-2 {
   bottom: 20px;
   right: 0;
   transform: rotate(30deg);
}

.graph-section .header p {
   font-family: Poppins, sans-serif;
   font-size: 16px;
   font-weight: 300;
   line-height: 24px;
   color: var(--white);
   width: min(100ch, 100%);
}

/* .graph-section .header h3 {
   width: min(480px, 100%);
   margin-bottom: 0;
   margin-top: 0;
   color: var(--white);
   font-size: 56px;
   font-style: normal;
   font-weight: 400;
   line-height: 55px;
   letter-spacing: -2.24px;
   } */

.graph-section .header > div {
   width: 587px;
}

.graph-section .counter-inner-container {
   display: flex;
   column-gap: 40px;
   row-gap: 45px;
   margin-top: 40px;
   justify-items: center;
   justify-content: space-between;
}

.graph-section .courses-counter-box {
   padding: 0;
   max-width: 224px;
   color: transparent;
}

.graph-section .courses-counter-box p {
   color: var(--white);
}

.graph-section .courses-counter {
   font-size: 56px;
   font-weight: 400;
   line-height: 58px;
   letter-spacing: -0.04em;
}


/* whats included Section */
.whats-included-section {
   padding: 80px 0px;
   padding-bottom: 30px;
   background-color: var(--white);
}

.whats-included-section .whats-included-content {
   max-width: 1192px;
   margin: auto;
   position: relative;
   display: flex;
   flex-direction: row;
   gap: 90px;
   justify-content: space-between;
   padding-bottom: 32px;
   margin-bottom: 24px;
   border-bottom: 1px solid var(--coral);
   align-items: flex-start;
}

.whats-included-section .whats-included-content .whats-included-content-text {
   width: 50%;
}
.whats-included-section .whats-included-content h2 {
   position: relative;
}

.whats-included-section .whats-included-content h3:before,
.whats-included-section .whats-included-content h2:before {
   content: url("/assets/img/create-and-contribute/curve-underline.svg");
   position: absolute;
   left: 0px;
   top: 90px;
}

.whats-included-section .package-details {
   max-width: 1192px;
   margin: auto;
   display: flex;
   justify-content: space-between;
}

.whats-included-section .package-menu {
   display: flex;
   flex-direction: column;
   gap: 8px;
   width: 486px;
}

.whats-included-section .package-descriptions {
   width: 50%;
}

.whats-included-section .package-menu .menu-item {
   color: var(--black);
   padding: 16px 0 16px 32px;
   border-bottom: 1px solid #AEAEAE;
   text-decoration: none;
   cursor: pointer;
   position: relative;
   font-family: Poppins, sans-serif;
   font-size: 24px;
   font-style: normal;
   font-weight: 400;
   line-height: 32px; /* 133.333% */
   letter-spacing: -0.96px;
}

.whats-included-section .package-menu .menu-item.active {
   color: var(--coral);
}

.whats-included-section .package-menu .menu-item:after {
   content: url(/assets/img/arrow-right-coral.svg);
   position: absolute;
   right: 0;
   bottom: 16px;
   filter: invert(58%) sepia(85%) saturate(0%) hue-rotate(160deg) brightness(104%) contrast(85%);
   transform: translate3d(-0.5rem, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg);
   transition: all .28s;
}

.whats-included-section .package-menu .menu-item.active:after,
.whats-included-section .package-menu .menu-item:hover:after {
   filter: none;
   right: -10px;
}

.whats-included-section .package-menu .menu-item:hover {
   color: var(--coral);
}
.whats-included-section .package-details-mobile {
   display: none;
}

.whats-included-section .package-detail {
   display: none;
}

.whats-included-section .package-detail.active {
   display: block;
}

.whats-included-section .package-detail {
   padding-top: 16px;
}

.whats-included-section .package-detail-image {
   width: 100%;
   border-radius: 12px;
   overflow: hidden;
   height: 270px;
}

.whats-included-section .package-detail-image img {
   width: 100%;
   object-fit: cover;
   object-position: bottom;
   height: 100%;
}

.whats-included-section .package-menu .menu-item:last-child {
   border: none;
}

.whats-included-section .package-detail ul li {
   font-family: Poppins, sans-serif;
   font-size: 16px;
}


/* logo partners section */
.logo-partners-section .logo-partners-content {
   padding-top: 48px;
   padding-bottom: 80px;
   text-align: center;
   display: flex;
   flex-direction: column;
   gap: 24px;
   max-width: 1192px;
   margin: 0 auto;
}

.logo-partners-section .logo-partners-content .group-logo-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 32px 64px;
}
.logo-partners-section .logo-partners-content .partners-logo-item {
   height: 48px;
   width: auto;
}


/* CTA Section */
.cta-section {
   background: var(--coral-gradient);
   padding: 80px 0;
}
.cta-section-2 {
   background: var(--coral-gradient);
}

/* Partner logos in the community CTA. Sized here rather than with a tailwind
   arbitrary variant ([&>img]:h-12), which is not in the compiled output and left the
   Dropbox and VMware SVGs stretching to the full column width. Same 48px as the
   partners section above and the pmm-design reference. */
.cta-section-2 .cta-logo-grid img {
   height: 48px;
   width: auto;
   max-width: 100%;
}
.cta-section p {
   color: var(--black);
}

.cta-section .cta-content {
   max-width: 1192px;
   margin: auto;
}

/* .cta-section h3 {
   color: var(--black);
   margin-top: 0;
   margin-bottom: 24px;
   font-size: 56px;
   font-style: normal;
   font-weight: 400;
   line-height: 58px;
   letter-spacing: -2.24px;
   }

   .cta-section h3 span {
   display: block;
   } */

.cta-section .cta-content img {
   margin-bottom: 24px;
}

.cta-section .cta-separator {
   border-color: var(--black);
}
.cta-section .cta-separator {
   margin: 24px 0;
}

.cta-section .cta-logo-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 32px;
   flex-direction: row;
   margin-bottom: 24px;
}

.cta-section .cta-logo-grid img {
   height: 48px;
   width: auto;
   margin: 0px;
}

.cta-content .cta-contnet-column {
   width: min(100ch, 100%);
}

.cta-content .btn:hover {
   background: var(--white);
   color: var(--black);
}


/* Chart Container */
.pmm-chart-container {
   max-width: 1192px;
   margin: auto;
   padding-top: 94px;
   padding-bottom: 94px;
}

.pmm-chart-container .chart-slide-item {
   display: flex;
   justify-content: space-between;
   align-items: center;
   max-height: 0;
   visibility: hidden;
   opacity: 0;
   transition: opacity .5s ease-in-out;
}

.pmm-chart-container .chart-slide-item.active {
   max-height: 100%;
   visibility: visible;
   opacity: 1;
}

.pmm-chart-container h2 {
   margin-top: 0;
   margin-bottom: 16px;
   font-size: 56px;
   font-weight: 400;
   line-height: 58px;
   letter-spacing: -0.04em;
   text-align: left;
   color: var(--white);
}

.pmm-chart-container .chart-slide-item .chart-content .btn {
   display: inline-block;
   margin-top: 24px;
}

.chart-slide-controller {
   margin-top: 40px;
}

.chart-slide-controller .prev,
.chart-slide-controller .next {
   cursor: pointer;
   filter: invert(1);
}

.chart-slide-controller .prev {
   content: url(/assets/img/circle-arrow-left.svg);
   margin-right: 24px;
}

.chart-slide-controller .prev.disabled {
   filter: invert(72%) sepia(12%) saturate(0%) hue-rotate(207deg) brightness(96%) contrast(89%);
   cursor: unset;
}

.chart-slide-controller .next {
   content: url(/assets/img/circle-arrow-right.svg);
}

.pmm-chart-slider {
   background-color: var(--black);
   border-bottom: 1px solid #AEAEAE;
}

.Root-sc-__sc-1ndopc5-3 {
   background-color: var(--black) !important;
}

.pmm-chart-container .list-group ul {
   padding-left: 0;
   flex: 1;
   margin-bottom: 0;
}

.pmm-chart-container .list-group ul li:before {
   content: url(/assets/img/check-bullet-point.svg);
   margin-right: 12px;
}


/* Slider Section */
.slider-section .slide-item img {
   border-radius: 5px;
}
.slider-section {
   padding: 80px 0;
}

/* Testimonial slider arrows.
   At either end the arrow is dimmed and inert rather than hidden, so the pair
   never shifts position and the cursor still reports why it will not respond. */
.slider-section .slider-controller a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
}

.slider-section .slider-controller a:focus-visible {
   outline: 2px solid var(--coral);
   outline-offset: 6px;
   border-radius: 4px;
}

.slider-section .slider-controller a.disabled {
   opacity: 0.3;
   cursor: not-allowed;
}

/* Accordion */
.accordion button:not(:first-of-type) {
   margin-top: 24px;
}

button.accordion {
   width: 100%;
   border: none;
   outline: none;
   text-align: left;
   padding-top: 24px;
   color: var(--black);
   cursor: pointer;
   font-size: 24px;
   font-weight: 400;
   line-height: 32px;
   letter-spacing: -0.04em;
   display: flex;
   align-items: center;
   gap: 16px;
   border-top: 1px solid #AEAEAE;
   background-color: var(--white);
}

button.accordion.is-open {
   border-top: 1px solid var(--coral);
}

button.accordion:before {
   content: url("/assets/img/arrow-right-custom.svg");
   filter: invert(77%) sepia(2%) saturate(32%) hue-rotate(316deg) brightness(93%) contrast(86%);
}

button.accordion.is-open:before {
   filter: unset;
}

.accordion-content {
   max-height: 0;
   padding: 0;
   overflow: hidden;
   transition: max-height 0.2s ease-in-out, padding 0.2s ease-in-out;
}

/* Responsive Styles */
@media only screen and (max-width: 1200px) {
   .slider-section,
   .logo-partners-section .logo-partners-content {
      padding: 80px 56px;
   }
   .logo-partners-section .logo-partners-content {
      padding-top: 0px;
   }
   .create-contribute-section .video-container {
      width: 100%;
      border-radius: 0;
   }
   .create-contribute-section .video-content {
      padding-bottom: 0;
   }

   .slider-section .slider-controller {
      top: 0;
      left: 0;
      position: relative;
   }

   .btn-secondary {
      display: inline-block;
   }

   .create-contribute-section {
      background-size: cover;
   }

   .create-contribute-section .banner-content {
      padding: 80px 56px;
      gap: 42px;
   }

   .create-contribute-section .banner-content h1 {
      margin-bottom: 24px;
   }

   .create-contribute-section .cta-right:before {
      display: none;
   }

   .create-contribute-section .banner-content .post-title {
      width: 100%;
   }

   .create-contribute-section .cta-right {
      width: 30%;
      display: flex;
      justify-content: flex-end;
   }

   .graph-section {
      padding: 0 56px;
      flex-direction: column;
      gap: 0;
   }

   .package-details-mobile {
      display: block;
   }

   .whats-included-section .package-menu {
      width: min(402px, 100%);
   }

   .whats-included-section .whats-included-content:after {
      display: none;
   }

   .whats-included-section {
      padding: 80px 56px;
   }

   .cta-section {
      padding: 80px 56px;
   }

   .cta-section .btn-group {
      flex-direction: column;
      align-items: flex-start;
   }

   .pmm-chart-container {
      padding: 56px 32px;
   }

   .pmm-chart-container .chart-slide-item {
      flex-direction: column;
      gap: 40px;
   }

   .pmm-chart-container .chart-slide-item .chart {
      align-self: center;
   }

   .chart-slide-controller-mobile {
      display: flex;
      gap: 16px;
   }

   .chart-slide-controller {
      display: none;
   }

   .chart > img {
      width: 100%;
   }

   .pmm-chart-container .chart-slide-item {
      align-items: flex-start;
   }
}
/* Tablet and below share the mobile layout */
@media only screen and (max-width: 1024px) {
   /* Banner */
   .create-contribute-section .banner-content {
      flex-direction: column;
      gap: 24px;
      padding-bottom: 40px;
   }
   .create-contribute-section .cta-right {
      width: 100%;
      justify-content: flex-start;
      margin-top: 24px;
   }
   .create-contribute-section .video-container {
      width: 100%;
   }
   .create-contribute-section .video-content {
      background-image: none;
      padding-bottom: 0;
      padding-left: 0 !important;
      padding-right: 0 !important;
   }

   /* Why contribute */
   .graph-section .header .get-involve-decal-2 {
      display: none;
   }
   .graph-section .counter-inner-container {
      display: grid;
      row-gap: 24px;
      grid-template-columns: repeat(2, 1fr);
   }
   .courses-counter-box p {
      margin-bottom: 0;
   }

   /* Ways to get involved: the tab layout gives way to the accordion */
   .whats-included-section .whats-included-content {
      flex-direction: column;
      gap: 24px;
      border: none;
      margin: 0;
      padding-bottom: 24px;
   }
   .whats-included-section .whats-included-content .whats-included-content-text {
      width: 100%;
   }
   .whats-included-content-text p {
      margin-bottom: 0;
   }
   .whats-included-section .whats-included-content h3:before {
      display: none;
   }
   .whats-included-section .whats-included-content h2 {
      margin-bottom: 0;
   }
   .whats-included-section .package-details {
      display: none;
   }
   .whats-included-section .package-details-mobile {
      display: block;
   }

   /* Logo wall + CTA */
   .logo-partners-section .logo-partners-content {
      padding: 56px 32px;
   }
   .cta-section .cta-logo-grid {
      gap: 24px;
   }

   /* Testimonial slider */
   .slider-section .slide-item {
      align-items: flex-start;
      flex-direction: column;
      width: 100%;
   }
   .slider-section .slide-content {
      padding: 0px;
   }
   .slider-section .slider-controller {
      top: 94%;
   }
}

@media (max-width: 820px) {
   .create-contribute-section .banner-content h1 img {
      top: -28px;
      left: 285px;
   }
}

@media (max-width: 600px) {
   .slider-section {
      padding-bottom: 60px;
   }
   .slider-section .slider-content {
      padding-bottom: 40px;
      display: flex;
      flex-direction: column;
      gap: 24px;
   }
   .slider-section .slider-controller {
      top: 96%;
      left: 0;
   }

   .slider-section .slide-item img {
      width: 100%;
   }

   .slider-section, .logo-partners-section .logo-partners-content {
      padding-left: 32px;
      padding-right: 32px;
   }

   .create-contribute-section .banner-content {
      padding: 56px 32px;
   }
   .create-contribute-section .video-content {
      padding-left: 32px;
      padding-right: 32px;
   }

   .graph-section .counter-inner-container {
      display: flex;
      flex-direction: column;
      align-items: center;
   }
   /* .graph-section .header h3 span {
      display: inline-block;
      padding: 0px;
      } */

   .logo-partners-section .logo-partners-content {
      padding-left: 32px;
      padding-right: 32px;
   }

   .graph-section .container {
      padding: 0px;
   }

   .banner-container {
      background-size: cover;
   }

   .banner-content h1 {
      margin-bottom: 24px;
   }

   .banner-content p {
      margin-bottom: 24px;
   }

   .cta-right:before {
      display: none;
   }

   .banner-content .post-title {
      width: 100%;
   }

   .cta-right {
      width: 100%;
   }

   .graph-section {
      padding: 56px 32px;
      flex-direction: column;
      gap: 0;
   }

   .whats-included-section .package-details {
      display: none !important;
   }

   .package-details-mobile {
      display: block;
   }

   .whats-included-section .whats-included-content:after {
      display: none;
   }

   .whats-included-section {
      padding: 56px 32px;
   }

   .cta-section {
      padding: 56px 32px;
   }

   .cta-section .btn-group {
      flex-direction: column;
      align-items: flex-start;
   }

   .pmm-chart-container {
      padding: 56px 32px;
   }

   .pmm-chart-container .chart-slide-item {
      flex-direction: column;
      gap: 40px;
   }

   .chart-slide-controller-mobile {
      display: flex;
      gap: 16px;
   }

   .chart-slide-controller {
      display: none;
   }

   .chart > img {
      width: 100%;
   }
}


/* ---------------------------------------------------------------------------
   Moved out of the page template's inline <style> block
   --------------------------------------------------------------------------- */

.slider-section {
   background-size: cover;
}

@media all and (max-width: 1024px) {
   .accordion button:not(:first-of-type) {
      margin-top: 0;
   }
   .accordion-content {
      background-color: transparent;
      border-bottom: 1px solid #AEAEAE;
   }
   .accordion-content p {
      color: var(--black);
   }
   button.accordion {
      padding-top: 16px !important;
      padding-bottom: 16px !important;
      background-color: transparent;
      color: var(--black);
      border-top: none;
   }
   button.accordion.is-open {
      color: var(--coral);
      border-top: none;
   }
   .package-details-mobile {
      display: block !important;
   }
   .package-details {
      display: none !important;
   }
   .create-contribute-section .banner-content h1 {
      margin-bottom: 0;
   }
   .slider-section {
      padding-bottom: 56px;
   }
   .slider-section .slider-content {
      padding-bottom: 0;
   }
   .slider-section .slide-item {
      flex-direction: column;
      gap: 24px;
   }
}

/* Testimonial slider: keep the iPad (max-width: 1024px) layout up to 1032px. Same rules as the
   two max-width: 1024px blocks above, placed before the 601-1200px block so it still wins
   over them exactly as it does at 768px. */
@media (min-width: 1025px) and (max-width: 1032px) {
   .slider-section {
      padding-bottom: 56px;
   }
   .slider-section .slider-content {
      padding-bottom: 0;
   }
   .slider-section .slide-item {
      align-items: flex-start;
      flex-direction: column;
      width: 100%;
      gap: 24px;
   }
   .slider-section .slide-content {
      padding: 0px;
   }
   .slider-section .slider-controller {
      top: 94%;
   }
}

@media (min-width: 601px) and (max-width: 1200px) {
   .slider-section .slide-content {
      padding-right: 0;
   }
   .slider-section .slide-item {
      width: 100%;
   }
}

/* ---- Member dashboard shell fixes ----
   dashboard.css styles every `.container` as a flex row for the shell layout
   (`.container:not(.not-dash-page .container) { display: flex }`). That turned the
   "Why contribute" heading and the counters into side-by-side flex items and pushed
   the counters past the content column. Stack them, as on the public page. */
#site-main .graph-section .container {
   display: block;
}

/* style.css gives testimonial slides a fixed 1192px width; the dashboard content
   column is narrower than that, so the quote ran under the slider controls. */
#site-main .slider-section .slide-item {
   width: 100%;
}

/* ---- #expertise ("Ways to get involved"): desktop layout from the pmm-design branch ----
   Tablet and mobile keep the rules above. 1280px is where the tailwind `xl:` utilities on
   this markup switch the intro to a row, so the desktop overrides start there too. The
   `!important`s are needed to beat the tailwind `!` utilities on the markup. */
@media (min-width: 1280px) {
   /* heading column sizes to its text, copy column takes half */
   #expertise .whats-included-content > div:first-child {
      flex: 0 0 auto !important;
   }
   #expertise .whats-included-content > div:last-child {
      flex: 0 0 50% !important;
   }
   /* curve decal hangs below the heading instead of cutting through its second line */
   #expertise .whats-included-content h2:before {
      top: auto;
      bottom: -24px;
   }
   /* menu and descriptions are placed by space-between alone */
   #expertise .package-details {
      gap: 0 !important;
   }
   /* step headings keep the default h6 spacing */
   #expertise .package-detail h6 {
      margin-bottom: 0.5em !important;
   }
}

/* `gap-10!` on the intro row is an !important utility inside tailwind's `utilities` cascade
   layer, and an important declaration in a layer beats an important one outside any layer.
   Declaring this rule in the same layer puts specificity back in charge, so the id wins. */
@layer utilities {
   @media (min-width: 1280px) {
      #expertise .whats-included-content {
         gap: 90px !important;
      }
   }
}

/* Member dashboard shell: dashboard.css resets `p { margin: 0 }`, which strips the 24px
   paragraph spacing the public page gets from screen.css (`p { margin: 0 0 1.5em }`).
   Restore it for this page's content only; shell elements outside .page-container keep
   the reset, and tailwind `mb-*!` utilities on individual paragraphs still win. */
.page-container p {
   margin-bottom: 24px;
}
