/* ============================================================
   CE TEAM — Complete Stylesheet
   Combine Estate Child Theme
   ============================================================ */

/* ============================================================
   ARCHIVE PAGE — Our Team
   ============================================================ */

.ce-team-archive { background: #ffffff; }

.ce-team-archive__hero {
    background: linear-gradient(135deg, #0a0f59 0%, #1a237e 60%, #c9a84c 100%);
    padding: 80px 20px;
    text-align: center;
}

.ce-team-archive__hero-inner { max-width: 700px; margin: 0 auto; }

.ce-team-archive__title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.ce-team-archive__subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0;
}

.ce-team-archive__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 80px;
}

.ce-team-archive__section { margin-bottom: 56px; }

.ce-team-archive__section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ce-team-archive__section-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    white-space: nowrap;
}

.ce-team-archive__section--leadership .ce-team-archive__section-label { color: #c9a84c; }
.ce-team-archive__section--sales .ce-team-archive__section-label { color: #0a0f59; }
.ce-team-archive__section--support .ce-team-archive__section-label { color: #555; }
.ce-team-archive__section--other .ce-team-archive__section-label { color: #888; }

.ce-team-archive__section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(201,168,76,0.4), transparent);
}

.ce-team-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.ce-team-archive__grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ce-team-archive__empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
    font-size: 16px;
}

/* ============================================================
   TEAM CARD
   ============================================================ */

.ce-team-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(10,15,89,0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ce-team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10,15,89,0.15);
}

.ce-team-card--featured { border-top: 3px solid #c9a84c; }

.ce-team-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #c9a84c, #e8c96e);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.ce-team-card__photo {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f2f8;
    flex-shrink: 0;
}

.ce-team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.ce-team-card:hover .ce-team-card__photo img { transform: scale(1.04); }

.ce-team-card__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ce-team-card__info { padding: 18px 18px 6px; flex: 1; }

.ce-team-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #0a0f59;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ce-team-card__name a { color: inherit; text-decoration: none; }
.ce-team-card__name a:hover { color: #c9a84c; }

.ce-team-card__designation {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c9a84c;
    margin: 0 0 10px;
}

.ce-team-card__experience {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    margin: 0 0 6px;
}

.ce-team-card__experience svg { width: 13px; height: 13px; fill: #aaa; flex-shrink: 0; }

.ce-team-card__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    margin: 0;
}

.ce-team-card__phone:hover { color: #0a0f59; }
.ce-team-card__phone svg { width: 13px; height: 13px; fill: #aaa; flex-shrink: 0; }

.ce-team-card__actions {
    display: flex;
    gap: 8px;
    padding: 14px 18px 18px;
}

.ce-team-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s;
    flex: 1;
    white-space: nowrap;
}

.ce-team-card__btn:hover { opacity: 0.85; }
.ce-team-card__btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.ce-team-card__btn--whatsapp { background: #25D366; color: #ffffff; }
.ce-team-card__btn--profile { background: #0a0f59; color: #ffffff; }

/* ============================================================
   SINGLE PROFILE PAGE — ce-profile__ classes
   ============================================================ */

.ce-profile { background: #ffffff; }

.ce-profile__cover {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #0a0f59 0%, #1a237e 60%, #c9a84c 100%);
    overflow: hidden;
    position: relative;
}

.ce-profile__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.ce-profile__cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,15,89,0.3), rgba(10,15,89,0.6));
}

.ce-profile__wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.ce-profile__header-card {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    margin-top: -60px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.ce-profile__photo-wrap {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    overflow: hidden;
    background: #f0f2f8;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.ce-profile__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ce-profile__title-block { padding-bottom: 8px; }

.ce-profile__name {
    font-size: 30px;
    font-weight: 800;
    color: #0a0f59;
    margin: 0 0 4px;
}

.ce-profile__designation {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c9a84c;
    margin: 0;
}

.ce-profile__meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}

.ce-profile__meta-tag {
    background: #f0f2f8;
    color: #0a0f59;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.ce-profile__quick-actions {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.ce-profile__quick-actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ce-profile__quick-actions a:first-child {
    background: #f0f2f8;
    color: #0a0f59;
}

.ce-profile__quick-actions a:last-child {
    background: #25D366;
    color: #ffffff;
}

.ce-profile__quick-actions a:hover { opacity: 0.85; }

/* Main layout */
.ce-profile__main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.ce-profile__section-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a0f59;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f8;
}

.ce-profile__bio { margin-bottom: 32px; }

.ce-profile__bio-text p {
    font-size: 15px;
    color: #555;
    line-height: 1.75;
    margin: 0 0 16px;
}

.ce-profile__back {
    margin-top: 32px;
}

.ce-profile__back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #0a0f59;
    text-decoration: none;
}

.ce-profile__back a:hover { color: #c9a84c; }

/* Sidebar */
.ce-profile__sidebar { position: sticky; top: 24px; }

/* ============================================================
   CONTACT SIDEBAR
   ============================================================ */

.ce-contact-sidebar {
    background: #f8f9ff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ce-contact-sidebar__section {
    padding: 20px 22px;
    border-bottom: 1px solid #eef0f8;
}

.ce-contact-sidebar__section:last-child { border-bottom: none; }

.ce-contact-sidebar__heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #aaa;
    margin: 0 0 14px;
}

.ce-contact-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ce-contact-sidebar__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ce-contact-sidebar__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.ce-contact-sidebar__icon svg { width: 15px; height: 15px; fill: #c9a84c; }

.ce-contact-sidebar__item-content { flex: 1; min-width: 0; }

.ce-contact-sidebar__label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaa;
    margin-bottom: 2px;
}

.ce-contact-sidebar__value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0a0f59;
    text-decoration: none;
    word-break: break-all;
}

