/*
 * Pharmacovigilance section: main page (two-panel layout with
 * subsection links) and single country Educational Materials pages.
 */

.template-pharmacovigilance {
    padding-top: 170px;
    padding-bottom: 120px;
    min-height: 70vh;
}

/*
 * With a hero image the page uses the theme's shared hero-big partial
 * (same as Development / About / Career pages); it brings its own
 * layout, so the top padding goes and the content gets a gap below it.
 */
.template-pharmacovigilance.has-hero {
    padding-top: 0;
}

.template-pharmacovigilance.has-hero .pv-layout {
    margin-top: 90px;
}

.template-pharmacovigilance .pv-intro {
    max-width: 740px;
    margin-bottom: 70px;
}

.template-pharmacovigilance .pv-intro h1 {
    font-weight: 500;
    font-size: 42px;
    line-height: 1.2;
    color: #0033A0;
    margin-bottom: 25px;
}

.template-pharmacovigilance .pv-intro .description {
    font-size: 16px;
    line-height: 1.6;
    color: #7A7A7A;
}

.template-pharmacovigilance .pv-intro .description p + p {
    margin-top: 14px;
}

/* --- Decorative crystals (same line-art as the text pages) ---
   Scoped to the content area below the hero; behind the content and
   click-transparent so they never block the accordion or links. */

.template-pharmacovigilance .pv-body {
    position: relative;
    overflow: hidden;
}

.template-pharmacovigilance .pv-body .wide-wrap {
    position: relative;
    z-index: 1;
}

.template-pharmacovigilance .pv-crystal {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.template-pharmacovigilance .pv-crystal-top {
    top: 0;
    right: 0;
}

/* --- Two-panel layout --- */

.template-pharmacovigilance .pv-layout {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.template-pharmacovigilance .pv-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 40px;
}

.template-pharmacovigilance .pv-link {
    display: block;
    padding: 18px 20px;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.35;
    color: #7A7A7A;
    text-decoration: none;
    border-left: 2px solid #E7E7E7;
    transition: all 300ms;
}

.template-pharmacovigilance .pv-link:hover {
    color: #0033A0;
}

.template-pharmacovigilance .pv-link.active {
    color: #0033A0;
    border-left-color: #EA7600;
    background-color: rgba(234, 118, 0, 0.04);
}

.template-pharmacovigilance .pv-content {
    flex-grow: 1;
    min-width: 0;
}

.template-pharmacovigilance .pv-panel {
    display: none;
}

.template-pharmacovigilance .pv-panel.active {
    display: block;
}

.template-pharmacovigilance .pv-panel h2 {
    font-weight: 500;
    font-size: 28px;
    line-height: 1.3;
    color: #0033A0;
    margin-bottom: 25px;
}

.template-pharmacovigilance .pv-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
}

.template-pharmacovigilance .pv-text p + p,
.template-pharmacovigilance .pv-text p + ul,
.template-pharmacovigilance .pv-text ul + p,
.template-pharmacovigilance .pv-text p + h3,
.template-pharmacovigilance .pv-text h3 + p {
    margin-top: 14px;
}

.template-pharmacovigilance .pv-text ul {
    list-style: disc;
    padding-left: 22px;
}

.template-pharmacovigilance .pv-text li + li {
    margin-top: 6px;
}

.template-pharmacovigilance .pv-text a {
    color: #0033A0;
}

.template-pharmacovigilance .pv-text h3 {
    font-weight: 500;
    font-size: 20px;
    color: #0033A0;
    margin-top: 30px;
}

/* --- Overview (intro shown above the two-column layout) --- */

.template-pharmacovigilance .pv-overview {
    max-width: 850px;
    margin-bottom: 70px;
}

.template-pharmacovigilance.has-hero .pv-overview {
    margin-top: 90px;
}

.template-pharmacovigilance.has-hero .pv-overview + .pv-layout {
    margin-top: 0;
}

/* --- Country accordion (plus icon, smooth slide) --- */

.template-pharmacovigilance .pv-countries {
    margin-top: 30px;
    border-top: 1px solid #E7E7E7;
}

.template-pharmacovigilance .pv-country {
    border-bottom: 1px solid #E7E7E7;
}

.template-pharmacovigilance .pv-country-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5px;
    font-weight: 500;
    font-size: 17px;
    color: #333333;
    text-decoration: none;
    transition: color 300ms;
}

.template-pharmacovigilance .pv-country-toggle:hover,
.template-pharmacovigilance .pv-country.open .pv-country-toggle {
    color: #0033A0;
}

.template-pharmacovigilance .pv-plus {
    display: flex;
    flex-shrink: 0;
    margin-left: 15px;
    transition: transform 300ms;
}

.template-pharmacovigilance .pv-country.open .pv-plus {
    transform: rotate(45deg);
}

.template-pharmacovigilance .pv-country-docs {
    overflow: hidden;
    height: 0;
    opacity: 0;
    padding: 0 5px;
    transition: height 300ms ease, opacity 300ms ease;
}

.template-pharmacovigilance .pv-country-docs .pv-docs {
    padding-bottom: 20px;
}

/* --- Document list (shared with single country page) --- */

.pv-docs .pv-doc a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #0033A0;
    text-decoration: none;
}

.pv-docs .pv-doc a:hover .pv-doc-title {
    text-decoration: underline;
}

.pv-docs .pv-doc-icon {
    flex-shrink: 0;
    color: #EA7600;
    transform: translateY(2px);
}

.pv-docs .pv-doc-meta {
    font-size: 13px;
    color: #7A7A7A;
    white-space: nowrap;
}

/* --- Single country page --- */

.pv-single-country .pv-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #EA7600;
    text-decoration: none;
    margin-bottom: 25px;
}

.pv-single-country .pv-back:hover {
    text-decoration: underline;
}

.pv-single-country .pv-country-single {
    max-width: 740px;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .template-pharmacovigilance {
        padding-top: 150px;
    }
    .template-pharmacovigilance .pv-layout {
        gap: 40px;
    }
    .template-pharmacovigilance .pv-sidebar {
        width: 260px;
    }
}

@media (max-width: 768px) {
    .template-pharmacovigilance {
        padding-top: 130px;
        padding-bottom: 70px;
    }
    .template-pharmacovigilance.has-hero {
        padding-top: 0;
    }
    .template-pharmacovigilance.has-hero .pv-layout {
        margin-top: 50px;
    }
    .template-pharmacovigilance .pv-intro {
        margin-bottom: 40px;
    }
    .template-pharmacovigilance .pv-intro h1 {
        font-size: 32px;
    }
    .template-pharmacovigilance .pv-layout {
        flex-direction: column;
        gap: 30px;
    }
    .template-pharmacovigilance .pv-sidebar {
        width: 100%;
        position: static;
        flex-direction: column;
    }
    .template-pharmacovigilance .pv-link {
        padding: 14px 16px;
    }
    .template-pharmacovigilance .pv-panel h2 {
        font-size: 24px;
    }
    .pv-docs .pv-doc a {
        flex-wrap: wrap;
    }
}
