/**
 * PhD Scholarships SEO landing pages (/phd-scholarships/…)
 */

.sch-seo-page {
    background: #f5f7f8;
    padding-bottom: 3rem;
}

.sch-seo-page__inner {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .sch-seo-page__inner {
        padding: 0 1.75rem;
    }
}

@media (min-width: 1024px) {
    .sch-seo-page__inner {
        padding: 0 2rem;
    }
}

.sch-seo-section {
    margin-bottom: 2rem;
}

.sch-seo-empty-state {
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.sch-seo-empty__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: #264653;
}

.sch-seo-empty {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.sch-seo-empty a {
    color: #457b9d;
    font-weight: 600;
}

@media (min-width: 768px) {
    .sch-seo-section {
        margin-bottom: 2.5rem;
    }
}

/* Breadcrumbs */
.sch-seo-breadcrumbs {
    padding: 1rem 0 0.5rem;
}

.sch-seo-breadcrumbs .breadcrumb-list {
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .sch-seo-breadcrumbs .breadcrumb-list {
        font-size: 1rem;
    }
}

.sch-seo-breadcrumbs .breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #6b7280;
}

/* SEO landing rhythm (/themes/{slug}/, /phd-scholarships/…, /field/{slug}/) */
.sch-seo-landing > .sch-seo-page__inner:first-child {
    padding-top: 0.25rem;
}

