/* Fonts */
@font-face {
    font-family: 'Ivy Ora';
    src: url('../fonts/IvyOraDisplay-Light.woff2') format('woff2'),
            url('../fonts/IvyOraDisplay-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Ivy Ora';
    src: url('../fonts/IvyOraDisplay-Regular.woff2') format('woff2'),
            url('../fonts/IvyOraDisplay-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
  
@font-face {
    font-family: 'Ivy Ora';
    src: url('../fonts/IvyOraDisplay-Bold.woff2') format('woff2'),
            url('../fonts/IvyOraDisplay-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Ivy Ora', serif;
    letter-spacing: 0.5px;
    color: #000;
    background: #fff;
}
strong {
    font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
}
h1 {
    font-size: 2.75rem;

    @media screen and (min-width: 1200px) {
        font-size: 4.75rem;
    }
}
h2, h3 {
    font-size: 2.5rem;

    @media screen and (min-width: 1200px) {
        font-size: 3rem;
    }
}
a {
    text-decoration: none;
    color: #000;
}
button, .btn {
    font-family: 'Ivy Ora', serif;
    border-radius: 9999px;
    cursor: pointer;
}
input, select {
    font-family: 'Ivy Ora', serif;
    box-sizing: border-box;
}
.container {
    margin: 0 auto;
    max-width: 1460px;

    @media screen and (min-width: 1200px) {
        width: 75%;
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    color: #4F4A46;
    border-bottom: 1px solid #ccc;

    @media screen and (min-width: 1200px) {
        padding: 1.5rem 3rem;
    }
}
.logo {
    font-size: 20px;

    @media screen and (min-width: 1200px) {
        font-size: 30px;
    }
}
  
/* Hero */
.hero {
    position: relative;
    background: url('../assets/banner.webp') center/cover no-repeat;
    height: 60vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-bottom: 5em;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 1;
}
.hero-overlay {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}
.hero-overlay h1 {
    font-weight: 300;
    margin: 0;
}
.back-link span {
    display: none;

    @media screen and (min-width: 1200px) {
        display: inline-block;
    }
}
.scroll-arrow {
    display: inline-block;
    margin-top: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid white;
    position: relative;
    background: transparent;
    cursor: pointer;
    transition: background 0.5s;
}
.scroll-arrow:hover {
    background: rgb(60, 60, 60);
    border: 1px solid rgb(60, 60, 60);
}
.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 10px;
    background-color: white;
}
.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 19px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: translateX(-50%) rotate(-45deg);
}
  
/* Intro */
.intro {
    padding: 2rem;

    @media screen and (min-width: 1200px) {
        h2 {
            max-width: 60%;
        }
    }
}
  
/* Leaders */
.leaders {
    padding: 2rem 2rem 4rem;
    background: #F7F7F7;
}
.leaders h2 {
    margin-bottom: 1rem;
}
.leaders p {
    font-size: 1rem;
    margin: 0;
}
.controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin: 2.6rem 0 1rem;
}
.search-container {
    position: relative;
    width: 100%;
}
.search-container input {
    padding-left: 3.5rem;
    height: 62px;
    font-size: 1.25rem;
    border: 1px solid #CBD5E1;
    border-radius: 9999px;
    width: 100%;
}
.search-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 24px;
    width: 12px;
    height: 12px;
    border: 2px solid #666;
    border-radius: 50%;
    transform: translateY(-50%);
}
.search-container::after {
    content: '';
    position: absolute;
    top: 59%;
    left: 36px;
    width: 6px;
    height: 2px;
    background-color: #666;
    transform: rotate(45deg);
    transform-origin: left center;
}
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.select-wrapper {
    position: relative;
    display: none;
    width: max-content;
}
.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.5rem 2.5rem 0.5rem 1.5rem;
    font-size: 1rem;
    height: 49px;
    width: 238px;
    border: 1px solid #CBD5E1;
    border-radius: 9999px;
    background-color: #fff;
    cursor: pointer;
}
.select-wrapper::after {
    content: '';
    position: absolute;
    top: 48%;
    right: 2rem;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-bottom: 2px solid #555;
    border-right: 2px solid #555;
    pointer-events: none;
}
.pagination-status {
    font-weight: 400;
    font-size: 1.25rem;
    color: #333;
    white-space: nowrap;
}
.cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: minmax(155px, 1fr);
    gap: 1.5rem;
}

