/* Test-centre directory — aligned with the current public site shell. */

.page-test-centres .tc-hero {
    padding: clamp(58px, 7vw, 92px) 0 clamp(48px, 6vw, 76px) !important;
    background: #e5eee9 !important;
    border-bottom: 1px solid rgba(11, 107, 82, .16) !important;
}

.page-test-centres .tc-hero .container,
.page-test-centres .tc-tools .container,
.page-test-centres .tc-section .container,
.page-test-centres .tc-resources .container,
.page-test-centres .tc-cta .container {
    width: min(calc(100% - 44px), 1180px) !important;
    max-width: 1180px !important;
    margin-inline: auto !important;
}

.page-test-centres .tc-hero-copy {
    max-width: 790px;
}

.page-test-centres .tc-hero h1 {
    max-width: 760px !important;
    margin: 0 0 20px !important;
    color: #191713 !important;
    font-size: clamp(44px, 5.2vw, 68px) !important;
    font-weight: 750 !important;
    letter-spacing: -.045em !important;
    line-height: 1.02 !important;
}

.page-test-centres .tc-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(25, 23, 19, .68) !important;
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.55;
}

.page-test-centres .tc-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(11, 107, 82, .2);
}

.page-test-centres .tc-hero-facts span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #27483f;
    font-size: 14px;
    font-weight: 650;
}

.page-test-centres .tc-hero-facts i {
    color: #0b6b52;
    font-size: 17px;
}

.page-test-centres .tc-tools {
    padding: clamp(38px, 5vw, 60px) 0;
    background: #f2efe7;
    border-bottom: 1px solid rgba(25, 23, 19, .12);
}

.page-test-centres .tc-tools-panel {
    padding: clamp(24px, 4vw, 40px);
    background: #fffefa;
    border: 1px solid rgba(25, 23, 19, .16);
    border-radius: 12px;
}

.page-test-centres .tc-tools-heading,
.page-test-centres .tc-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-test-centres .tc-tools-heading {
    margin-bottom: 24px;
}

.page-test-centres .tc-tools-heading h2,
.page-test-centres .tc-section-heading h2 {
    margin: 0 0 7px;
    color: #191713;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 750 !important;
    letter-spacing: -.035em !important;
}

.page-test-centres .tc-tools-heading p,
.page-test-centres .tc-section-heading p {
    margin: 0;
    color: rgba(25, 23, 19, .62);
    font-size: 15px;
}

.page-test-centres .tc-results-count {
    flex: 0 0 auto;
    padding-bottom: 4px;
    color: #0b6b52 !important;
    font-weight: 700;
}

.page-test-centres .tc-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.page-test-centres .tc-search-wrap > i {
    position: absolute;
    left: 17px;
    z-index: 1;
    color: rgba(25, 23, 19, .5);
    font-size: 18px;
    pointer-events: none;
}

.page-test-centres #tc-search {
    width: 100%;
    min-height: 58px;
    padding: 14px 92px 14px 50px;
    color: #191713;
    background: #fff;
    border: 1px solid rgba(25, 23, 19, .28);
    border-radius: 9px !important;
    font-size: 16px;
}

.page-test-centres #tc-search::placeholder {
    color: rgba(25, 23, 19, .48);
}

.page-test-centres #tc-search-clear {
    position: absolute;
    right: 9px;
    min-height: 40px;
    padding: 7px 12px;
    color: #0b6b52;
    background: transparent;
    border: 0;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: 700;
}

.page-test-centres #tc-search-clear:hover {
    background: #e5eee9;
}

.page-test-centres .tc-filter-row {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 28px;
    padding-top: 26px;
    border-top: 1px solid rgba(25, 23, 19, .13);
}

.page-test-centres .tc-filter-group {
    min-width: 0;
}

.page-test-centres .tc-filter-group h3 {
    margin: 0 0 12px;
    color: rgba(25, 23, 19, .72);
    font-size: 13px;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.page-test-centres .tc-letters,
.page-test-centres .tc-region-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.page-test-centres .tc-letters a,
.page-test-centres .tc-region-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    color: #285347;
    background: #f6f8f6 !important;
    border: 1px solid rgba(11, 107, 82, .2);
    border-radius: 6px !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
}

.page-test-centres .tc-letters a {
    width: 36px;
    padding: 0;
}

.page-test-centres .tc-region-links a {
    padding: 9px 12px;
}

.page-test-centres .tc-letters a:hover,
.page-test-centres .tc-region-links a:hover {
    color: #fffefa;
    background: #0b6b52 !important;
    border-color: #0b6b52;
}

.page-test-centres .tc-section {
    padding: clamp(58px, 7vw, 90px) 0 !important;
    background: #fbf9f4 !important;
}

.page-test-centres .tc-section-heading {
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(25, 23, 19, .18);
}

.page-test-centres .tc-letter-group {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 28px;
    margin: 0;
    padding: 26px 0;
    scroll-margin-top: 120px;
    border-bottom: 1px solid rgba(25, 23, 19, .13);
}

.page-test-centres .tc-letter-group[hidden],
.page-test-centres .tc-link[hidden],
.page-test-centres .tc-no-results[hidden],
.page-test-centres #tc-search-clear[hidden] {
    display: none !important;
}

