/**
 * 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;
}

@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 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.sch-seo-breadcrumbs .breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #6b7280;
}

.sch-seo-breadcrumbs a {
    color: #2a9d8f;
    text-decoration: none;
}

.sch-seo-breadcrumbs a:hover {
    text-decoration: underline;
}

.sch-seo-breadcrumbs [aria-current="page"] {
    color: #374151;
}

/* Hero uses global .hero-section from common.css / custom-style.css (same as institute pages). */
.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 common.css (lazy load via JS) */
.sch-seo-page .posts-section {
    margin-bottom: 2rem;
}

.sch-seo-page .post-list,
.sch-seo-page .post-grid {
    width: 100%;
    max-width: 100%;
}

/* 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;
}

.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 {
    margin-top: 1rem;
}

.single-post-page .tags-section {
    margin-bottom: 1.25rem;
}

.single-post-page {
    padding-bottom: 2.75rem;
}

@media (min-width: 768px) {
    .single-post-page {
        padding-bottom: 3.25rem;
    }

    .single-post-page .sch-post-related + .tags-section {
        margin-top: 1.25rem;
    }

    .single-post-page .tags-section {
        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__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 2rem;
    padding: 0;
}

.sch-seo-filter .react-filter-container {
    min-height: 250px;
}

.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;
}