@media screen and (min-width: 500px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 768px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .cards {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media screen and (min-width: 1200px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (min-width: 1400px) {
    .cards {
        grid-template-columns: repeat(4, 1fr);
    }
}
.card-wrapper {
    display: flex;
    justify-content: center;
}
.card {
    height: 100%;
    background: #fff;
    padding: 0;
    border-radius: 20px;
    cursor: pointer;
    overflow: hidden;
}
.card img {
    width: 100%;
    min-height: 190px;
    max-height: 190px;
    object-fit: cover;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    transition: transform 0.3s ease;
}
.card:hover img {
    transform: scale(1.1);
}
.card-info {
    position: relative;
    padding: 2rem 1.5rem 2rem;
    background: #fff;
    margin-top: -5px;
}
.card-info h4 {
    margin: 0;
    padding-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}
.card-company {
    padding-top: 0.2rem;
}
.lazy-wrapper {
    position: relative;
    overflow: hidden;
}
.lazy-image {
    display: block;
    width: 100%;
    transition: filter 0.6s ease, opacity 0.4s ease;
    filter: blur(10px);
    opacity: 0.5;
}
.lazy-image.loaded {
    filter: blur(0);
    opacity: 1;
}
#loadMore {
    display: block;
    margin: 3rem auto;
    padding: 0.8rem 2rem;
    font-size: 1.25rem;
    text-align: center;
    border: 1px solid #000;
    transition: background 0.5s;
}
#loadMore:hover {
    background: rgb(60, 60, 60);
    border: 1px solid rgb(60, 60, 60);
    color: #fff;
}

/* Modal */
body.modal-open {
    overflow: hidden;
    height: 100vh;
    width: 100%;
}
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background: rgba(0,0,0,0.7);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 0 0;
}
.modal.show {
    display: flex;
}
.modal-toolbar {
    position: relative;
    display: flex;
    max-width: 900px;
}
.modal-scroll {
    overflow: hidden;
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 0.3rem;
}
.modal-content {
    position: relative;
    background: white;
    margin: 0 1.5rem;
    border-radius: 20px;
    max-width: 1000px;
    width: 90%;

    @media screen and (min-width: 580px) {
        margin: 0;
    }
}

.modal-profile {
    border-radius: 20px;

    @media screen and (min-width: 580px) {
        display: flex;
        gap: 1.5rem;
    }
}
#modalImg {
    max-height: 260px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;

    @media screen and (min-width: 580px) {
        max-width: 50%;
        border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px;
        margin: 1.5rem 1.5rem 0;
    }
}
.show-profile-link {
    color: #fff;
    cursor: pointer;
}
.show-profile-link:hover {
    color: #ccc;
}
.modal-info {
    padding: 1.5rem;

    @media screen and (min-width: 580px) {
        padding: 1.5rem 1.5rem 1.5rem 0;
        max-width: 50%;
    }
}
.modal-info h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;

    @media screen and (min-width: 580px) {
        margin: 1rem 0 0;
    }
}
.modal-content img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.close-modal, .back-to-related, .linkedin-link {
    position: absolute;
    height: 52px;
    width: 52px;
    top: -5rem;
    right: 0;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 100%;
    font-size: 2.2rem;
    cursor: pointer;
    transition: background 0.5s;
}
.back-to-related {
    left: 0;
}
.back-to-related::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 22px;
    transform: translateY(-50%) rotate(135deg);
    width: 9px;
    height: 9px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    pointer-events: none;
}
.linkedin-link {
    left: 70px;
}
.close-modal:hover,
.linkedin-link:hover,
.back-to-related:hover {
    background: #333;
}
#relatedModal .close-modal {
   top: -4rem;
}
#relatedModal .modal-content {
    padding: 0;
    background: transparent;
}
#profileModal .modal-toolbar {
    width: 90%;
}
#relatedAttendeesHeading {
    padding: 1rem 2rem;
    background: #000;
    border-radius: 9999px;
    color: #fff;
    font-size: 1.2rem;
}
#relatedModal .modal-content img {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
#relatedModal .card-info h4 {
    padding-bottom: 0;
}
#relatedModal .card-info p, #relatedModal .card-info strong {
    font-size: 0.9rem;
}
#relatedAttendeesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
#relatedAttendeesGrid .card {
    cursor: pointer;
}
.no-results {
    color: #666;
}

