/* ============================================================
   Editor profiles component styles (Indonesia).
   Card UI per Figma "Editor Card 2" (#F9F0E9 bg, round photo on
   top, Noto Sans, #283341 text, "33+ / years of experience" +
   "Specialities: ..." row) scaled to fit the original 2-row pager
   box (4 columns x 2 stacked cards = 8 visible).
   Applies to the .editor-2row pager include
   (includes/inc_editor_profiles.htm / _eng.htm).
   Legacy compact-card styles are kept at the bottom, scoped to
   .owl-carousel.editor-profiles (hidden tab panes / older pages).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;600&display=swap');

/* --- section bg: white only where this component sits (the same
   .accepted-testimonials class wraps beige testimonial sections elsewhere) --- */
section.accepted-testimonials:has(.editor-2row) { background-color: #fff; }

/* --- pager frame: 4 columns x 2 stacked cards; arrows page 1 column & loop --- */
.editor-2row { position: relative; padding: 0 34px; }
.editor-2row .e2r-viewport { overflow: hidden; }
.editor-2row .e2r-track { display: flex; transition: transform .45s ease; will-change: transform; }
.editor-2row .editor-col { flex: 0 0 25%; max-width: 25%; box-sizing: border-box; padding: 0 5px; }

/* --- Figma card, scaled to the original box (fixed height keeps rows even) --- */
.editor-2row .editor-col .item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 340px;
    min-height: 0;
    padding: 16px !important;
    margin: 0 0 14px 0 !important;
    background: #F9F0E9 !important;
    border: none;
    border-radius: 0;
    box-shadow: none !important;
    text-align: left;
    overflow: hidden;
}
.editor-2row .editor-col .item:last-child { margin-bottom: 8px !important; }

/* card body: photo+name block on top, then experience column + specialities */
.editor-2row .item a {
    display: grid;
    grid-template-columns: 72px 1fr;
    /* row 1 = photo+name (auto), row 2 fills the rest so the flag can pin
       to the card's bottom on a uniform line regardless of title/spec length */
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    row-gap: 6px;
    align-content: start;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    margin: 0;
    color: #283341;
    text-decoration: none;
}

