/* =========================================================
   AIVITA iPSC Page
   Scoped page styles only. Shared nav/footer/floating buttons
   remain controlled by existing common files.
========================================================= */

body.ipsc-page {
    background: #071525;
    color: #243142;
}

body.ipsc-page .overlay {
    background: linear-gradient(135deg, rgba(7, 21, 37, 0.78), rgba(51, 37, 37, 0.48));
}

.ipsc-page-content {
    position: relative;
    z-index: 5;
    width: min(1160px, calc(100% - 48px));
    margin: 145px auto 80px;
    color: #243142;
}

.ipsc-hero-section,
.ipsc-section,
.ipsc-cta-section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(139, 90, 43, 0.24);
    border-radius: 8px;
    box-shadow: 0 22px 58px rgba(7, 21, 37, 0.26);
}

.ipsc-hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 34px;
    align-items: center;
    padding: 38px;
}

.ipsc-section,
.ipsc-cta-section {
    margin-top: 24px;
    padding: 34px;
}

.ipsc-eyebrow {
    margin: 0 0 12px;
    color: #8B5A2B;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ipsc-page-content h1,
.ipsc-page-content h2,
.ipsc-page-content h3,
.ipsc-page-content h4 {
    font-family: 'Frank Ruhl Libre', serif;
}

.ipsc-page-content h1 {
    margin: 0 0 16px;
    color: #10243e;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.98;
}

.ipsc-page-content h2 {
    margin: 0 0 18px;
    color: #10243e;
    font-size: clamp(1.65rem, 2.7vw, 2.25rem);
    line-height: 1.12;
}

.ipsc-page-content h3,
.ipsc-page-content h4 {
    color: #10243e;
}

.ipsc-page-content p {
    color: #4e5b6d;
    font-size: 1.05rem;
    line-height: 1.78;
}

.ipsc-hero-copy p:last-child,
.ipsc-section p:last-child {
    margin-bottom: 0;
}

.ipsc-hero-image,
.ipsc-inline-image {
    margin: 0;
}

.ipsc-hero-image img,
.ipsc-inline-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(16, 36, 62, 0.18);
}

.ipsc-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: center;
}

.ipsc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ipsc-card {
    min-height: 88px;
    padding: 20px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(16, 36, 62, 0.1);
    border-left: 4px solid #8B5A2B;
    border-radius: 8px;
    color: #253347;
    font-size: 1rem;
    line-height: 1.45;
    box-shadow: 0 10px 24px rgba(16, 36, 62, 0.08);
}

.ipsc-check-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.ipsc-check-list li {
    position: relative;
    padding-left: 22px;
    color: #4e5b6d;
    font-size: 1.02rem;
    line-height: 1.6;
}

.ipsc-check-list li::before {
    content: "";
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 8px;
    height: 8px;
    background: #8B5A2B;
    border-radius: 2px;
}

.ipsc-feature-note {
    margin-top: 22px;
    padding: 18px 20px;
    background: rgba(139, 90, 43, 0.1);
    border-left: 4px solid #8B5A2B;
    border-radius: 8px;
}

.ipsc-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #071525;
    box-shadow: 0 18px 42px rgba(7, 21, 37, 0.25);
}

.ipsc-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ipsc-notice-section {
    border-left: 4px solid #287d6c;
}

.ipsc-cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 240, 221, 0.92));
}

.ipsc-cta-section p {
    max-width: 760px;
    margin: 0 auto 24px;
}

.ipsc-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 30px;
    background: #8B5A2B;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.ipsc-cta-button:hover,
.ipsc-cta-button:focus {
    background: #5f3b1c;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .ipsc-hero-section,
    .ipsc-two-column {
        grid-template-columns: 1fr;
    }

    .ipsc-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ipsc-page-content {
        width: calc(100% - 28px);
        margin: 112px auto 56px;
    }

    .ipsc-hero-section,
    .ipsc-section,
    .ipsc-cta-section {
        padding: 26px 20px;
    }

    .ipsc-page-content h1 {
        font-size: 2.55rem;
    }

    .ipsc-page-content h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 520px) {
    .ipsc-page-content {
        width: calc(100% - 22px);
        margin-top: 104px;
    }

    .ipsc-hero-section,
    .ipsc-section,
    .ipsc-cta-section {
        padding: 22px 16px;
    }

    .ipsc-card-grid {
        grid-template-columns: 1fr;
    }

    .ipsc-card {
        min-height: auto;
    }
}

/* iPSC content board should match the About Us white square content board. */
body.ipsc-page .page-content.ipsc-page-content {
    position: relative !important;
    z-index: 2 !important;
    width: 80% !important;
    max-width: 1200px !important;
    margin: 150px auto 100px !important;
    background-color: #ffffff !important;
    padding: 60px !important;
    border-radius: 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    color: #333333 !important;
}

body.ipsc-page .portfolio-item,
body.ipsc-page .ipsc-hero-section,
body.ipsc-page .ipsc-section,
body.ipsc-page .ipsc-cta-section,
body.ipsc-page .ipsc-notice-section,
body.ipsc-page .ipsc-preparation-section,
body.ipsc-page .ipsc-nobel-section,
body.ipsc-page .ipsc-video-section {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.ipsc-page .ipsc-notice-section {
    border-left: none !important;
}

@media (max-width: 992px) {
    body.ipsc-page .page-content.ipsc-page-content {
        width: 90% !important;
        padding: 50px 30px !important;
    }
}

@media (max-width: 768px) {
    body.ipsc-page .page-content.ipsc-page-content {
        margin-top: 180px !important;
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    body.ipsc-page .page-content.ipsc-page-content {
        width: 95% !important;
        padding: 30px 15px !important;
        margin: 100px auto 60px !important;
    }
}
