/* ============================================
   Prolrey Biotech — Support Page Stylesheet
   ============================================ */

/* ---------- Hero ---------- */
.sp-hero {
    margin-top: var(--nav-h);
    padding: 84px 0 72px;
    background: var(--bg-light);
    background-image: url('ASSETS/IMAGES/OurPartnershipEcosystem2.jpg');
    background-size: 110% auto;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(247,248,250,0.94) 0%, rgba(247,248,250,0.82) 55%, rgba(247,248,250,0.6) 100%);
}
.sp-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 660px;
    margin: 0 auto;
}
.sp-hero-tag {
    display: inline-block;
    font-family: var(--font-num);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 18px;
}
.sp-hero-inner h1 {
    font-size: 46px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 18px;
}
.sp-hero-sub {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* ---------- Sticky Tabs ---------- */
.sp-tabs-wrap {
    position: sticky;
    top: var(--nav-h);
    z-index: 20;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid #eee;
}
.sp-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 14px 0;
    -webkit-overflow-scrolling: touch;
}
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e6e6e6;
    background: var(--bg-white);
    color: var(--gray);
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.sp-tab:hover { border-color: rgba(229,57,53,0.4); color: var(--black); }
.sp-tab.active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.sp-tab-num {
    font-family: var(--font-num);
    font-size: 12px;
    font-weight: 700;
    opacity: 0.85;
}

/* ---------- Panels ---------- */
.sp-panels { padding: 56px 0 64px; background: var(--bg-white); }
.sp-panel { display: none; }
.sp-panel.active { display: block; animation: spFade 0.35s ease; }
@keyframes spFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* ---------- Infinite scroll ---------- */
.sp-load-sentinel { height: 1px; overflow: hidden; }
.sp-load-hint { text-align: center; padding: 36px 0 4px; font-size: 13px; color: var(--gray-light); }
.sp-load-hint::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px;
    border: 2px solid var(--gray-light); border-top-color: var(--red); border-radius: 50%;
    vertical-align: -3px; animation: spSpin 0.7s linear infinite; }
@keyframes spSpin { to { transform: rotate(360deg); } }

/* ---------- Card ---------- */
.sp-card {
    background: var(--bg-white);
    border: 1px solid #ededed;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20,20,40,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}
.sp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}
.sp-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
}
.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.sp-card:hover .sp-thumb img { transform: scale(1.05); }
.sp-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(229,57,53,0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease;
}
.sp-play svg { width: 24px; height: 24px; margin-left: 2px; }
.sp-card:hover .sp-play { transform: scale(1.08); background: rgba(255,255,255,0.82); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.sp-card:hover .sp-play svg { color: var(--red); }

.sp-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.sp-tag {
    align-self: flex-start;
    font-family: var(--font-num);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(229,57,53,0.1);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.sp-tag-guide { color: #2e7d32; background: rgba(46,125,50,0.1); }
.sp-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
    margin-bottom: 16px;
}
.sp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
}
.sp-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.sp-link:hover svg { transform: translateX(3px); }

/* ---------- CTA ---------- */
.sp-cta { padding: 72px 0; background: var(--red); }
.sp-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.sp-cta-text { max-width: 620px; }
.sp-cta-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.sp-cta-sub { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 10px; }
.sp-cta-desc { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.7; }
.sp-cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white {
    background: #fff; color: var(--red); border: 1px solid #fff;
}
.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-outline-white {
    background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sp-hero { padding: 56px 0 48px; }
    .sp-hero-inner h1 { font-size: 32px; }
    .sp-hero-sub { font-size: 15px; }
    .sp-tabs { justify-content: flex-start; padding: 12px 0; }
    .sp-tab { font-size: 14px; padding: 9px 16px; }
    .sp-panels { padding: 40px 0 48px; }
    .sp-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .sp-cta { padding: 52px 0; }
    .sp-cta-text h2 { font-size: 26px; }
}