/* --- photo + name --- */
.editor-2row .item .top-flex-details {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    border: none;
    min-height: 0;
    text-align: left !important;
}
.editor-2row .item .edi-lt-img { display: block; float: none; width: 150px; height: 150px; margin: 0; align-self: center; }
.editor-2row .item .edi-lt-img img,
.editor-2row .item .top-flex-details img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* name line ("Dr Martin" slot -> degree + field), centered under the photo */
.editor-2row .item .top-flex-details .title {
    font-family: 'Noto Sans', 'OpenSans-Regular', sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 24px !important;
    color: #283341;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 48px !important;
    text-align: center !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.editor-2row .item .top-flex-details .title strong {
    font-family: 'Noto Sans', 'OpenSans-Regular', sans-serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    display: inline;
}

/* --- experience column ("33+" over "years of experience") --- */
.editor-2row .item .editor-exp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start !important;
    width: 72px;
    height: 100%;
    margin: 0;
    padding: 0 !important;
    border: none;
    font-size: 12px;
}
.editor-2row .item .editor-exp .exp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    float: none;
    text-align: left;
}
.editor-2row .item .editor-exp .exp strong {
    font-family: 'Noto Sans', 'OpenSans-Regular', sans-serif !important;
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    color: #283341;
}
.editor-2row .item .editor-exp .exp .exp-txt {
    font-family: 'Noto Sans', 'OpenSans-Regular', sans-serif !important;
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
    color: #283341;
    width: 72px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.editor-2row .item .editor-exp .exp-flag { float: none; margin-top: auto; padding-top: 6px; max-width: none; text-align: left; }
.editor-2row .item .editor-exp .exp-flag img { max-width: 24px; height: auto; }

/* --- specialities block (light label, semibold list) --- */
.editor-2row .item .author-labels {
    max-height: 64px;
    font-family: 'Noto Sans', 'OpenSans-Regular', sans-serif !important;
    font-weight: 300;
    font-size: 12px;
    line-height: 16px;
    color: #283341;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.editor-2row .item .author-labels::before { content: "Spesialisasi: "; }
.editor-2row.e2r-en .item .author-labels::before { content: "Specialities: "; }
.editor-2row .item .author-labels ul.card-author-specialization {
    display: inline;
    list-style: none;
    margin: 0;
    padding: 0;
}
.editor-2row .item .author-labels ul.card-author-specialization li {
    display: inline;
    padding: 0;
    background: none;
    border-radius: 0;
    font-family: 'Noto Sans', 'OpenSans-Regular', sans-serif !important;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    text-transform: none;
    white-space: normal;
    color: #283341 !important;
}
.editor-2row .item .author-labels ul.card-author-specialization li::after { content: ", "; }
.editor-2row .item .author-labels ul.card-author-specialization li:last-child::after { content: ""; }

.editor-2row .item .codet { display: none; }

/* --- nav arrows --- */
.editor-2row .e2r-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e0e0e0; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; font-size: 26px; display: flex; align-items: center; justify-content: center; color: #333; padding: 0 0 4px 0; }
.editor-2row .e2r-prev { left: -15px; }
.editor-2row .e2r-next { right: -15px; }

/* --- original responsive column counts --- */
@media (max-width: 991px) { .editor-2row .editor-col { flex-basis: 50%; max-width: 50%; } }
@media (max-width: 599px) { .editor-2row .editor-col { flex-basis: 100%; max-width: 100%; } }

/* ============================================================
   Figma card v2 (edp-*): white card + shadow, beige photo band with
   bg-removed photo, flag & quote deco, degree/field, stats row,
   specialization pills. Values straight from Figma Frame 2095585438.
   Used by includes/inc_editor_profiles.htm (the _eng include still
   uses the older .item card above).
   ============================================================ */
.editor-2row .e2r-viewport { padding: 8px 0; }

.editor-2row .editor-col .edp-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 20px;
    margin: 0 0 20px 0;
    background: #FFFFFF;
    box-shadow: 0 0 7.74px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    height: 428px;
    color: #1D1D1D;
    text-decoration: none;
    overflow: hidden;
}
.editor-2row .editor-col .edp-card:last-child { margin-bottom: 0; }

/* photo band: 187px beige, rounded top corners, quote deco + glow + flag */
.edp-photo {
    position: relative;
    flex: none;
    width: 100%;
    height: 187px;
    margin-bottom: 18px;
    background: #F9F0E9;
    border-radius: 3px 3px 0 0;
    overflow: hidden;
}
.edp-quote {
    /* 2x2 dot deco per Figma Layer_1: top-left ring + 3 filled dots, #ED9794 */
    position: absolute;
    left: -2px;
    top: 34px;
    width: 74px;
    height: 75px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 74 75'%3E%3Cg fill='%23ED9794'%3E%3Ccircle cx='67.2' cy='37.7' r='5.9'/%3E%3Ccircle cx='36.2' cy='68' r='5.9'/%3E%3Ccircle cx='67.2' cy='67.3' r='5.9'/%3E%3C/g%3E%3Ccircle cx='36.2' cy='37.7' r='4.83' fill='none' stroke='%23ED9794' stroke-width='2.13'/%3E%3C/svg%3E") center/contain no-repeat;
}
.edp-glow {
    position: absolute;
    left: 57px;
    top: 82px;
    width: 125px;
    height: 289px;
    background: rgba(62, 0, 0, 0.5);
    filter: blur(38px);
}
.edp-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: bottom center;
}
/* assets are pre-composed at the Figma band size (239x187); on desktop the
   fluid band is slightly narrower, so cover keeps them full-bleed (~5px side
   crop). Below 992px columns grow far wider than 239px, so contain applies. */
@media (min-width: 992px) {
    .edp-img { object-fit: cover; }
}
.edp-flag {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px !important;
    height: 20px !important;
    object-fit: cover;
    border-radius: 2px;
}

/* degree + field, centered */
.edp-degree {
    font-weight: 600;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    color: #1D1D1D;
}
.edp-field {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    color: #1D1D1D;
    min-height: 16px;
}

/* divider */
.edp-divider {
    display: block;
    width: 100%;
    height: 0;
    border-top: 1px solid #D9D8D8;
    margin: 13px 0;
}