/* Related */
.profile-related
{
    padding: 1.5rem;
    margin-top: 1.5rem;
    background-color: #F7F7F7;
}

.profile-related h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;

    @media screen and (min-width: 580px) {
        margin: 1rem 0;
    }
}

/* Accordion Styles */
.accordion {
    padding: 1.5rem;
}

.accordion-toggle {
    position: relative;
    width: 100%;
    min-height: 60px;
    background: #F8FAFC;
    border: none;
    border-radius: 0.8rem;
    text-align: left;
    padding: 0.75rem 5rem 0.75rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1rem;
}
.accordion-toggle.active {
    border-radius: 0.8rem 0.8rem 0 0;
}
.accordion-toggle::before {
    content: "";
    position: absolute;
    height: 28px;
    width: 28px;
    top: 1rem;
    right: 1rem;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 100%;
    font-size: 2rem;
    cursor: pointer;
}
.accordion-toggle::after {
    content: '';
    position: absolute;
    top: 29px;
    right: 27px;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-bottom: 1px solid #fff;
    border-right: 1px solid #fff;
    pointer-events: none;
}
.accordion-toggle.active::after {
    top: 32px;
    transform: translateY(-50%) rotate(225deg);
}
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1rem;
    background: #F8FAFC;
    border-top-right-radius: 0;
    border-radius: 0 0 0.8rem 0.8rem;
}
.accordion-toggle.active + .accordion-panel {
    max-height: 300px;
    padding: 0.75rem 1rem;
}
  
/* Connections */
.connections {
    background: #626262;
    color: #fff;
    padding: 2rem;
    font-weight: 300;
    text-align: center;
}
  
/* Location */
.location {
    padding: 6rem 2rem;
    display: flex;
}
.location-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;

    @media screen and (min-width: 1200px) {
        flex-direction: row;
    }
}
.location-content img {
    width: 40%;
}
.location-content h3 {
    margin-top: 0;
}
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid black;
    transition: background 0.5s;
}
.btn:hover {
    background: rgb(60, 60, 60);
    border: 1px solid rgb(60, 60, 60);
    color: #fff;
}

/* Partners */
.partners {
    background: #F7F7F7;
    padding: 4rem 0;
    text-align: center;

    @media screen and (min-width: 1200px) {
        padding: 4rem 0 6rem;
    }
}
.partners h3 {
    margin-top: 0;
}
.logos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 1rem;

    @media screen and (min-width: 1200px) {
        flex-direction: row;
    }
}
.logos img {
    max-width: 300px;
    transition: transform 0.2s ease;
}
.logos img:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 5rem 2rem;
}
.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    @media screen and (min-width: 1200px) {
        flex-direction: row;
    }
}
.footer a {
    color: #fff;
    margin-right: 1rem;
}
.footer a:hover {
    color: #ccc;
}
.footer .logo {
    font-size: 1.5rem;

    @media screen and (min-width: 1200px) {
        font-size: 1.3rem;
    }
}
.footer-left .socials {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
.footer-right .column-one, 
.footer-right .column-two {
    display: flex;
    flex-direction: column;
    min-width: 20rem;

    a {
        padding: 0.6rem 0;
    }
}
.copyright {
    font-size: 13px;
    margin-top: 4rem;

    @media screen and (min-width: 1200px) {
        display: flex;
        justify-content: space-between;
    }
}

/* Social */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.linkedin-icon {
    width: 16px;
    height: 16px;
    padding: 4px;
    background: white;
    border-radius: 6px;
    fill: currentColor;
    color: #000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}
.linkedin-icon:hover {
    background: #ccc;
    transform: scale(1.05);
}

.hidden
{
    display: none;
}