.page-test-centres .tc-letter-group:first-child {
    padding-top: 0;
}

.page-test-centres .tc-letter-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.page-test-centres .tc-letter-group > h3 {
    margin: 5px 0 0;
    color: #0b6b52;
    font-size: 28px;
    font-weight: 750 !important;
    letter-spacing: -.03em !important;
}

.page-test-centres .tc-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 12px !important;
}

.page-test-centres .tc-link {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    height: 100%;
    padding: 16px 17px !important;
    color: #191713 !important;
    background: #fffefa !important;
    border: 1px solid rgba(25, 23, 19, .16) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
}

.page-test-centres .tc-link > i:first-child {
    color: #0b6b52 !important;
    font-size: 18px;
}

.page-test-centres .tc-link > i:last-child {
    color: rgba(25, 23, 19, .4) !important;
    font-size: 14px;
}

.page-test-centres .tc-link:hover {
    color: #0b6b52 !important;
    background: #eef4f1 !important;
    border-color: rgba(11, 107, 82, .42) !important;
}

.page-test-centres .tc-link:hover > i:last-child {
    color: #0b6b52 !important;
}

.page-test-centres .tc-no-results {
    padding: 30px;
    background: #fffefa;
    border: 1px solid rgba(25, 23, 19, .16);
    border-radius: 10px;
}

.page-test-centres .tc-no-results h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.page-test-centres .tc-no-results p {
    margin: 0;
    color: rgba(25, 23, 19, .62);
}

.page-test-centres .tc-resources {
    padding: clamp(58px, 7vw, 86px) 0 !important;
    background: #f2efe7 !important;
    border-top: 1px solid rgba(25, 23, 19, .12);
    border-bottom: 1px solid rgba(25, 23, 19, .12);
}

.page-test-centres .tc-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.page-test-centres .tc-resource-card {
    display: flex;
    flex-direction: column;
    min-height: 235px;
    padding: 25px !important;
    color: #191713 !important;
    background: #fffefa !important;
    border: 1px solid rgba(25, 23, 19, .16) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    text-decoration: none;
}

.page-test-centres .tc-resource-card > i {
    margin-bottom: 28px;
    color: #0b6b52;
    font-size: 24px;
}

.page-test-centres .tc-resource-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 17px;
}

.page-test-centres .tc-resource-card > span {
    color: rgba(25, 23, 19, .62);
    font-size: 14px;
    line-height: 1.55;
}

.page-test-centres .tc-resource-card small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
    color: #0b6b52;
    font-size: 13px;
    font-weight: 700;
}

.page-test-centres .tc-resource-card:hover {
    color: #0b6b52 !important;
    background: #eef4f1 !important;
    border-color: rgba(11, 107, 82, .42) !important;
}

.page-test-centres .tc-cta {
    padding: clamp(52px, 7vw, 78px) 0 !important;
    color: #fffefa !important;
    background: #123b31 !important;
    text-align: left !important;
}

.page-test-centres .tc-cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-test-centres .tc-cta h2 {
    margin: 0 0 10px;
    color: #fffefa !important;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 750 !important;
}

.page-test-centres .tc-cta p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 254, 250, .72) !important;
}

.page-test-centres .tc-cta-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 18px;
    color: #123b31 !important;
    background: #fffefa !important;
    border: 1px solid #fffefa !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.page-test-centres .tc-cta-btn:hover {
    color: #fffefa !important;
    background: transparent !important;
}

@media (max-width: 991px) {
    .page-test-centres .tc-filter-row {
        grid-template-columns: 1fr;
    }

    .page-test-centres .tc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .page-test-centres .tc-resource-grid {
        grid-template-columns: 1fr;
    }

    .page-test-centres .tc-resource-card {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .page-test-centres .tc-hero .container,
    .page-test-centres .tc-tools .container,
    .page-test-centres .tc-section .container,
    .page-test-centres .tc-resources .container,
    .page-test-centres .tc-cta .container {
        width: min(calc(100% - 32px), 1180px) !important;
    }

    .page-test-centres .tc-hero h1 {
        font-size: clamp(38px, 11vw, 50px) !important;
    }

    .page-test-centres .tc-tools-heading,
    .page-test-centres .tc-section-heading,
    .page-test-centres .tc-cta .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-test-centres .tc-tools-heading {
        gap: 12px;
    }

    .page-test-centres .tc-section-heading {
        gap: 4px;
    }

    .page-test-centres .tc-results-count {
        padding-bottom: 0;
    }

    .page-test-centres .tc-letter-group {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
    }

    .page-test-centres .tc-grid {
        grid-template-columns: 1fr !important;
    }

    .page-test-centres .tc-cta-btn {
        width: 100%;
    }
}

@media (max-width: 479px) {
    .page-test-centres .tc-hero .container,
    .page-test-centres .tc-tools .container,
    .page-test-centres .tc-section .container,
    .page-test-centres .tc-resources .container,
    .page-test-centres .tc-cta .container {
        width: min(calc(100% - 24px), 1180px) !important;
    }

    .page-test-centres .tc-tools-panel {
        padding: 20px;
    }

    .page-test-centres .tc-letter-group {
        display: block;
    }

    .page-test-centres .tc-letter-group > h3 {
        margin: 0 0 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-test-centres * {
        scroll-behavior: auto !important;
    }
}
