/* =========================================================
   API Integration - service detail pages
========================================================= */
.apid-top { padding-bottom: 20px; }
.apid-h1-sub { display:block; margin-top:6px; font-size:14px; font-weight:400; color:#c9c9c9; }

.apid-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px;
    margin-top: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0,0,0,.08);
}
.apid-media {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border-radius: 10px;
    background: #111;
}
.apid-media { display:flex; align-items:center; justify-content:center; }
.apid-media img { display:block; width:100%; height:100%; object-fit:contain; }
.apid-badge {
    position:absolute; top:12px; left:12px; z-index:2;
    padding:4px 12px; border-radius:20px;
    background:#D1941F; color:#111; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
}
.apid-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border:1px solid #eee; border-radius:8px; overflow:hidden; }
.apid-stats div { padding:12px 14px; border-right:1px solid #eee; }
.apid-stats div:last-child { border-right:0; }
.apid-stats span { display:block; line-height:1.4; color:#8a8a8a; font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.apid-stats strong { display:block; margin-top:4px; color:#111; font-size:14px; font-weight:600; line-height:1.3; }
.apid-desc { margin:16px 0 0; color:#555; font-size:14px; line-height:1.7; }
.apid-desc-more { margin-top:10px; }
.apid-price-row {
    display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
    margin-top:20px; padding-top:18px; border-top:1px dashed #ddd;
}
.apid-price span { display:block; color:#8a8a8a; font-size:12px; }
.apid-price strong { display:block; color:#111; font-size:24px; line-height:1.2; }
.apid-price small { color:#D1941F; font-size:11px; }
.apid-cta { width:auto; min-width:210px; min-height:52px; }

.apid-section { padding:40px 0; }
.apid-section-alt { background:#faf7f0; }
.apid-title { margin:0 0 20px; color:#111; font-size:25px; line-height:1.2; }
.apid-two { display:grid; grid-template-columns:1.3fr 1fr; gap:24px; }
.apid-box { padding:22px; background:#fff; border:1px solid #e4e4e4; border-radius:10px; box-shadow:0 3px 12px rgba(0,0,0,.06); }
.apid-box h3 { margin:0 0 14px; color:#111; font-size:17px; font-weight:600; }
.apid-spec { width:100%; border-collapse:collapse; }
.apid-spec th, .apid-spec td { padding:11px 10px; border-bottom:1px solid #eee; font-size:13.5px; line-height:1.5; text-align:left; vertical-align:top; }
.apid-spec th { width:34%; color:#111; font-weight:600; }
.apid-spec td { color:#555; }
.apid-spec tr:last-child th, .apid-spec tr:last-child td { border-bottom:0; }
.apid-need { margin:0 0 14px; padding:0; list-style:none; }
.apid-need li { display:flex; gap:10px; padding:8px 0; color:#555; font-size:13.5px; line-height:1.5; }
.apid-need i { margin-top:3px; color:#D1941F; }
.apid-link { color:#D1941F; font-size:14px; font-weight:600; text-decoration:none; }
.apid-link:hover { color:#111; }

.apid-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.apid-step { padding:20px; background:#fff; border:1px solid #e8dfc9; border-radius:10px; }
.apid-step-no { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:#111; color:#D1941F; font-weight:700; }
.apid-step h4 { margin:12px 0 6px; color:#111; font-size:16px; }
.apid-step p { margin:0; color:#646464; font-size:13px; line-height:1.6; }

.apid-others { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; }
.apid-other-card { display:block; overflow:hidden; background:#fff; border:1px solid #e4e4e4; border-radius:8px; box-shadow:0 3px 12px rgba(0,0,0,.08); text-decoration:none; transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.apid-other-card:hover { transform:translateY(-5px); border-color:rgba(209,148,31,.6); box-shadow:0 14px 28px rgba(0,0,0,.14); }
.apid-other-img { height:110px; overflow:hidden; background:#eee; }
.apid-other-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease; }
.apid-other-card:hover .apid-other-img img { transform:scale(1.06); }
.apid-other-body { padding:12px; }
.apid-other-body h4 { margin:0 0 6px; color:#111; font-size:14px; line-height:1.3; }
.apid-other-body span { color:#D1941F; font-size:12px; font-weight:600; }

@media (max-width: 1100px) {
    .apid-others { grid-template-columns:repeat(3,1fr); }
    .apid-steps { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 900px) {
    .apid-panel, .apid-two { grid-template-columns:1fr; }
    .apid-media { min-height:220px; }
}
@media (max-width: 600px) {
    .apid-stats { grid-template-columns:1fr; }
    .apid-stats div { border-right:0; border-bottom:1px solid #eee; }
    .apid-stats div:last-child { border-bottom:0; }
    .apid-others, .apid-steps { grid-template-columns:1fr; }
    .apid-cta { width:100%; }
}


/* =========================================================
   TOP CHOICE PANEL - dark / gold style (matches the service
   page "About + Key Insights" box)
========================================================= */
.apid-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto 1fr auto;
    column-gap: 34px;
    row-gap: 0;
    align-items: start;

    padding: 28px 28px 0;
    overflow: hidden;

    background: linear-gradient(145deg, #1d1d1d 0%, #0e0e0e 55%, #17120a 100%);
    border: 1px solid rgba(209, 148, 31, 0.6);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.apid-info { display: contents; }

.apid-media {
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: stretch;
    min-height: 300px;
    background: #0a0a0a;
    border: 1px solid rgba(209, 148, 31, 0.65);
    border-radius: 24px;
    box-shadow: 0 0 24px rgba(209, 148, 31, 0.12);
}

.apid-desc {
    grid-column: 2;
    grid-row: 1;
    margin: 4px 0 0;
    color: #f2f2f2;
    font-size: 15px;
    line-height: 1.7;
}

.apid-desc-more {
    grid-row: 2;
    margin-top: 12px;
    color: #c9c9c9;
}

.apid-price-row {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    margin-top: 22px;
    padding-top: 18px;
    padding-bottom: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

.apid-price span { color: #b9b9b9; }
.apid-price strong { color: #ffffff; }
.apid-price small { color: #D1941F; }

.apid-panel .apid-cta,
.apid-panel a.indigo-bag-btn {
    background: #D1941F;
    border: 1px solid #D1941F;
}
.apid-panel .apid-cta strong,
.apid-panel a.indigo-bag-btn strong { color: #111111; }
.apid-panel .apid-cta small,
.apid-panel a.indigo-bag-btn small { color: #3a2a08; }
.apid-panel .apid-cta:hover { background: #e6a52a; }

/* white "Key Insights" bar */
.apid-stats {
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 0;

    margin: 26px -28px 0;
    padding: 20px 28px;
    overflow: visible;

    background: #ffffff;
    border: 0;
    border-radius: 0 0 24px 24px;
}

.apid-stats::before {
    content: "Key Insights";
    color: #12254a;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
}

.apid-stats div {
    padding: 4px 22px;
    border: 0;
    border-left: 3px solid #D1941F;
    border-image: linear-gradient(180deg, #D1941F, rgba(209, 148, 31, 0.15)) 1;
}

.apid-stats span {
    display: block;
    color: #6b6b6b;
    font-size: 12px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.apid-stats strong {
    display: block;
    margin-top: 4px;
    color: #12254a;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .apid-panel { grid-template-columns: 1fr; grid-template-rows: none; padding: 20px 20px 0; }
    .apid-media { grid-column: 1; grid-row: auto; min-height: 220px; }
    .apid-desc, .apid-desc-more, .apid-price-row, .apid-stats { grid-column: 1; grid-row: auto; }
    .apid-desc { margin-top: 18px; }
    .apid-stats { order: 10; grid-template-columns: 1fr; margin: 22px -20px 0; padding: 16px 20px; }
    .apid-stats::before { margin-bottom: 10px; }
    .apid-stats div { padding: 8px 14px; margin-bottom: 6px; }
}


/* =========================================================
   SHINE EFFECT - TOP CHOICE DETAIL PANEL
   Moving gold / silver gloss (same as the service page panel)
   on hover or click / tap.
========================================================= */
.apid-panel { position: relative; isolation: isolate; }

.apid-panel::before {
    content: "";
    position: absolute;
    top: -75%;
    left: -45%;
    width: 33%;
    height: 260%;
    z-index: 2;
    pointer-events: none;
    transform: rotate(18deg);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 243, 205, 0.42) 44%,
        rgba(209, 148, 31, 0.28) 52%,
        rgba(255, 255, 255, 0.20) 62%,
        transparent 100%);
    filter: blur(5px);
    opacity: 1;
    transition: left 1.15s cubic-bezier(.2, .8, .2, 1);
}
.apid-panel:hover::before,
.apid-panel:active::before,
.apid-panel:focus-within::before { left: 125%; }

/* keep real content above the gloss */
.apid-media, .apid-desc, .apid-desc-more, .apid-price-row, .apid-stats { position: relative; z-index: 4; }

/* image frame reacts like the service page image frame */
.apid-media { transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.apid-panel:hover .apid-media {
    border-color: rgba(209, 148, 31, 0.9);
    box-shadow: 0 0 26px rgba(209, 148, 31, 0.22);
}


/* =========================================================
   ABOUT BOX - same glass box as the service page
   "About ..." card, now inside the Top Choice detail panel
========================================================= */
.apid-about {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    z-index: 4;

    padding: 28px 32px;
    border: 1px solid rgba(209, 148, 31, 0.58);
    border-radius: 24px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.13),
        rgba(255, 255, 255, 0.055) 48%,
        rgba(209, 148, 31, 0.06));
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    backdrop-filter: blur(22px) saturate(125%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(209, 148, 31, 0.13),
        0 15px 35px rgba(0, 0, 0, 0.20);
    transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}

.apid-about::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 240px;
    height: 240px;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(209, 148, 31, 0.34),
        rgba(209, 148, 31, 0.10) 45%,
        transparent 70%);
    filter: blur(25px);
    pointer-events: none;
}

.apid-about::before {
    content: "";
    position: absolute;
    top: -80%;
    left: -65%;
    width: 34%;
    height: 270%;
    z-index: 1;
    pointer-events: none;
    transform: rotate(20deg);
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        rgba(255, 240, 195, 0.20),
        rgba(255, 255, 255, 0.05),
        transparent);
    transition: left 0.85s ease;
}

.apid-about h3 {
    position: relative;
    z-index: 3;
    margin: 0 0 12px;
    color: #D1941F;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 600;
}

.apid-about p {
    position: relative;
    z-index: 3;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.65;
}
.apid-about p:last-child { margin-bottom: 0; }

.apid-about:hover {
    transform: translateY(-4px);
    border-color: rgba(209, 148, 31, 0.88);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28), 0 0 25px rgba(209, 148, 31, 0.10);
}
.apid-about:hover::before { left: 135%; }

@media (max-width: 900px) {
    .apid-about { grid-column: 1; grid-row: auto; margin-top: 18px; padding: 22px 20px; }
}


/* image frame hugs the picture (no black bars), centered beside the About box */
.apid-media {
    display: block;
    align-self: center;
    min-height: 0;
    overflow: hidden;
}
.apid-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
}
@media (max-width: 900px) {
    .apid-media { align-self: start; }
}
