/* Shared page title and content-card styling, matching Organising Committee. */
.upuk-page-heading,
.nsgd-section-heading {
    position: relative;
    margin: 0 auto 44px !important;
    padding-bottom: 24px;
    text-align: center;
}
.upuk-page-heading h1,
.nsgd-section-heading :is(h1, h2) {
    margin: 0 !important;
    color: #06165e !important;
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    line-height: 1.15 !important;
    font-weight: 1000 !important;
    overflow-wrap: anywhere;
}
.upuk-page-heading::before,
.nsgd-section-heading::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: min(360px, 70%);
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #8720bd, #f014a0, #ff861e);
    transform: translateX(-50%);
}
.upuk-page-heading::after,
.nsgd-section-heading::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 13px;
    height: 13px;
    border: 3px solid #ee18a4;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
}
.nsgd-section-heading :is(h1, h2)::after { display: none !important; }
.upuk-unified .services-details__content,
.upuk-unified .services-details__left .services-details__content {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.upuk-unified .services-details__shape-1 { display: none; }
.upuk-unified .upuk-content-card,
.nsgd-cta-card.upuk-content-card,
.nsgd-welcome-copy.upuk-content-card,
.nsgd-venue__copy.upuk-content-card {
    min-width: 0;
    margin-bottom: 36px;
    padding: 5px 5px 24px;
    border: 1px solid #76cce9;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 30px rgba(13, 102, 166, .16);
    overflow-wrap: anywhere;
}
.upuk-unified .upuk-card-heading,
.nsgd-cta-card.upuk-content-card > h3,
.nsgd-welcome-copy.upuk-content-card > h3,
.nsgd-venue__copy.upuk-content-card > h2 {
    display: block;
    width: auto;
    margin: 0 0 18px !important;
    padding: 11px 16px;
    border-radius: 11px;
    background: linear-gradient(105deg, #07166d 0%, #075da9 52%, #10bee9 100%);
    color: #fff !important;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem) !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    text-transform: none;
    text-align: center !important;
}
.upuk-unified .upuk-card-heading::after { display: none !important; }
.upuk-card-body { padding: 0 clamp(12px, 2vw, 24px); }
.upuk-card-body p + p { margin-top: .75rem; }
.upuk-card-body ul { padding-left: 1.5rem; }
.upuk-card-body .list-unstyled { padding-left: 0; }
.upuk-card-body iframe { max-width: 100%; }
.upuk-unified .tariff-panel > :not(.upuk-card-heading),
.upuk-unified .registration-card.upuk-content-card > :not(.upuk-card-heading) {
    margin-inline: 12px;
}
.upuk-unified .registration-card.upuk-content-card > ul { padding-left: 1.5rem; }
.upuk-unified .contact-page { padding-top: 54px !important; }
.upuk-unified .contact-page .upuk-page-heading { margin-inline: 16px !important; }
.upuk-unified .contact-page__contact-single > :not(.upuk-card-heading) { margin-inline: 16px; }
.upuk-unified .contact-page__contact-single > .row { margin-bottom: 16px; }
.upuk-unified .nsgd-tour-card { overflow: hidden; }
.upuk-unified .nsgd-tour-card > div { padding: 5px; }
.upuk-unified .nsgd-tour-card p { padding-inline: 16px; }
.upuk-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}
.upuk-action-buttons .nsgd-btn { max-width: 100%; text-align: center; white-space: normal; }

/* Keep the navigation action level with the menu links. */
.nsgd-nav__actions { align-items: center; align-self: center; }
.nsgd-nav__actions .upuk-action-buttons { margin-top: 0; }

/* Compact the welcome-message secretary name and designation. */
.nsgd-welcome-signatories .nsgd-person h3 { margin: 12px 0 2px; }
.nsgd-welcome-copy .nsgd-welcome-signatories .nsgd-person p {
    margin: 0;
    line-height: 1.35;
}
.nsgd-cta-card.upuk-content-card { padding: 5px 5px 24px; }
.nsgd-cta-card.upuk-content-card > .fa { margin: 20px; }
.nsgd-cta-card.upuk-content-card > p { padding-inline: 20px; }
.nsgd-welcome-copy.upuk-content-card > :not(h3),
.nsgd-venue__copy.upuk-content-card > :not(h2) { margin-inline: 20px; }
@media (max-width: 767px) {
    .upuk-unified .contact-page { padding-top: 38px !important; }
    .upuk-action-buttons { align-items: stretch; }
    .upuk-action-buttons .nsgd-btn { justify-content: center; }
    .nsgd-nav__actions .upuk-action-buttons { margin-top: 0; gap: 6px; }
}
