/**
 * GHVM content detail pages — academics, achievements, notices, policies
 */
.ghvm-article {
    --ghvm-a-teal: var(--color-primary, #1ab69d);
    --ghvm-a-teal-deep: #0f8f7a;
    --ghvm-a-coral: var(--color-secondary, #ee4a62);
    --ghvm-a-ink: var(--color-heading, #181818);
    --ghvm-a-muted: #6b7385;
    --ghvm-a-stage: #eef7f5;
    --ghvm-a-ease: cubic-bezier(0.22, 1, 0.36, 1);
    background:
        radial-gradient(ellipse 70% 40% at 0% 0%, rgba(26, 182, 157, 0.09), transparent 55%),
        radial-gradient(ellipse 50% 35% at 100% 5%, rgba(238, 74, 98, 0.04), transparent 50%),
        #fafcfb;
    padding: 48px 0 24px !important;
    font-family: var(--font-primary);
}

.ghvm-article .container {
    max-width: 1100px;
}

.ghvm-article-panel {
    background: #fff;
    border: 1px solid rgba(20, 32, 43, 0.07);
    border-radius: 24px;
    padding: 36px 40px 40px;
    box-shadow: 0 18px 44px rgba(20, 32, 43, 0.06);
    position: relative;
    overflow: hidden;
}

.ghvm-article-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ghvm-a-teal), var(--ghvm-a-teal-deep) 55%, rgba(238, 74, 98, 0.65));
}

@media (max-width: 767px) {
    .ghvm-article-panel {
        padding: 24px 18px 28px;
        border-radius: 18px;
    }
}

.ghvm-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ghvm-article-panel .title {
    margin: 0 0 18px !important;
    font-family: var(--font-secondary);
    font-size: clamp(26px, 3.2vw, 38px) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--ghvm-a-ink) !important;
}

.ghvm-article-body {
    color: #3d4656;
    font-size: 16px;
    line-height: 1.75;
}

.ghvm-article-body > *:first-child {
    margin-top: 0;
}

.ghvm-article-body > *:last-child {
    margin-bottom: 0;
}

.ghvm-article-body p {
    margin: 0 0 1em;
}

.ghvm-article-body h2,
.ghvm-article-body h3,
.ghvm-article-body h4 {
    margin: 1.4em 0 0.55em;
    color: var(--ghvm-a-ink);
    font-family: var(--font-secondary);
    font-weight: 750;
    line-height: 1.3;
}

.ghvm-article-body h2 { font-size: 1.45rem; }
.ghvm-article-body h3 { font-size: 1.25rem; }
.ghvm-article-body h4 { font-size: 1.1rem; }

.ghvm-article-body ul,
.ghvm-article-body ol {
    margin: 0 0 1.1em;
    padding-left: 1.25em;
}

.ghvm-article-body li {
    margin-bottom: 0.4em;
}

.ghvm-article-body a {
    color: var(--ghvm-a-teal-deep);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ghvm-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 0.75em 0;
}

.ghvm-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 14.5px;
}

.ghvm-article-body th,
.ghvm-article-body td {
    border: 1px solid rgba(20, 32, 43, 0.1);
    padding: 10px 12px;
    text-align: left;
}

.ghvm-article-body th {
    background: var(--ghvm-a-stage);
    color: var(--ghvm-a-ink);
}

.ghvm-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(20, 32, 43, 0.08);
}

.ghvm-article-actions .edu-btn {
    border-radius: 999px !important;
    height: 46px !important;
    line-height: 44px !important;
    padding: 0 22px !important;
}

.ghvm-article-empty {
    text-align: center;
    padding: 28px 16px;
    color: var(--ghvm-a-muted);
}

/* Related programs / achievements */
.ghvm-article-related {
    margin-top: 36px;
    margin-bottom: 20px;
}

.ghvm-article-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ghvm-article-related-head h3 {
    margin: 0;
    font-family: var(--font-secondary);
    font-size: 22px;
    font-weight: 800;
    color: var(--ghvm-a-ink);
}

.ghvm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 991px) {
    .ghvm-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .ghvm-related-grid {
        grid-template-columns: 1fr;
    }
}

.ghvm-related-card {
    display: block;
    padding: 18px 18px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(20, 32, 43, 0.08);
    box-shadow: 0 8px 22px rgba(20, 32, 43, 0.04);
    text-decoration: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    height: 100%;
}

.ghvm-related-card:hover {
    border-color: rgba(26, 182, 157, 0.35);
    box-shadow: 0 14px 30px rgba(20, 32, 43, 0.08);
}

.ghvm-related-card span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ghvm-a-teal-deep);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ghvm-related-card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
    color: var(--ghvm-a-ink);
    line-height: 1.35;
}

/* Gallery sitting under article — tighten top gap */
.ghvm-article + .ghvm-gallery,
.ghvm-article ~ .ghvm-gallery {
    padding-top: 12px !important;
}

.ghvm-article-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