.ce-contact-sidebar__value:hover { color: #c9a84c; }

.ce-contact-sidebar__whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    background: #25D366;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: opacity 0.2s;
}

.ce-contact-sidebar__whatsapp-btn:hover { opacity: 0.88; color: #ffffff; }
.ce-contact-sidebar__whatsapp-btn svg { width: 18px; height: 18px; fill: #ffffff; }

.ce-contact-sidebar__social { display: flex; gap: 10px; }

.ce-contact-sidebar__social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.ce-contact-sidebar__social-link:hover { opacity: 0.85; transform: translateY(-2px); }
.ce-contact-sidebar__social-link--fb { background: #1877F2; }
.ce-contact-sidebar__social-link--ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ce-contact-sidebar__social-link--li { background: #0A66C2; }
.ce-contact-sidebar__social-link svg { width: 16px; height: 16px; fill: #ffffff; }

/* Inquiry form */
.ce-inquiry-form { display: flex; flex-direction: column; gap: 10px; }
.ce-inquiry-form__field { display: flex; flex-direction: column; }

.ce-inquiry-form__input {
    padding: 10px 14px;
    border: 1.5px solid #e0e4f0;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #ffffff;
    transition: border-color 0.2s;
    width: 100%;
    font-family: inherit;
}

.ce-inquiry-form__input:focus { outline: none; border-color: #c9a84c; }
.ce-inquiry-form__textarea { resize: vertical; min-height: 80px; }

.ce-inquiry-form__submit {
    background: #0a0f59;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    font-family: inherit;
}

.ce-inquiry-form__submit:hover { opacity: 0.88; }

/* ============================================================
   PROPERTIES SECTION
   ============================================================ */

.ce-team-properties { margin-top: 32px; }

.ce-team-properties__heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a0f59;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f8;
}

.ce-team-properties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}.ce-team-property-card,
.ce-property-card {
    border: 1px solid #eef0f8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
    background: #ffffff;
}

.ce-team-property-card:hover,
.ce-property-card:hover {
    box-shadow: 0 6px 24px rgba(10,15,89,0.1);
    transform: translateY(-2px);
}

.ce-team-property-card__image,
.ce-property-card__image {
    width: 100%;
    height: 160px !important;
    max-height: 160px !important;
    overflow: hidden;
    background: #f0f2f8;
}

.ce-team-property-card__image img,
.ce-property-card__image img {
    width: 100%;
    height: 160px !important;
    max-height: 160px !important;
    object-fit: cover;
    display: block;
}

.ce-team-property-card__info,
.ce-property-card__info {
    padding: 12px 14px;
}

.ce-team-property-card__price,
.ce-property-card__price {
    font-size: 15px;
    font-weight: 700;
    color: #0a0f59;
    margin: 0 0 4px;
}

.ce-team-property-card__title,
.ce-property-card__title {
    font-size: 12px;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

.ce-property-card__type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #c9a84c;
    margin: 0 0 4px;
    display: block;
}

.ce-property-card__city {
    font-size: 11px;
    color: #999;
    margin: 4px 0 0;
}

/* Both class names — template uses ce-property-card */
.ce-team-property-card,
.ce-property-card {
    border: 1px solid #eef0f8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
    background: #ffffff;
}

.ce-team-property-card:hover,
.ce-property-card:hover {
    box-shadow: 0 6px 24px rgba(10,15,89,0.1);
    transform: translateY(-2px);
}

.ce-team-property-card__image,
.ce-property-card__image {
    width: 100%;
    height: 160px !important;
    max-height: 160px !important;
    overflow: hidden;
    background: #f0f2f8;
}

.ce-team-property-card__image img,
.ce-property-card__image img {
    width: 100%;
    height: 100% !important;
    max-height: 160px !important;
    object-fit: cover;
    display: block;
}

.ce-team-property-card__info,
.ce-property-card__info {
    padding: 12px 14px;
}

.ce-team-property-card__price,
.ce-property-card__price {
    font-size: 15px;
    font-weight: 700;
    color: #0a0f59;
    margin: 0 0 4px;
}

.ce-team-property-card__title,
.ce-property-card__title {
    font-size: 12px;
    color: #777;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ce-property-card__type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #c9a84c;
    margin: 0 0 4px;
    display: block;
}

.ce-property-card__city {
    font-size: 11px;
    color: #999;
    margin: 4px 0 0;
}

/* ============================================================
   PROPERTY PAGE WIDGET
   ============================================================ */

.ce-property-agent-widget {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(10,15,89,0.09);
    margin-bottom: 24px;
    border-top: 3px solid #c9a84c;
}

.ce-property-agent-widget__heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #c9a84c;
    margin: 0 0 16px;
}

.ce-property-agent-widget__card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ce-property-agent-widget__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f2f8;
}

.ce-property-agent-widget__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ce-property-agent-widget__name {
    font-size: 15px;
    font-weight: 700;
    color: #0a0f59;
    margin: 0 0 2px;
}

.ce-property-agent-widget__designation {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c9a84c;
    margin: 0 0 2px;
}

.ce-property-agent-widget__experience {
    font-size: 11px;
    color: #888;
    margin: 0;
}

.ce-property-agent-widget__actions { display: flex; flex-direction: column; gap: 8px; }

.ce-property-agent-widget__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ce-property-agent-widget__btn:hover { opacity: 0.88; }
.ce-property-agent-widget__btn--call { background: #f0f2f8; color: #0a0f59; }
.ce-property-agent-widget__btn--whatsapp { background: #25D366; color: #ffffff; }
.ce-property-agent-widget__btn--profile { background: #0a0f59; color: #ffffff; }

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    /* Archive hero */
    .ce-team-archive__title { font-size: 28px; }
    .ce-team-archive__subtitle { font-size: 14px; }
    .ce-team-archive__hero { padding: 40px 16px; }
    .ce-team-archive__wrapper { padding: 20px 10px 40px; }
    .ce-team-archive__section { margin-bottom: 32px; }
    .ce-team-archive__section-header { margin-bottom: 12px; }
    .ce-team-archive__section-label { font-size: 11px; letter-spacing: 1.5px; }

    /* 2 cards per row */
    .ce-team-archive__grid,
    .ce-team-archive__grid--featured {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Card */
    .ce-team-card { border-radius: 10px; }
    .ce-team-card__badge { font-size: 8px; padding: 3px 7px; top: 6px; right: 6px; }
    .ce-team-card__photo { height: 110px; }
    .ce-team-card__info { padding: 8px 10px 4px; }
    .ce-team-card__name { font-size: 12px; margin-bottom: 2px; }
    .ce-team-card__name a { font-size: 12px; }
    .ce-team-card__designation { font-size: 9px; margin-bottom: 4px; }
    .ce-team-card__experience { font-size: 10px; gap: 3px; margin-bottom: 2px; }
    .ce-team-card__experience svg { width: 10px; height: 10px; }
    .ce-team-card__phone { font-size: 10px; gap: 3px; }
    .ce-team-card__phone svg { width: 10px; height: 10px; }

    /* Buttons with visible text */
    .ce-team-card__actions { padding: 8px 10px 10px; gap: 5px; flex-direction: row; }
    .ce-team-card__btn {
        flex: 1;
        padding: 6px 4px;
        font-size: 9px;
        font-weight: 700;
        border-radius: 6px;
        gap: 3px;
        min-width: 0;
        flex-direction: column;
        line-height: 1.1;
        white-space: normal;
        text-align: center;
    }
    .ce-team-card__btn svg { width: 12px; height: 12px; }

    /* Single profile */
    .ce-profile__cover { height: 160px; }
    .ce-profile__wrapper { padding: 0 14px 40px; }
    .ce-profile__header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: -40px;
        margin-bottom: 24px;
    }
    .ce-profile__photo-wrap { width: 90px; height: 90px; }
    .ce-profile__name { font-size: 22px; }
    .ce-profile__designation { font-size: 11px; }
    .ce-profile__quick-actions a { padding: 9px 14px; font-size: 12px; }

    /* Stack sidebar below content on mobile */
    .ce-profile__main {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .ce-profile__sidebar { position: static; }

    /* Property cards 2 per row */
    .ce-team-properties__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .ce-team-property-card__image { height: 90px; }
    .ce-team-property-card__info { padding: 8px 10px; }
    .ce-team-property-card__price { font-size: 12px; }
    .ce-team-property-card__title { font-size: 10px; }

    /* Contact sidebar */
    .ce-contact-sidebar__section { padding: 14px 16px; }
    .ce-contact-sidebar__whatsapp-btn { font-size: 13px; padding: 12px; }
}