/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Grid 3 cột cho danh sách đối tác */
.ypd-partners-client-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.ypd-partners-client-grid h1,
.ypd-partners-client-grid h2,
.ypd-partners-client-grid h3,
.ypd-partners-client-grid h4,
.ypd-partners-client-grid h5,
.ypd-partners-client-grid h6 {
    font-family: inherit;
}

.ypd-header {
    padding-top: 100px;
}

.ypd-header .ypd-logo {
    display: flex;
    justify-content: center;
}

.ypd-header .ypd-header-title {
    font-size: 3rem;
    font-weight: 600;
    margin: 1rem auto;
    text-align: center;
}

.ypd-partners-client-grid-state {
    margin-top: 4rem;
}

.ypd-partners-client-grid-state .ypd-partner-state-heading {
    font-size: 2.5rem;
}

.ypd-partner-client-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    height: 100%;
}

.ypd-partner-client-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
}

.ypd-partner-client-result-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ypd-partner-thumb {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ypd-partner-thumb img {
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
}

.ypd-partner-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ypd-partner-detail {
    padding: 18px 18px 12px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ypd-partner-detail .profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.ypd-partner-detail .profile-header .profile-title {
    display: flex;
    align-items: center;
}

.ypd-partner-detail .profile-header .profile-name {
    display: flex;
    align-items: center;
    justify-content: start;
    color: #000;
    font-weight: 600;
}

.ypd-partner-detail .profile-header .profile-name h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    display: inline-block;
}

.ypd-partner-detail .profile-header .profile-logo {
    margin-right: 15px;
    align-items: center;
    justify-content: center;
}

.ypd-partner-detail .profile-header .ypd-partner-logo {
    max-width: 48px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
}

.ypd-partner-detail .profile-header .tick-badge {
    width: 30px;
    height: 30px;
    margin-left: 8px;
    vertical-align: middle;
}

.ypd-partner-detail .ypd-installer-information ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ypd-partner-detail .ypd-installer-information li {
    font-size: 0.97rem;
    color: #444;
    margin-bottom: 4px;
    word-break: break-word;
}

.ypd-partner-detail .ypd-installer-information a {
    color: #0073aa;
    text-decoration: none;
    display: flex;
}

.ypd-partner-detail .ypd-installer-information a span.icon{
    flex-basis: 24px;
    margin-right: 5px;
}
.ypd-partner-detail .ypd-installer-information a:hover {
    text-decoration: underline;
}

.ypd-partner-client-result {
    z-index: 1;
}

.ypd-partner-client-result-content {
    border: 4px solid transparent;
    background: #ffffff;
    background-clip: padding-box;
    position: relative;
    border-radius: 8px;
}

.ypd-partner-client-result-content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -4px;
    border-radius: inherit;
    background: linear-gradient(81.11deg, #00BDF5 0.23%, #A200C7 100%);
}

.ypd-search-and-filter .form-title{
    margin-top: 35px;
    text-align: center;
    font-size: 1.5rem;
}
.ypd-search-and-filter form{
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.ypd-search-and-filter form .form-group{
    display: flex;
    padding: 6px;
    border-radius: 67px;
    border: 1px solid #cccccc;
    max-width: 450px;
    width: 450px;
    margin: 0 auto;
}

.ypd-search-and-filter form input{
    border: 0;
    flex-grow: 1;
    font-size: 1.125rem;
    padding: .5rem 1.5rem;
    background: transparent;
}

.ypd-search-and-filter form input:focus{
    outline: none;
}

.ypd-search-and-filter form button[type="submit"]{
    width: auto;
    height: 48px;
    border: 0;
    color: #ffffff;
    border-radius: 48px;
    background-size: 200% auto;
    transition: .5s;
    background-image: linear-gradient(to right, #f67600 0%, #ff2e00 50%, #f67600 100%);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-basis: 100px;
}

.ypd-search-and-filter form button[type="submit"]{
    display: block;
}


.ypd-search-and-filter .ypd-state-filters{
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.ypd-search-and-filter .ypd-state-filters .ypd-state-filter{
    border-radius: 48px;
    border: 1px solid #000000;
    cursor: pointer;
    font-size: 20px;
    line-height: 28px;
    padding: .5rem 1.5rem;
    margin-left: .25rem;
    margin-right: .25rem;
}

.ypd-search-and-filter .ypd-state-filters .ypd-state-filter.active{
    background-image: linear-gradient(to right, #00bdf5 0%, #a200c7 100%);
    border: none;
    color: #ffffff;
}

@media (max-width: 900px) {
    .ypd-partners-client-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ypd-partners-client-grid {
        grid-template-columns: 1fr;
    }

    .profile-logo {
        width: 36px;
        height: 36px;
    }

    .ypd-partner-logo {
        max-width: 28px;
        max-height: 28px;
    }
}
