
/* =========================================
   JATAV HISTORY - PROFILE LIST SYSTEM
========================================= */

.profile-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 38px 35px 55px;
    background: #fff;
    border-radius: 12px;
    color: #17233d;
    font-family: inherit;
}

/* INTRO */

.profile-intro {
    margin-bottom: 48px;
}

.profile-heading {
    border-bottom: 3px solid #2864ee;
    padding-bottom: 22px;
    margin-bottom: 25px;
}

.profile-eyebrow {
    display: inline-block;
    color: #2864ee;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.profile-heading h1 {
    font-size: clamp(27px, 4vw, 35px);
    line-height: 1.3;
    color: #101e3c;
    margin: 0 0 10px;
    font-weight: 750;
}

.profile-subtitle {
    font-size: 16px;
    color: #64718a;
    margin: 0;
    line-height: 1.7;
}

.profile-intro-box {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    background: #f4f7ff;
    border-left: 5px solid #2864ee;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 5px 18px rgba(20, 45, 90, .06);
}

.intro-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #e1eaff;
    color: #2864ee;
    border-radius: 50%;
    font-size: 20px;
}

.profile-intro-box p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.85;
    color: #34425e;
}

/* SECTION HEADING */

.profile-listing {
    margin-top: 42px;
}

.profile-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.profile-section-heading h2,
.profile-about h2 {
    font-size: 25px;
    color: #142544;
    margin: 0 0 8px;
}

.profile-section-heading p {
    color: #748097;
    font-size: 14px;
    margin: 0;
}

.profile-count {
    background: #f0f5ff;
    border: 1px solid #dce7ff;
    padding: 10px 17px;
    border-radius: 9px;
    text-align: center;
    flex-shrink: 0;
}

.profile-count strong {
    display: block;
    color: #245ce0;
    font-size: 24px;
}

.profile-count span {
    font-size: 11px;
    color: #65728c;
}

/* TABS */

.profile-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e5eaf2;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.profile-tab {
    border: 1px solid #d9e3f6;
    background: #f4f7fd;
    color: #334565;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.profile-tab span {
    margin-right: 5px;
}

.profile-tab:hover,
.profile-tab.active {
    background: #245fe8;
    border-color: #245fe8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(36, 95, 232, .2);
}

/* RESULT HEADING */

.profile-results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    gap: 12px;
}

.profile-results-heading h2 {
    font-size: 21px;
    color: #182a4a;
    margin: 0;
}

.profile-results-heading span {
    color: #2864ee;
    background: #eff4ff;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

/* CARD GRID */

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.profile-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5eaf3;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: #c7d7ff;
    box-shadow: 0 10px 28px rgba(25, 55, 110, .11);
}

.profile-image-link {
    display: block;
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: #edf2fb;
}

.profile-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.profile-card:hover .profile-image-link img {
    transform: scale(1.05);
}

.profile-card-content {
    padding: 17px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.profile-card-content h3 {
    font-size: 17px;
    line-height: 1.45;
    margin: 0 0 9px;
    color: #14284b;
}

.profile-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.profile-card-content h3 a:hover {
    color: #2864ee;
}

.profile-card-content p {
    color: #68758c;
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    flex: 1;
}

.profile-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #edf0f5;
    padding-top: 13px;
    color: #245fe8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.profile-read-more span {
    font-size: 19px;
    transition: transform .2s ease;
}

.profile-read-more:hover span {
    transform: translateX(4px);
}

/* EMPTY STATE */

.profile-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 20px;
    border: 1px dashed #cbd8ed;
    border-radius: 12px;
    background: #f8faff;
}

.empty-icon {
    color: #2864ee;
    font-size: 34px;
    margin-bottom: 10px;
}

.profile-empty h3 {
    color: #1c3154;
    margin: 0 0 8px;
}

.profile-empty p {
    color: #71809a;
    font-size: 14px;
    margin: 0;
    line-height: 1.7;
}

/* ABOUT */

.profile-about {
    margin-top: 48px;
    padding: 27px;
    background: #f5f8ff;
    border: 1px solid #e1eaff;
    border-radius: 12px;
}

.profile-about p {
    font-size: 15px;
    line-height: 1.85;
    color: #53617a;
    margin: 10px 0 0;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .profile-page {
        padding: 28px 22px 40px;
    }

    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .profile-image-link {
        height: 175px;
    }
}

@media (max-width: 520px) {
    .profile-page {
        padding: 23px 15px 35px;
        border-radius: 0;
    }

    .profile-heading h1 {
        font-size: 27px;
    }

    .profile-subtitle {
        font-size: 14px;
    }

    .profile-intro-box {
        padding: 17px 14px;
        gap: 11px;
    }

    .profile-intro-box p {
        font-size: 14px;
    }

    .profile-section-heading {
        align-items: flex-start;
    }

    .profile-section-heading h2 {
        font-size: 21px;
    }

    .profile-count {
        padding: 8px 11px;
    }

    .profile-tabs {
        gap: 8px;
    }

    .profile-tab {
        flex: 1;
        padding: 12px 7px;
        font-size: 12px;
    }

    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .profile-image-link {
        height: 125px;
    }

    .profile-card-content {
        padding: 12px 10px;
    }

    .profile-card-content h3 {
        font-size: 14px;
    }

    .profile-card-content p {
        font-size: 12px;
        line-height: 1.5;
    }

    .profile-read-more {
        font-size: 11px;
    }

    .profile-about {
        padding: 19px;
    }
}


/* CENTER & BIG PROFILE BUTTONS */

.profile-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 25px auto 30px;
    padding-bottom: 20px;
}

.profile-tab {
    min-width: 220px;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 750;
    border-radius: 9px;
}

/* MOBILE */
@media (max-width: 520px) {
    .profile-tabs {
        gap: 10px;
    }

    .profile-tab {
        min-width: 0;
        flex: 1;
        padding: 14px 8px;
        font-size: 13px;
    }
}
