﻿/* =========================================================
   JainsWorld - Latest Profiles
   Horizontal Profile Cards (2 per row)
   Clean • Readable • Professional
   ========================================================= */

/* ---------------------------------------------------------
   SECTION
   --------------------------------------------------------- */
.jwo-latest-profiles {
    padding: 70px 0 80px;
    background: var(--secondary-color);
}

/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */
.jwo-latest-card {
    display: flex;
    width: 100%;
    height: 340px;
    background: var(--white-color);
    border: 1px solid var(--divider-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

    .jwo-latest-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 54, 0, 0.22);
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
    }

/* ---------------------------------------------------------
   IMAGE
   --------------------------------------------------------- */
.jwo-latest-image {
    position: relative;
    flex: 0 0 38%;
    height: 100%;
    background: #f2efed;
    overflow: hidden;
}

    .jwo-latest-image figure,
    .jwo-latest-image figure a {
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .jwo-latest-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: transform 550ms ease;
    }

.jwo-latest-card:hover .jwo-latest-image img {
    transform: scale(1.03);
}

/* ---------------------------------------------------------
   VERIFIED BADGE
   --------------------------------------------------------- */
.jwo-latest-verified {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    border-radius: 30px;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

    .jwo-latest-verified i {
        color: #198754;
        font-size: 12px;
    }

/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */
.jwo-latest-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px 24px 20px;
}

/* ---------------------------------------------------------
   TOP LINE
   --------------------------------------------------------- */
.jwo-latest-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.jwo-latest-eyebrow {
    color: var(--accent-color);
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
}

.jwo-latest-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #99928f;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

    .jwo-latest-date i {
        color: var(--accent-color);
        font-size: 11px;
    }

/* ---------------------------------------------------------
   NAME
   --------------------------------------------------------- */
.jwo-latest-content h2 {
    margin: 0;
}

    .jwo-latest-content h2 a {
        display: block;
        color: var(--primary-color);
        font-family: "Old Standard TT", Georgia, serif;
        font-size: 26px;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -0.3px;
        text-decoration: none;
        transition: color 250ms ease;
    }

        .jwo-latest-content h2 a:hover {
            color: var(--accent-color);
        }

/* ---------------------------------------------------------
   LOCATION
   --------------------------------------------------------- */
.jwo-latest-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 14px;
    color: var(--text-color);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

    .jwo-latest-location i {
        flex: 0 0 auto;
        color: var(--accent-color);
        font-size: 12px;
    }

    .jwo-latest-location span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ---------------------------------------------------------
   FACTS (Age / Height / Status)
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   FACTS
   2 facts per row, Education gets its own row
   --------------------------------------------------------- */
.jwo-latest-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.jwo-latest-fact {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 8px;
    background: #faf8f7;
    border: 1px solid #eee9e6;
    border-radius: 10px;
}

.jwo-latest-fact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    background: var(--white-color);
    border-radius: 7px;
    color: var(--accent-color);
    font-size: 11px;
}

.jwo-latest-fact > span:last-child {
    min-width: 0;
    flex: 1;
}

.jwo-latest-fact small {
    display: block;
    margin-bottom: 2px;
    color: #9a9491;
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1;
}