.sch-seo-landing > .sch-seo-page__inner:first-child .sch-seo-breadcrumbs {
    margin-bottom: 0.5rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.sch-seo-page ol.post-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sch-seo-page ol.post-grid > li {
    min-width: 0;
}

.sch-seo-context__block {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.sch-seo-context__block:last-child {
    margin-bottom: 0;
}

.sch-seo-context__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    line-height: 1.4;
    color: #111827;
}

.sch-seo-context__body {
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

/* Hero uses global .hero-section from common.css / custom-style.css (same as institute pages). */
/* Stable shell: avoid CLS when generic .hero-section { margin-bottom:40px } would apply. */
.sch-seo-page > .hero-section,
.sch-seo-landing > .hero-section,
main.sch-seo-page > .hero-section,
main.sch-seo-landing > .hero-section {
    position: relative !important;
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 0;
    padding: 1.35rem 20px 1.5rem !important;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(135deg, #4a7c7c 0%, #2c5f5f 50%, #1a4a4a 100%) !important;
    color: #fff;
}

.sch-seo-page > .hero-section::before,
.sch-seo-landing > .hero-section::before,
main.sch-seo-page > .hero-section::before,
main.sch-seo-landing > .hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

.hero-section .sch-seo-count {
    display: inline-block;
    margin: 0.75rem 0 0;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.9375rem;
    color: #fff;
}

.hero-section .sch-seo-count strong {
    font-weight: 700;
}

/* Cards reuse homepage .post-item / .post-grid from ssr-common.css */
.sch-seo-page .posts-section {
    margin-bottom: 2rem;
}

.sch-seo-page .post-list,
.sch-seo-page .post-grid {
    width: 100%;
    max-width: 100%;
}

.sch-seo-page ol.post-grid > li {
    display: flex;
    min-width: 0;
}

.sch-seo-page .post-item.sch-seo-card-item {
    width: 100%;
    min-height: 420px;
}

.sch-seo-page .post-item > .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card meta — same emoji icon style as Open PhD Positions (category 132) */
.sch-seo-page .op-card-meta {
    margin: 0 0 0.75rem;
}

.sch-seo-page .op-card-meta p {
    margin: 0 0 6px;
    color: #374151;
    font-size: 0.98rem;
    line-height: 1.4;
}

.sch-seo-page .op-card-meta p:last-child {
    margin-bottom: 0;
}

.sch-seo-page .op-icon {
    display: inline-block;
    width: 18px;
    margin-right: 6px;
}

.sch-seo-card-excerpt {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #4b5563;
}

/* Landing pages (e.g. /phd-scholarships/country/*): keep summaries to 4 lines */
.sch-seo-landing .sch-seo-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sch-seo-page .post-item .read-more-btn {
    margin-top: auto;
}

/* Related / popular links */
.sch-seo-related {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.single-post-page .sch-post-related {
    margin: 1rem 0 0;
}

/* Single post: tighten gap above Tags, add clearance before footer */
.single-post-page .sch-post-related.sch-seo-section {
    margin-bottom: 0;
}

.single-post-page .sch-post-related + .tags-section,
.single-post-page .sch-post-related + .sch-post-fields {
    margin-top: 1rem;
}

.single-post-page .tags-section,
.single-post-page .sch-post-fields {
    margin-bottom: 1.25rem;
}

.single-post-page .sch-post-fields__title {
    margin-bottom: 1rem;
    color: var(--primary-dark-green, #1b4332);
    font-size: 1.2rem;
    font-weight: 600;
}

.single-post-page .sch-post-fields__list,
.single-post-page .sch-post-fields .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.single-post-page .sch-post-fields__list .tag-link,
.single-post-page .sch-post-fields .tags-container .tag-link {
    display: inline-block;
    margin: 0;
}

.single-post-page {
    padding-bottom: 2.75rem;
}

.single-post-page .post-dates-bar {
    margin-top: -0.25rem;
    margin-bottom: 0.5rem;
}

.single-post-page .post-dates-bar + #php-custom-fields-container {
    margin-top: 0 !important;
}

@media (max-width: 575px) {
    .single-post-page .post-dates-bar span {
        display: block;
        margin-right: 0;
        margin-bottom: 0.2rem;
    }
}

@media (min-width: 768px) {
    .single-post-page {
        padding-bottom: 3.25rem;
    }

    .single-post-page .sch-post-related + .tags-section,
    .single-post-page .sch-post-related + .sch-post-fields {
        margin-top: 1.25rem;
    }

    .single-post-page .tags-section,
    .single-post-page .sch-post-fields {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .sch-seo-related {
        padding: 1.5rem 1.75rem;
    }
}

.sch-seo-related__title {
    margin: 0 0 1rem;
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    color: #264653;
}

.sch-seo-related__subtitle,
.vacancy-ia-related__subtitle {
    margin: 1.25rem 0 0.65rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.sch-seo-related__subtitle:first-of-type,
.vacancy-ia-related__subtitle:first-of-type {
    margin-top: 0.25rem;
}

.vacancy-ia-related + .vacancy-ia-related,
.sch-seo-related + .posts-section,
.sch-seo-related + .post-list,
.vacancy-ia-related + .post-list {
    margin-top: 1.5rem;
}

.sch-seo-related__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 600px) {
    .sch-seo-related__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .sch-seo-related__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sch-seo-related__list li {
    margin: 0;
}

.sch-seo-related__list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sch-seo-related__list a:hover {
    background: #ecfdf5;
    border-color: #2a9d8f;
    color: #264653;
}

.sch-seo-related__count {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
}

/* FAQ */
.sch-seo-faq {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .sch-seo-faq {
        padding: 1.5rem 1.75rem;
    }
}

.sch-seo-faq__title {
    margin: 0 0 1rem;
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    color: #264653;
}

.sch-seo-faq__item {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 0;
}

.sch-seo-faq__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sch-seo-faq__item summary {
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.45;
    list-style: none;
}

.sch-seo-faq__item summary::-webkit-details-marker {
    display: none;
}

.sch-seo-faq__item summary::before {
    content: "+";
    display: inline-block;
    width: 1.25rem;
    margin-right: 0.35rem;
    color: #2a9d8f;
    font-weight: 700;
}

.sch-seo-faq__item[open] summary::before {
    content: "−";
}

.sch-seo-faq__item p {
    margin: 0.65rem 0 0 1.6rem;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Hub CTA */
.sch-seo-cta {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.sch-seo-cta p {
    margin: 0 0 1rem;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.sch-seo-cta p:last-child {
    margin-bottom: 0;
}

.sch-seo-cta__button {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    background: #2a9d8f;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.15s ease;
}

.sch-seo-cta__button:hover {
    background: #264653;
}

.sch-seo-filter.filter-section {
    margin: 0 0 0.75rem;
    padding: 0;
}

.sch-seo-filter.filter-section .ssr-scholarship-filter-wrap {
    margin-bottom: 0;
}

.sch-seo-filter.filter-section .ssr-scholarship-filter.filter-form {
    margin-bottom: 0;
}

.sch-seo-page .filter-section + .posts-section {
    margin-top: 0;
}

.sch-seo-filter .react-filter-container {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    pointer-events: none !important;
    min-height: 0 !important;
}

.sch-seo-filter #react-unified-app,
.sch-seo-filter .filter-widget {
    display: none !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sch-seo-page .post-item.filter-hidden {
    display: none !important;
}

.sch-seo-filter-empty {
    margin: 1rem 0 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #374151;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Research Fields hub (/research-fields/) — distinct catalog / ranked / FAQ blocks
   -------------------------------------------------------------------------- */

.tax-hub-page .hero-section + .sch-seo-page__inner,
.sch-seo-landing .hero-section + .sch-seo-page__inner {
    padding-top: 1.75rem;
}

@media (min-width: 768px) {
    .tax-hub-page .hero-section + .sch-seo-page__inner,
    .sch-seo-landing .hero-section + .sch-seo-page__inner {
        padding-top: 2.25rem;
    }
}

.tax-hub-page .tax-section-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2a9d8f;
}

/* Block 1: Discipline catalog — grouped pill buttons */
.tax-field-catalog__header {
    margin-bottom: 1.5rem;
}

.tax-field-catalog__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    color: #264653;
    line-height: 1.25;
}

.tax-field-catalog__lead {
    margin: 0;
    max-width: 42rem;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.tax-field-catalog__group {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.25rem 1.35rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 4px 24px rgba(38, 70, 83, 0.06);
}

.tax-field-catalog__group:last-child {
    margin-bottom: 0;
}

.tax-field-catalog__group--agri {
    border-top: 4px solid #2a9d8f;
    background: linear-gradient(180deg, #f0fdf9 0%, #fff 3.5rem);
}

.tax-field-catalog__group--comp {
    border-top: 4px solid #457b9d;
    background: linear-gradient(180deg, #f0f7fc 0%, #fff 3.5rem);
}

.tax-field-catalog__group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: #1f2937;
}

.tax-field-catalog__group-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.tax-field-catalog__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tax-field-chip-wrap {
    margin: 0;
}

.tax-field-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1),
        box-shadow 0.22s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.tax-field-catalog__group--agri .tax-field-chip:hover,
.tax-field-catalog__group--agri .tax-field-chip:focus-visible {
    transform: translateY(-3px);
    border-color: #2a9d8f;
    background: #ecfdf5;
    color: #264653;
    box-shadow: 0 8px 22px rgba(42, 157, 143, 0.22);
    outline: none;
}

.tax-field-catalog__group--comp .tax-field-chip:hover,
.tax-field-catalog__group--comp .tax-field-chip:focus-visible {
    transform: translateY(-3px);
    border-color: #457b9d;
    background: #eff6ff;
    color: #1e3a5f;
    box-shadow: 0 8px 22px rgba(69, 123, 157, 0.2);
    outline: none;
}

.tax-field-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.tax-field-catalog__group--agri .tax-field-chip:hover .tax-field-chip__count {
    background: #2a9d8f;
    color: #fff;
}

.tax-field-catalog__group--comp .tax-field-chip:hover .tax-field-chip__count {
    background: #457b9d;
    color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
    .tax-hub-page .tax-field-chip-wrap {
        animation: tax-chip-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
        animation-delay: calc(var(--chip-delay, 0ms) * 25);
    }

    .tax-hub-page .tax-hub-ranked__item {
        animation: tax-chip-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
        animation-delay: calc(var(--chip-delay, 0ms) * 30);
    }
}

@keyframes tax-chip-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Block 2: Ranked quick picks — numbered list, warm accent */
.tax-hub-ranked {
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #f0d9a8;
    background: linear-gradient(135deg, #fffbeb 0%, #fff 45%);
    box-shadow: 0 4px 20px rgba(233, 196, 106, 0.12);
}

.tax-hub-ranked .tax-section-eyebrow {
    color: #b45309;
}

.tax-hub-ranked__header {
    margin-bottom: 1.15rem;
}

.tax-hub-ranked__title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    color: #92400e;
    line-height: 1.3;
}

.tax-hub-ranked__lead {
    margin: 0;
    color: #78716c;
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: 40rem;
}

.tax-hub-ranked__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tax-hub-ranked__chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid #fde68a;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.35;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.tax-hub-ranked__chip:hover,
.tax-hub-ranked__chip:focus-visible {
    transform: translateX(4px);
    border-color: #e9c46a;
    background: #fffdf5;
    box-shadow: 0 4px 14px rgba(233, 196, 106, 0.25);
    outline: none;
}

.tax-hub-ranked__rank {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9c46a, #f4a261);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(244, 162, 97, 0.35);
}

.tax-hub-ranked__label {
    flex: 1;
    font-weight: 500;
}

.tax-hub-ranked__count {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Block 3: FAQ — accordion with help accent */
.tax-hub-faq {
    border-left: 4px solid #264653;
    background: linear-gradient(90deg, #f8fafc 0%, #fff 1.5rem);
}

.tax-hub-faq .tax-section-eyebrow {
    color: #264653;
}

.tax-hub-faq .sch-seo-faq__item {
    border-bottom: none;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    padding: 0.65rem 0.75rem;
    background: #f9fafb;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tax-hub-faq .sch-seo-faq__item[open] {
    background: #fff;
    border-color: #e5e7eb;
}

.tax-hub-faq .sch-seo-faq__item summary::before {
    color: #264653;
}

@media (min-width: 768px) {
    .tax-field-catalog__group {
        padding: 1.5rem 1.75rem 1.6rem;
    }

    .tax-hub-ranked {
        padding: 1.5rem 1.75rem 1.65rem;
    }
}

/* Countries directory — card grid (reuses .post-grid / .post-item from catalog) */
.sch-countries-page .sch-countries-cards {
    margin-bottom: 2rem;
}

.sch-countries-page .sch-seo-country-card .sch-seo-country-card__flag-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
}

.sch-countries-page .sch-seo-country-card__flag {
    display: block;
    width: 48px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.sch-countries-page .sch-seo-country-card.visible {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

.sch-countries-page ol.post-grid > li {
    min-width: 0;
    display: flex;
}

.sch-countries-page .sch-seo-country-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Themes hub (/themes/) — same catalog grid as scholarships; force visible (no hide-then-reveal). */
.tax-hub-page.sch-seo-hub ol.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1200px) {
    .tax-hub-page.sch-seo-hub ol.post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .tax-hub-page.sch-seo-hub ol.post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tax-hub-page.sch-seo-hub ol.post-grid {
        grid-template-columns: 1fr;
    }
}

.tax-hub-page.sch-seo-hub ol.post-grid > li {
    display: flex;
    min-width: 0;
}

.tax-hub-page.sch-seo-hub .post-item.sch-seo-card-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

.tax-hub-page.sch-seo-hub .post-item.sch-seo-card-item > .post-thumbnail {
    width: 100%;
    flex-shrink: 0;
}

.tax-hub-page.sch-seo-hub .post-item.sch-seo-card-item .post-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

.tax-hub-page.sch-seo-hub .post-item.sch-seo-card-item .post-title,
.tax-hub-page.sch-seo-hub .post-item.sch-seo-card-item .post-excerpt,
.tax-hub-page.sch-seo-hub .post-item.sch-seo-card-item .sch-seo-card-meta {
    overflow-wrap: anywhere;
    word-break: normal;
}

.sch-countries-page .sch-seo-country-card .post-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sch-countries-page .sch-seo-country-card .read-more-btn {
    margin-top: auto;
}

/* Contacts page (/contacts/) */
.sch-contacts-page .sch-contacts-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 2rem;
}

.sch-contacts-panel {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 4px 24px rgba(38, 70, 83, 0.06);
}

.sch-contacts-panel--aside {
    padding: 1.5rem 1.5rem 1.35rem;
    border-top: 4px solid #2a9d8f;
    background: linear-gradient(180deg, #f0fdf9 0%, #fff 4rem);
}

.sch-contacts-panel--form {
    padding: 1.5rem 1.5rem 1.75rem;
}

.sch-contacts-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2a9d8f;
}

.sch-contacts-panel__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.25rem, 3.2vw, 1.6rem);
    line-height: 1.25;
    color: #264653;
}

.sch-contacts-panel__lead {
    margin: 0 0 1.35rem;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.sch-contacts-cards {
    list-style: none;
    margin: 0 0 1.35rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.sch-contacts-cards__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(42, 157, 143, 0.15);
}

.sch-contacts-cards__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(38, 70, 83, 0.08);
}

.sch-contacts-cards__label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
}

.sch-contacts-cards__value {
    display: block;
    color: #1f2937;
    font-size: 0.9375rem;
    line-height: 1.45;
    text-decoration: none;
}

a.sch-contacts-cards__value {
    color: #2a9d8f;
    font-weight: 600;
}

a.sch-contacts-cards__value:hover {
    text-decoration: underline;
}

.sch-contacts-tips {
    padding-top: 1.15rem;
    border-top: 1px solid rgba(38, 70, 83, 0.1);
}

.sch-contacts-tips__title {
    margin: 0 0 0.65rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #264653;
}

.sch-contacts-tips__list {
    margin: 0;
    padding-left: 1.15rem;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.55;
}

.sch-contacts-tips__list li + li {
    margin-top: 0.35rem;
}

.sch-contacts-form__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.2rem, 3vw, 1.45rem);
    color: #264653;
}

.sch-contacts-form__subtitle {
    margin: 0 0 1.25rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

.sch-contacts-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sch-contacts-form__field {
    margin-bottom: 1rem;
}

.sch-contacts-form__field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.sch-contacts-form__field input,
.sch-contacts-form__field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.72rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font: inherit;
    font-size: 0.9375rem;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sch-contacts-form__field input::placeholder,
.sch-contacts-form__field textarea::placeholder {
    color: #9ca3af;
}

.sch-contacts-form__field input:hover,
.sch-contacts-form__field textarea:hover {
    background: #fff;
}

.sch-contacts-form__field input:focus,
.sch-contacts-form__field textarea:focus {
    outline: none;
    background: #fff;
    border-color: #2a9d8f;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.15);
}

.sch-contacts-form__field textarea {
    min-height: 9.5rem;
    resize: vertical;
}

.sch-contacts-form__status {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.sch-contacts-form__status--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sch-contacts-form__status--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.sch-contacts-form__actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.25rem;
}

.sch-contacts-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 11rem;
    padding: 0.8rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2a9d8f 0%, #238b7f 100%);
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(42, 157, 143, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sch-contacts-form__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(42, 157, 143, 0.4);
}

.sch-contacts-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sch-contacts-form__submit-icon {
    font-size: 1.05rem;
    line-height: 1;
    transition: transform 0.15s ease;
}

.sch-contacts-form__submit:hover:not(:disabled) .sch-contacts-form__submit-icon {
    transform: translateX(3px);
}

.sch-contacts-explore {
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 4px 24px rgba(38, 70, 83, 0.06);
}

.sch-contacts-explore__title {
    margin: 0 0 1rem;
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    color: #264653;
}

.sch-contacts-explore__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .sch-contacts-explore__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sch-contacts-explore__list a {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    height: 100%;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.sch-contacts-explore__list a:hover {
    border-color: #2a9d8f;
    background: #f0fdf9;
    transform: translateY(-1px);
}

.sch-contacts-explore__label {
    font-weight: 600;
    color: #264653;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.sch-contacts-explore__hint {
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .sch-contacts-page .sch-contacts-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sch-contacts-form__row {
        grid-template-columns: 1fr;
    }

    .sch-contacts-panel--aside,
    .sch-contacts-panel--form {
        padding: 1.25rem;
    }

    .sch-contacts-form__actions {
        justify-content: stretch;
    }

    .sch-contacts-form__submit {
        width: 100%;
    }
}

/* Homepage — Latest Open PhD Positions (after Browse by Country) */
.home-open-positions {
    margin: 0 0 2.5rem;
    padding: 1.35rem 1.35rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #457b9d;
    background: linear-gradient(180deg, #f0f7fc 0%, #fff 3.5rem);
    box-shadow: 0 4px 24px rgba(38, 70, 83, 0.06);
}

.home-open-positions__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.home-open-positions__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #457b9d;
}

.home-open-positions__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    line-height: 1.25;
    color: #264653;
}

.home-open-positions__lead {
    margin: 0;
    max-width: 38rem;
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.home-open-positions__all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #264653;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.home-open-positions__all:hover {
    border-color: #457b9d;
    background: #f0f7fc;
    transform: translateY(-1px);
}

.home-open-positions__all-icon {
    line-height: 1;
}

.home-open-positions__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .home-open-positions__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-open-positions__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-open-positions__card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    height: 100%;
    padding: 1rem 1.05rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.home-open-positions__card:hover {
    border-color: #457b9d;
    box-shadow: 0 8px 24px rgba(69, 123, 157, 0.12);
    transform: translateY(-2px);
}

.home-open-positions__card-title {
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-open-positions__card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    color: #4b5563;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.home-open-positions__icon {
    display: inline-block;
    width: 1rem;
    margin-right: 0.15rem;
}

.home-open-positions__card-cta {
    margin-top: auto;
    padding-top: 0.35rem;
    color: #457b9d;
    font-size: 0.8125rem;
    font-weight: 600;
}

.home-open-positions__card:hover .home-open-positions__card-cta {
    color: #264653;
}

@media (max-width: 767px) {
    .home-open-positions__head {
        flex-direction: column;
    }

    .home-open-positions__all {
        align-self: flex-start;
    }
}