/* stats: 33+ Years of experience | 500+ Manuscripts Edited */
.edp-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 38px;
}
.edp-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}
.edp-stat strong {
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    color: #1D1D1D;
}
.edp-stat span {
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: #1D1D1D;
    max-width: 70px;
}
.edp-vline {
    flex: none;
    width: 1px;
    height: 38px;
    background: linear-gradient(180deg, rgba(151, 151, 151, 0) 6.81%, #D9D9D9 55.99%, rgba(217, 217, 217, 0) 100%);
}

/* specialization pills (2 rows visible; overflow clipped like the Figma) */
.edp-tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 4px 6px;
    margin-top: 18px;
    max-height: 54px;
    overflow: hidden;
}
.edp-tag {
    display: inline-block;
    box-sizing: border-box;
    height: 25px;
    padding: 3px 8px 4px;
    background: #D9D8D8;
    border: 1px solid #D9D8D8;
    border-radius: 50px;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    color: #1D1D1D;
    white-space: nowrap;
}

/* ============================================================
   Legacy compact card styling (pre-Figma), now scoped to the
   owl-carousel variants only (hidden subject-area tab panes).
   ============================================================ */
.owl-carousel.editor-profiles .item{border:1px solid rgba(0,0,0,0.08);border-radius:5px;text-align:center;margin:5px;box-shadow:#ccc 0 1px 5px;-webkit-box-shadow:#ccc 0 1px 5px;-moz-box-shadow:#ccc 0 1px 5px;min-height:300px;padding:10px 20px;padding-top:0!important;background:#fff}
.owl-carousel.editor-profiles .item a{text-decoration:none;color:#000;margin:0 auto}
.owl-carousel.editor-profiles .item .edi-lt-img{display:block;float:none;text-align:center;margin:0 auto;width:125px;height:125px}
.owl-carousel.editor-profiles .item .title{width:100%;display:block;line-height:25px;color:#000;margin:20px 0 0;font-size:16px;padding:0 7px;min-height:70px}
.owl-carousel.editor-profiles .item .title strong{font-size:24px;display:block}
.owl-carousel.editor-profiles .item .edi-lt-img img{display:inline;border-radius:50%;object-fit:cover;width:100%;height:125px}
.owl-carousel.editor-profiles .item .codet{display:none}
.owl-carousel.editor-profiles .item .top-flex-details{display:flex;padding:0;align-items:center;min-height:120px;border-bottom:1px solid #eee;justify-content:start;text-align:left!important}
.owl-carousel.editor-profiles .item .top-flex-details img{height:70px!important;width:70px!important}
.owl-carousel.editor-profiles .item .top-flex-details .edi-lt-img{height:initial!important}
.owl-carousel.editor-profiles .item .top-flex-details .title{margin-top:0;font-weight:400!important;min-height:auto!important;font-size:15px}
.owl-carousel.editor-profiles .item .top-flex-details .title strong{font-weight:400!important;font-size:19px}
.owl-carousel.editor-profiles .item .editor-exp{display:flex;justify-content:space-between;width:100%;align-items:center;padding-bottom:10px;padding-left:12px;font-size:12px;border-bottom:1px solid #eee}
.owl-carousel.editor-profiles .item .editor-exp .exp{display:flex;align-items:center;gap:5px;text-align:left;margin-top:0;padding-right:10px;border-right:#979191 1px solid;width:147px;margin-right:10px;border-image:linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(226,226,226,1) 48%,rgba(255,255,255,0) 100%);border-image-slice:1}
.owl-carousel.editor-profiles .item .editor-exp .exp strong{color:#000}
.owl-carousel.editor-profiles .item .editor-exp .exp-flag{max-width:36px;text-align:right;float:none!important}
.owl-carousel.editor-profiles .item .editor-exp .exp-flag img{max-width:40px;height:auto}
.owl-carousel.editor-profiles ul.card-author-specialization{list-style-type:none;display:flex;flex-wrap:wrap;gap:10px;padding-top:10px;padding-left:0;margin-bottom:0}
.owl-carousel.editor-profiles ul.card-author-specialization li{font-size:10px;padding:.4rem .5rem;background-color:#e5e5e5;border-radius:3px;line-height:1;font-weight:600;text-transform:uppercase;white-space:nowrap;color:#333!important}