.jwo-latest-fact strong {
    display: block;
    color: var(--primary-color);
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Education occupies the full second row */
.jwo-latest-fact:nth-child(3) {
    grid-column: 1 / -1;
}

/* ---------------------------------------------------------
   META (Education / Profession)
   --------------------------------------------------------- */
.jwo-latest-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    margin-top: auto;
    padding-top: 13px;
    border-top: 1px solid var(--divider-color);
}

    .jwo-latest-meta div:last-child {
        text-align: right;
    }

    .jwo-latest-meta span {
        display: block;
        margin-bottom: 3px;
        color: #99928f;
        font-family: "DM Sans", sans-serif;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        line-height: 1.2;
    }

    .jwo-latest-meta strong {
        display: block;
        max-width: 160px;
        color: var(--primary-color);
        font-family: "DM Sans", sans-serif;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ---------------------------------------------------------
   ACTION BUTTON
   --------------------------------------------------------- */
.jwo-latest-action {
    margin-top: 14px;
}

.jwo-latest-view {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    background: var(--primary-color);
    color: var(--white-color);
    border-radius: 9px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background 250ms ease, transform 250ms ease;
}

    .jwo-latest-view i {
        font-size: 11px;
        transition: transform 250ms ease;
    }

    .jwo-latest-view:hover {
        background: var(--accent-color);
        color: var(--white-color);
    }

        .jwo-latest-view:hover i {
            transform: translateX(4px);
        }

/* ---------------------------------------------------------
   PAGINATION
   --------------------------------------------------------- */
.jwo-latest-pagination {
    margin-top: 48px;
}

    .jwo-latest-pagination .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .jwo-latest-pagination .page-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        background: var(--white-color);
        color: var(--primary-color);
        border: 1px solid var(--divider-color);
        border-radius: 9px;
        font-family: "DM Sans", sans-serif;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        transition: all 250ms ease;
    }

        .jwo-latest-pagination .page-link:hover {
            background: var(--primary-color);
            color: var(--white-color);
            border-color: var(--primary-color);
        }

        .jwo-latest-pagination .page-item.active .page-link,
        .jwo-latest-pagination .page-link.active {
            background: var(--accent-color);
            color: var(--white-color);
            border-color: var(--accent-color);
            box-shadow: 0 6px 18px rgba(255, 54, 0, 0.2);
        }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (min-width: 1400px) {
    .jwo-latest-profiles {
        padding: 80px 0 90px;
    }

    .jwo-latest-card {
        height: 355px;
    }

    .jwo-latest-content {
        padding: 24px 26px 22px;
    }

        .jwo-latest-content h2 a {
            font-size: 28px;
        }
}

@media (max-width: 1199px) {
    .jwo-latest-card {
        height: 325px;
    }

    .jwo-latest-content {
        padding: 20px 20px 18px;
    }

        .jwo-latest-content h2 a {
            font-size: 24px;
        }

    .jwo-latest-fact {
        padding: 8px 7px;
        gap: 6px;
    }

    .jwo-latest-fact-icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 991px) {
    .jwo-latest-profiles {
        padding: 55px 0 65px;
    }

    .jwo-latest-card {
        height: 310px;
    }

    .jwo-latest-content h2 a {
        font-size: 23px;
    }
}

@media (max-width: 767px) {
    .jwo-latest-profiles {
        padding: 45px 0 55px;
    }

    .jwo-latest-card {
        height: 300px;
        border-radius: 18px;
    }

    .jwo-latest-content {
        padding: 18px 16px 16px;
    }

        .jwo-latest-content h2 a {
            font-size: 22px;
        }

    .jwo-latest-location {
        font-size: 12px;
        margin: 6px 0 12px;
    }

    .jwo-latest-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .jwo-latest-fact {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 8px 6px;
        gap: 6px;
    }

    .jwo-latest-fact-icon {
        margin: 0;
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
    }

    .jwo-latest-fact small {
        font-size: 9px;
    }

    .jwo-latest-fact strong {
        font-size: 12px;
    }

    .jwo-latest-meta strong {
        font-size: 12px;
    }

    .jwo-latest-view {
        font-size: 12px;
        padding: 10px 12px;
    }

    .jwo-latest-pagination {
        margin-top: 36px;
    }
}

@media (max-width: 480px) {
    .jwo-latest-card {
        display: block;
        height: auto;
    }

    .jwo-latest-image {
        width: 100%;
        height: 240px;
        flex: none;
    }

    .jwo-latest-content {
        padding: 18px 18px 18px;
    }

        .jwo-latest-content h2 a {
            font-size: 24px;
        }

    .jwo-latest-fact {
        flex-direction: row;
        text-align: left;
    }
}

/* ---------------------------------------------------------
   ACCESSIBILITY & MOTION
   --------------------------------------------------------- */
.jwo-latest-card a:focus-visible,
.jwo-latest-pagination .page-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .jwo-latest-card,
    .jwo-latest-image img,
    .jwo-latest-view,
    .jwo-latest-view i,
    .jwo-latest-content h2 a {
        transition: none;
    }
}
