button {
    font-family: 'Inter', 'sans-serif';
}

summary {
  list-style: none;      /* usuwa kropkę (gdy <details> w <ul>) */
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;         /* usuwa strzałkę w Chrome/Safari */
}

details summary::marker {
  display: none;         /* usuwa strzałkę w Firefox i inne nowoczesne przeglądarki */
}

.cky-preference-center {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.cky-preference-body-wrapper,
.cky-preference-content-wrapper,
.cky-footer-wrapper {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

[class^="cky-"],
[class*=" cky-"] {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.page-main {
    padding-top: 20px;
}

.portfolio-header {
    padding: 0 16px 64px;
}

.portfolio-header-title {
    margin-bottom: 16px !important;
    margin-top: 64px;
}

.portfolio-header-title, .portfolio-header p {
    text-align: center;
}

.portfolio-header p {
    color: rgba(26, 26, 26, 1);
    font-size: 18px;
}

.breadcrumb-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.breadcrumb-wrapper a {
    font-size: var(--font-size-xsmall);
    color: rgba(88, 93, 104, 1);
}

.portfolio-content {
    padding: 8px 16px 40px;
    background-color: rgba(250, 249, 249, 1);
}

.filters-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.all-button {
    flex-basis: 100%;
    text-align: center;
    padding: 8.5px 0;
    border: 1.5px solid rgba(33, 53, 100, 1);
    color: rgba(33, 53, 100, 1);
    font-size: var(--font-size-xmedium);
    text-transform: uppercase;
    border-radius: 8px;
    font-weight: 500;
    transition: color .4s ease-in-out, background-color .4s ease-in-out;
}

.all-button.active {
    background-color: #1F3564;
    color: rgba(250, 249, 249, 1);
}

.all-button:hover {
    background-color: rgba(33, 53, 100, 1);
    color: rgba(254, 254, 255, 1);
}

.state-buttons {
    flex-basis: 100%;
    display: flex;
    align-items: center;
}

.exited-button, .active-button {
    flex-basis: 50%;
    padding: 10.5px 0;
    text-align: center;
    font-weight: 500;
    font-size: var(--font-size-medium);
    border: 1.5px solid rgba(33, 53, 100, 1);
    color: #1A1A1A;
}

.active-button {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.exited-button {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.exited-button.active, .active-button.active {
    background-color: rgba(33, 53, 100, 1);
    color: rgba(254, 254, 255, 1);
}

.filters-dropdowns-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.filters-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    gap: 8px;
    position: relative;
}

.filters-dropdown .filters-dropdown-btn {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 16px;
    color: #213564;
    padding: 10px 0;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 24px;
    padding: 8px;
    border-radius: 16px;
    background-color: #FAF8F8;
    width: 227px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease-in-out;
    z-index: 99;
}

.dropdown-content.show {
    opacity: 100;
    visibility: visible;
}

.dropdown-content label {
    font-size: 16px;
    font-family: "Outfit";
    color: #1A1A1A;
    line-height: 150%;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-content label input {
    width: 20px;
    min-width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid #1F3564;
    appearance: none;
    border-radius: 4px;
    position: relative;
}

.dropdown-content label input:checked {
    background-color: #1F3564;
}

.dropdown-content label input:checked::after {
  content: "✓";
  color: white;
  font-size: 14px;
  position: absolute;
  top: -1;
  left: 4px;
}

.sector-btn .dropdown-content {
    column-count: 2;
    width: 90vw;
    left: -170px;
}

.sector-btn .dropdown-content label {
    align-items: flex-start;
}

.filters-delete-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 0;
}

.reset-filter-btn {
    font-size: 16px;
    font-family: "Outfit";
    color: #1A1A1A;
    line-height: 150%;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(253, 250, 245, 1);
    border: 1px solid rgba(225, 224, 231, 1);
    border-radius: 24px;
}

.reset-filter-btn::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('https://movenscapital.com/wp-content/uploads/2025/06/reset-filter.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.clear-all {
    padding: 5.5px 8px;
    text-decoration: underline;
    font-size: 14px;
    line-height: 150%;
    color:rgba(31, 53, 100, 1);
    letter-spacing: 0.01em;
    opacity: 100;
    transition: opacity .2s ease-in-out;
    visibility: visible;
    order: 99;
    display: block;
}

.clear-all.hide {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.portfolio-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0px;
}

.portfolio-list.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-list.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.portfolio-details {
    display: flex;
    flex-direction: column;
    padding: 20px 0px 12px;
    border-bottom: 1px solid rgba(146, 147, 147, 1);
    transition: background-color .2s ease-in-out;
}

.summary-desc {
    margin-top: 4px !important;
    color: rgba(33, 53, 100, 1);
    font-size: 14px;
    max-width: 100%;
}

summary .summary-desc {
    max-width: 86%;
}

.portfolio-details summary {
    position: relative;
}

.portfolio-details summary::after {
    content: url(../../images/chevron-down.svg);
    display: block;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    transition: rotate .4s ease-in-out;
}

.portfolio-details:open summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.details-content {
    width: 86%;
    display: flex;
    flex-direction: column;
    margin-top: -28px;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.6s ease-in-out, opacity .4s ease-in-out;
}

.portfolio-details.is-open .details-content {
    opacity: 100;
}

.portfolio-title {
    text-transform: uppercase;
    color: rgba(26, 26, 26, 1);
    font-size: 18px !important;
    font-weight: 500;
    font-family: "Inter", 'sans-serif' !important;
    padding: 8px 0;
    border-bottom: 1px solid rgba(146, 147, 147, 1);
    text-align: left;
    margin-bottom: 0px !important;
}

.sector-wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sector-wrapper span, .date-wrapper span, .links-wrapper span {
    color: rgba(26, 26, 26, 1);
    font-size: 14px;
}

.sector-wrapper .sector-label, .date-wrapper .date-label {
    color: rgba(26, 26, 26, 1);
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 130%;
}

.sector-wrapper .sector-label {
    padding: 4px 0;
    text-align: center;
    background-color: rgba(33, 53, 100, 0.1);
    border-radius: 4px;
}

.date-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.links-wrapper {
    margin-top: 24px;
    padding-bottom: 16px;
}

.links-container {
    display: flex;
    justify-content: space-between;
}

.website-link-wrapper span {
    color: rgba(31, 53, 100, 1);
    font-size: 16px;
    line-height: 130%;
    font-weight: 500;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.desktop-summary-sector, .desktop-summary-date {
    display: none;
}

.desktop-list-header {
    display: none;
}

.portfolio-details summary img {
    max-height: 44px;
    max-width: 60%;
}


.portfolio-details summary .summary-desc {
    opacity: 100;
    transition: opacity .2s ease-in-out .25s;
}

.portfolio-details summary .summary-desc.show {
  opacity: 1;
  transition: opacity .6s ease .25s;
}

.portfolio-details summary .summary-desc.hide {
  opacity: 0;
  transition: opacity .2s ease;
}

@media(min-width: 1024px) {
    .portfolio-content-container {
        max-width: 1520px;
        margin: 0 auto;
    }

    .sector-btn .dropdown-content {
        left: -200px;
    }

    .portfolio-header-title {
        margin-top: 140px;
    }

    .filters-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 16px;
        row-gap: 0;
    }

    .all-button {
        flex-basis: 97px;
        height: 42px;
    }

    .state-buttons {
        order: 3;
        flex-basis: 161px;
    }

    .filters-dropdown .filters-dropdown-btn {
        padding: 10px 32px;
    }

    .portfolio-content {
        padding: 40px;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .filters-delete-buttons {
        flex-basis: 100%;
        order: 4;
        padding: 0;
    }

    .filters-delete-buttons:has(> :not(.clear-all)) {
        padding: 16px 0 0px;
    }

    .filters-dropdowns-wrapper {
        order: 2;
        flex-grow: 1;
    }

    .filters-dropdown.found-btn {
        justify-content: flex-start;
    }

    .desktop-summary-sector, .desktop-summary-date {
        display: block;
        flex-basis: 15%;
    }

    .portfolio-details:hover {
        background-color: rgba(33, 53, 100, 0.1);
    }

    .portfolio-details:open:hover {
        background-color: rgba(250, 249, 249, 1);
    }

    .portfolio-details summary, .list-header-wrapper {
        display: grid !important;
        grid-auto-columns: 160px 41% 15% 12%;
        grid-template-rows: 1fr;
        width: auto !important;
        justify-content: space-between;
        align-items: center;
    }

    .portfolio-details summary img {
        max-height: 58px;
        max-width: 220px;
        min-width: 140px;
    }

    .portfolio-details summary img, .list-header-wrapper .company {
        grid-column: 1 / 2;
    }

    .summary-desc, .list-header-wrapper .desc {
        grid-column: 2 / 3;
    }

    .desktop-summary-sector, .list-header-wrapper .sector {
        grid-column: 3 / 4;
    }

    .desktop-summary-date, .list-header-wrapper .entry-date {
        grid-column: 4;
    }

     .summary-desc {
        flex-basis: 40%;
     }

     summary .summary-desc {
        max-width: 100%;
        font-size: 14px;
     }

     .desktop-summary-sector {
        padding: 4px 20px;
        background-color: rgba(33, 53, 100, 0.1);
        border-radius: 4px; 
        height: 28px;
     }

    .desktop-summary-sector span {
        font-size: 14px;
        font-weight: 500;
        color: rgba(26, 26, 26, 1);
        display: block;
        text-align: center;
    }

    .desktop-summary-date span {
        font-size: 14px;
        color: rgba(33, 53, 100, 1);
    }

    .desktop-list-header {
        display: block;
        margin-top: 16px;
        padding: 22px 24px;
        background-color: rgba(225, 224, 231, 1);
        border-radius: 8px;
        border: 1px solid rgba(146, 147, 147, 1);
        position: sticky;
        top: 86px;
        left: 0;
        z-index: 10;
    }

    .list-header-wrapper {
        width: 92%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .list-header-wrapper span {
        font-size: 14px;
        color: rgba(26, 26, 26, 1);
    }

    .list-header-wrapper .sector, .list-header-wrapper .entry-date {
        flex-basis: 15%;
    }

    .list-header-wrapper .desc {
        flex-basis: 40%;
    }

    .details-content {
        margin-top: 24px;
        flex-direction: row;
        gap: 40px;
        width: 92%;
        transition: height 0.4s ease-in-out, opacity .4s ease-in-out;
    }

    .portfolio-title {
        font-size: 24px !important;
    }

    .desktop-left-column {
        flex-basis: 60%;
    }

    .desktop-right-column {
        display: flex;
        flex-wrap: wrap;
        flex-basis: 20%;
        row-gap: 40px;
    }

    .sector-wrapper {
        flex-basis: 100%;
        margin-top: 0;
    }

    .summary-desc {
        font-size: 18px;
    }

    .date-wrapper {
        flex-basis: 50%;
        margin-top: 0;
        flex-direction: column;
        gap: 24px;
        justify-content: flex-start;
    }

    .links-wrapper {
        flex-basis: 50%;
        margin-top: 0px;
        display: flex;
        row-gap: 24px;
        flex-wrap: wrap;
    }

    .links-container {
        flex-wrap: wrap;
        row-gap: 24px;
    }

    .portfolio-details.is-open summary .summary-desc, .portfolio-details.is-open summary .desktop-summary-sector, .portfolio-details.is-open summary .desktop-summary-date {
        opacity: 0;
        visibility: hidden;
    }

    .portfolio-details summary .summary-desc, .portfolio-details summary .desktop-summary-sector, .portfolio-details summary .desktop-summary-date {
        opacity: 100;
        visibility: visible;
        transition: opacity .4s ease-in-out;
    }

    .portfolio-details { 
        padding: 16px 24px;
    }

    .portfolio-details summary .summary-desc {
        margin-top: 0px !important;
    }

    .portfolio-details summary {
        height: 54px;
    }
    
    .summary-desc.content-desc {
        margin-top: 20px !important;
    }
}