/* ============================================================
   WORDPRESS CSS VARIABLES
   ============================================================
   This CSS uses WordPress preset variables so it integrates with
   WordPress Global Styles. Add your custom colors via:
   Appearance → Customize → Colors (or Appearance → Editor → Styles → Colors for block themes).

   WordPress exposes these as CSS variables:
   - var(--wp--preset--color--deep-green)
   - var(--wp--preset--color--darker-green)
   - var(--wp--preset--color--sage)
   - var(--wp--preset--color--gold)
   - var(--wp--preset--color--red)
   - var(--wp--preset--color--base) (default background/white)
   - var(--wp--preset--color--contrast) (default text/dark)
   - var(--wp--preset--font-family--heading) (heading font)
   - var(--wp--preset--font-family--body) (body font)
   - var(--wp--preset--spacing--40) (padding units)
   - var(--wp--preset--spacing--70) (larger padding units)

   Fallback values are provided in case WordPress variables are not set.
   ============================================================ */

:root {
    /* Map short names to WordPress preset variables with fallbacks */
    /* Primary color is the logo red — matches the AHPC logo branding */
    --green: var(--wp--preset--color--deep-green, #B3382C);
    --green-dk: var(--wp--preset--color--darker-green, #8C2E25);
    --sage: var(--wp--preset--color--sage, #F5EDED);
    --gold: var(--wp--preset--color--gold, #E0AE2F);
    --red: var(--wp--preset--color--red, #B3382C);
    --ghana-green: #1D7A46; /* Keep Ghana flag green separate */
    --ink: var(--wp--preset--color--contrast, #14221F);
    --muted: var(--wp--preset--color--contrast, #51605C);
    --line: var(--wp--preset--color--contrast, #D3DDD7);
    --white: var(--wp--preset--color--base, #fff);
    --serif: var(--wp--preset--font-family--heading, "Source Serif 4", Georgia, "Times New Roman", serif);
    --sans: var(--wp--preset--font-family--body, "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 17px;
}
a {
    color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}
.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
h1, h2, h3 {
    font-family: var(--serif);
    line-height: 1.2;
    color: var(--green-dk);
}
h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin-bottom: 12px;
}
.lead {
    color: var(--muted);
    max-width: 62ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 1rem;
}
.btn-gold {
    background: var(--gold);
    color: var(--green-dk);
}
.btn-gold:hover {
    background: #efc04a;
}
.btn-line {
    border-color: #fff;
    color: #fff;
}
.btn-line:hover {
    background: rgba(255, 255, 255, 0.12);
}
.btn-green {
    background: var(--green);
    color: #fff;
}
.btn-green:hover {
    background: var(--green-dk);
}

/* ============================================================
   GHANA FLAG STRIPE
   ============================================================ */
.ghana-stripe,
.ahpc-stripe {
    height: 6px;
    background: linear-gradient(90deg, var(--red) 33.3%, var(--gold) 33.3% 66.6%, #1D7A46 66.6%);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar,
.ahpc-topbar {
    background: var(--green-dk);
    color: #e8d5d5;
    font-size: 0.9rem;
}
.topbar .wrap,
.ahpc-topbar .ahpc-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.topbar a,
.ahpc-topbar a {
    text-decoration: none;
}
.topbar a:hover,
.ahpc-topbar a:hover {
    text-decoration: underline;
}

/* ============================================================
   HEADER / SITE NAVIGATION
   ============================================================ */
header.site,
.ahpc-site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}
header.site .wrap,
.ahpc-site-header .ahpc-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand,
.ahpc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo,
.ahpc-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    flex: none;
}
.ahpc-logo-img {
    height: 60px;
    width: auto;
    flex: none;
}
.brand b,
.ahpc-brand b {
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--green-dk);
    display: block;
    line-height: 1.2;
}
.brand small,
.ahpc-brand small {
    color: var(--muted);
    font-size: 0.8rem;
}
nav ul,
#ahpc-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    align-items: center;
    margin: 0;
    padding: 0;
}
nav a,
#ahpc-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
nav a:hover,
#ahpc-nav a:hover {
    color: var(--green);
}
.menu-btn,
.ahpc-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: 700;
    cursor: pointer;
}

/* ============================================================
   AHPC WRAP (header/footer flex container)
   ============================================================ */
.topbar .wrap,
.ahpc-topbar .ahpc-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.site-header .wrap,
.ahpc-site-header .ahpc-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* ============================================================
   AHPC CONTAINER (block editor content sections)
   ============================================================ */
.ahpc-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 24px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
/* Constrain wp-block-columns inside ahpc-container so they don't stretch full-width */
.ahpc-container .wp-block-columns {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: var(--green);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    border: 60px solid rgba(224, 174, 47, 0.14);
}
.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    padding-top: 72px;
    padding-bottom: 72px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    margin-bottom: 18px;
}
.hero p {
    color: #e8d5d5;
    max-width: 52ch;
    margin-bottom: 28px;
    font-size: 1.1rem;
}
.hero .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   VERIFY BOX
   ============================================================ */
.verify-box {
    background: var(--white);
    color: var(--ink);
    border-radius: 8px;
    padding: 28px;
    border-top: 6px solid var(--gold);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.verify-box h2 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}
.verify-box p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.verify-box label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.verify-box input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 4px;
    margin-bottom: 14px;
    font-family: var(--sans);
    font-size: 1rem;
}
.verify-box input:focus {
    border-color: var(--green);
}
.verify-box button {
    width: 100%;
}
.verify-box small {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.quick {
    padding: 64px 0 24px;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    margin-top: 28px;
}
.quick-card {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background 0.15s;
}
.quick-card:hover {
    background: var(--sage);
}
.quick-card h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-family: var(--serif);
}
.quick-card p {
    color: var(--muted);
    font-size: 0.95rem;
}
.quick-card .cta {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--green);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    padding: 64px 0;
}
.about .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about p + p {
    margin-top: 14px;
}
.photo-placeholder {
    aspect-ratio: 4/3;
    border-radius: 8px;
    background: linear-gradient(135deg, #cfdcd5, #a9c1b6);
    display: grid;
    place-items: center;
    color: var(--green-dk);
    font-weight: 600;
    text-align: center;
    padding: 20px;
    position: relative;
}
.photo-placeholder::before {
    content: "";
    position: absolute;
    left: -14px;
    bottom: -14px;
    width: 110px;
    height: 110px;
    border-radius: 8px;
    border: 4px solid var(--gold);
    z-index: -1;
}

/* ============================================================
   CPD SECTION
   ============================================================ */
.cpd {
    background: var(--sage);
    padding: 64px 0;
}
.cpd .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}
.cpd-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}
.cpd-table th,
.cpd-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.cpd-table th {
    background: var(--green);
    color: #fff;
    font-weight: 600;
}
.cpd-table td:last-child {
    font-weight: 700;
    color: var(--green);
}
.links-list {
    list-style: none;
    margin-top: 18px;
    padding: 0;
}
.links-list li {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.links-list a {
    text-decoration: none;
    font-weight: 600;
}
.links-list a:hover {
    color: var(--green);
    text-decoration: underline;
}
.callout-box {
    margin-top: 24px;
    background: var(--green-dk);
    color: #fff;
    padding: 22px;
    border-radius: 8px;
}
.callout-box h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.callout-box p {
    color: #e8d5d5;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

/* ============================================================
   PROFESSIONS GRID
   ============================================================ */
.pros {
    padding: 64px 0;
}
.pro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 26px;
}
.pro-grid a {
    border: 1px solid var(--line);
    border-left: 5px solid var(--green);
    padding: 16px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    display: block;
    transition: background 0.15s, border-left-color 0.15s;
}
.pro-grid a:hover {
    border-left-color: var(--gold);
    background: var(--sage);
}

/* ============================================================
   CREDENTIAL VERIFICATION + PUBLIC NOTICE
   ============================================================ */
.notices {
    padding: 0 0 64px;
}
.notices .wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}
.steps-list {
    margin: 14px 0 0 20px;
}
.steps-list li {
    margin-bottom: 6px;
}
.public-notice {
    border: 2px solid var(--red);
    background: #fdf3f1;
    border-radius: 8px;
    padding: 24px;
}
.public-notice h3 {
    color: var(--red);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news {
    background: var(--sage);
    padding: 64px 0;
}
.news-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 26px;
}
.post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    border: 1px solid var(--line);
}
.post:hover h3 {
    text-decoration: underline;
}
.post .img {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #bcd0c7, #8fb0a2);
}
.post .text {
    padding: 18px;
}
.post time {
    color: var(--muted);
    font-size: 0.85rem;
}
.post h3 {
    font-size: 1.1rem;
    margin: 4px 0 6px;
}
.post p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #082F2B;
    color: #c4d6d0;
    padding: 56px 0 24px;
}
footer .cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
}
footer h3 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
footer ul {
    list-style: none;
}
footer li {
    margin-bottom: 8px;
}
footer a {
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
    color: #fff;
}
.copy {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 36px;
    padding-top: 18px;
    font-size: 0.88rem;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.ahpc-stats {
    background: linear-gradient(135deg, #0E4A43 0%, #082F2B 100%);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.ahpc-stats::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 60px solid rgba(224, 174, 47, 0.08);
    pointer-events: none;
}
.ahpc-stats::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold, #E0AE2F);
}
.ahpc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.ahpc-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    position: relative;
}
.ahpc-stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.15);
}
.ahpc-stat-number {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 8px;
}
.ahpc-stat-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ahpc-footer {
   background: #111;
   color: #b0b0b0;
   padding: 64px 0 28px;
}
.ahpc-footer .ahpc-wrap,
.ahpc-stats .ahpc-wrap {
   max-width: 1160px;
   margin: 0 auto;
   padding: 0 24px;
   display: block;
   width: 100%;
   box-sizing: border-box;
}
.ahpc-footer-cols {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.1fr;
    gap: 40px;
    align-items: start;
}

/* Newsletter row - full width above nav columns */
.ahpc-footer-newsletter-row {
    margin-bottom: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}
.ahpc-footer-newsletter-row .ahpc-footer-newsletter {
    max-width: 100%;
}
.ahpc-footer-newsletter-row .ahpc-footer-newsletter h3 {
    display: inline-block;
}
.ahpc-footer-newsletter-row .ahpc-footer-newsletter h3::after {
    left: 50%;
    transform: translateX(-50%);
}
.ahpc-footer-newsletter-row .ahpc-newsletter-form {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}
.ahpc-footer h3 {
    color: #fff;
    font-size: 0.82rem;
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}
.ahpc-footer h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--gold, #E0AE2F);
}
.ahpc-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ahpc-footer li {
    margin-bottom: 12px;
    line-height: 1.5;
}
.ahpc-footer a {
    text-decoration: none;
    color: #b0b0b0;
    font-size: 0.9rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}
.ahpc-footer a:hover {
    text-decoration: none;
    color: var(--gold, #E0AE2F);
    padding-left: 4px;
}
.ahpc-footer-about {
    max-width: 100%;
}
.ahpc-footer-about p {
    font-size: 0.88rem;
    line-height: 1.75;
    margin-bottom: 24px;
    color: #a0a0a0;
}
.ahpc-footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}
.ahpc-social-links {
    display: flex;
    gap: 12px;
}
.ahpc-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #b0b0b0;
    transition: all 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.ahpc-social-link:hover {
    background: var(--green, #B3382C);
    color: #fff;
    border-color: var(--green, #B3382C);
    transform: translateY(-2px);
}

/* Newsletter in footer */
.ahpc-footer-newsletter h3 {
    font-size: 0.85rem;
    margin-bottom: 18px;
    letter-spacing: 1.2px;
}
.ahpc-newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    width: 100%;
}
.ahpc-newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.92rem;
    font-family: var(--sans);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.ahpc-newsletter-form input[type="email"]::placeholder {
    color: #777;
}
.ahpc-newsletter-form input[type="email"]:focus {
    border-color: var(--gold, #E0AE2F);
    background: rgba(255, 255, 255, 0.08);
}
.ahpc-newsletter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 48px;
    border: none;
    border-radius: 0 4px 4px 0;
    background: var(--gold, #E0AE2F);
    color: var(--green-dk, #082F2B);
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 700;
}
.ahpc-newsletter-btn:hover {
    background: #c9992a;
}

/* Contact section in footer */
.ahpc-footer .ahpc-footer-cols > div:last-child li {
    font-size: 0.88rem;
    color: #a0a0a0;
    line-height: 1.6;
}

.ahpc-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 48px;
    padding-top: 24px;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    letter-spacing: 0.3px;
}

/* ============================================================
   BLOCK EDITOR — HERO SECTION
   ============================================================ */
.ahpc-hero-section {
    background: var(--green);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ahpc-hero-section::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    border: 60px solid rgba(224, 174, 47, 0.14);
}
.ahpc-hero-section .wp-block-columns {
    position: relative;
    z-index: 1;
}
.ahpc-hero-section h1 {
    color: #fff !important;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    margin-bottom: 18px;
}
.ahpc-hero-section p {
    color: #e8d5d5 !important;
    max-width: 52ch;
    margin-bottom: 28px;
    font-size: 1.1rem;
}

/* ============================================================
   BLOCK EDITOR — CTA BUTTONS (in hero)
   ============================================================ */
.ahpc-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ahpc-cta-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    color: var(--ink);
    border-radius: 8px;
    padding: 20px 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 5px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ahpc-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-left-color: var(--green);
}
.ahpc-cta-btn-primary { border-left-color: var(--green); }
.ahpc-cta-btn-secondary { border-left-color: var(--gold); }
.ahpc-cta-btn-tertiary { border-left-color: var(--muted); }
.ahpc-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sage);
    font-size: 1.4rem;
    flex-shrink: 0;
}
.ahpc-cta-btn-primary .ahpc-cta-icon { background: var(--green); color: #fff; }
.ahpc-cta-btn-secondary .ahpc-cta-icon { background: var(--gold); color: var(--green-dk); }
.ahpc-cta-text strong {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
}
.ahpc-cta-text small {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================================================
   BLOCK EDITOR — GALLERY BANNER
   ============================================================ */
.ahpc-gallery-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.ahpc-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.ahpc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ahpc-gallery-item:hover img {
    transform: scale(1.05);
}
.ahpc-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(179, 56, 44, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ahpc-gallery-item:hover .ahpc-gallery-overlay {
    opacity: 1;
}
.ahpc-gallery-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 16px;
}

/* ============================================================
   BLOCK EDITOR — QUICK ACTIONS
   ============================================================ */
.ahpc-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}
.ahpc-quick-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
    background: #fff;
}
.ahpc-quick-card:hover {
    border-color: var(--green);
    background: var(--sage);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ahpc-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--sage);
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: background 0.2s;
}
.ahpc-quick-card:hover .ahpc-quick-icon {
    background: var(--green);
    color: #fff;
}
.ahpc-quick-card h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--green-dk);
}
/* Fix: quick action card titles and descriptions — force dark text color */
.ahpc-quick-card h3,
.ahpc-quick-card h3 a {
    color: #14221F !important;
}
.ahpc-quick-card p {
    color: #51605C !important;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}
.ahpc-quick-cta {
    display: inline-block;
    margin-top: 6px;
    font-weight: 700;
    color: var(--green);
    font-size: 0.9rem;
}

/* ============================================================
   BLOCK EDITOR — ABOUT IMAGES
   ============================================================ */
.ahpc-about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ahpc-about-img {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.ahpc-about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.ahpc-about-img:first-child {
    aspect-ratio: 4/3;
}
.ahpc-about-img:last-child {
    aspect-ratio: 4/3;
    margin-top: 32px;
}
.ahpc-about-img::after {
    content: "";
    position: absolute;
    left: -10px;
    bottom: -10px;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 3px solid var(--gold);
    z-index: -1;
}

/* ============================================================
   BLOCK EDITOR — CPD TABLE
   ============================================================ */
.ahpc-cpd-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}
.ahpc-cpd-table th,
.ahpc-cpd-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.ahpc-cpd-table th {
    background: var(--green);
    color: #fff;
    font-weight: 600;
}
.ahpc-cpd-table td:last-child {
    font-weight: 700;
    color: var(--green);
}

/* ============================================================
   BLOCK EDITOR — LINKS LIST
   ============================================================ */
.ahpc-links-list {
    list-style: none;
    margin-top: 18px;
    padding: 0;
}
.ahpc-links-list li {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.ahpc-links-list a {
    text-decoration: none;
    font-weight: 600;
}
.ahpc-links-list a:hover {
    color: var(--green);
    text-decoration: underline;
}

/* ============================================================
   BLOCK EDITOR — CALLOUT BOX
   ============================================================ */
.ahpc-callout-box {
    margin-top: 24px;
    background: var(--green-dk);
    color: #fff;
    padding: 22px;
    border-radius: 8px;
}
.ahpc-callout-box h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.ahpc-callout-box p {
    color: #e8d5d5;
    font-size: 0.95rem;
    margin-bottom: 14px;
}

/* ============================================================
   BLOCK EDITOR — PROFESSIONS GRID
   ============================================================ */
.ahpc-pro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 26px;
}
.ahpc-pro-card {
    border: 1px solid var(--line);
    border-left: 5px solid var(--green);
    padding: 16px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    display: block;
    transition: background 0.15s, border-left-color 0.15s;
}
.ahpc-pro-card:hover {
    border-left-color: var(--gold);
    background: var(--sage);
}

/* ============================================================
   BLOCK EDITOR — PARALLAX BANNER
   ============================================================ */
.ahpc-parallax-banner {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
}
.ahpc-parallax-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(179, 56, 44, 0.82);
}
.ahpc-parallax-banner .ahpc-wrap {
    position: relative;
    z-index: 1;
}
.ahpc-parallax-banner h2 {
    color: #fff;
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 12px;
}
.ahpc-parallax-banner p {
    color: #e8d5d5;
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto;
}

/* ============================================================
   BLOCK EDITOR — PUBLIC NOTICE
   ============================================================ */
.ahpc-public-notice {
    border: 2px solid var(--red);
    background: #fdf3f1;
    border-radius: 8px;
    padding: 24px;
}
.ahpc-public-notice h3 {
    color: var(--red);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

/* ============================================================
   BLOCK EDITOR — NEWS POST CARDS (Query Loop)
   ============================================================ */
/* Query Loop grid layout — 3 columns */
.wp-block-query .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 26px 0 0 !important;
}
.wp-block-query .wp-block-post-template li {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
.ahpc-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    text-decoration: none;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ahpc-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ahpc-post-card .wp-block-post-featured-image {
    margin: 0;
}
.ahpc-post-card .wp-block-post-featured-image img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    height: auto;
    display: block;
}
.ahpc-post-body {
    padding: 18px;
}
.ahpc-post-body time,
.ahpc-post-body .wp-block-post-date {
    color: var(--muted);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}
.ahpc-post-body h3,
.ahpc-post-body .wp-block-post-title {
    font-size: 1.1rem;
    margin: 4px 0 6px;
}
.ahpc-post-body h3 a,
.ahpc-post-body .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
}
.ahpc-post-body h3 a:hover,
.ahpc-post-body .wp-block-post-title a:hover {
    color: var(--green);
    text-decoration: underline;
}
.ahpc-post-body p,
.ahpc-post-body .wp-block-post-excerpt {
    color: var(--muted);
    font-size: 0.95rem;
}
.ahpc-post-body .wp-block-post-excerpt__excerpt {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ============================================================
   BLOCK EDITOR — TEAM SECTION
   ============================================================ */
.ahpc-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 26px;
}
.ahpc-team-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.ahpc-team-img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 3px solid var(--sage);
    transition: border-color 0.2s;
}
.ahpc-team-card:hover .ahpc-team-img {
    border-color: var(--gold);
}
.ahpc-team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ahpc-team-card strong {
    display: block;
    font-size: 1rem;
    color: var(--green-dk);
}
.ahpc-team-card span {
    color: var(--muted);
    font-size: 0.88rem;
}
/* Fix: team section uses h3 for names and p for roles — force dark text color */
.ahpc-team-card h3,
.ahpc-team-card .ahpc-team-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #14221F !important;
    margin: 10px 0 4px !important;
}
.ahpc-team-card p,
.ahpc-team-card .ahpc-team-role {
    color: #51605C !important;
    font-size: 0.88rem;
    margin: 0 !important;
}

/* ============================================================
   BLOCK EDITOR — SECTION MODIFIERS
   ============================================================ */
.ahpc-section-sage {
    background: var(--sage);
}
.ahpc-lead {
    color: var(--muted);
    max-width: 62ch;
}

/* ============================================================
   BLOCK EDITOR — BUTTON STYLES
   ============================================================ */
.ahpc-btn-gold .wp-block-button__link {
    background: var(--gold);
    color: var(--green-dk);
    font-weight: 700;
    border-radius: 4px;
    padding: 13px 22px;
    font-family: var(--sans);
}
.ahpc-btn-gold .wp-block-button__link:hover {
    background: #efc04a;
}
.ahpc-btn-line .wp-block-button__link {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 700;
    border-radius: 4px;
    padding: 13px 22px;
    font-family: var(--sans);
}
.ahpc-btn-line .wp-block-button__link:hover {
    background: rgba(255,255,255,0.12);
}
.ahpc-btn-green .wp-block-button__link {
    background: var(--green);
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    padding: 13px 22px;
    font-family: var(--sans);
}
.ahpc-btn-green .wp-block-button__link:hover {
    background: var(--green-dk);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 960px) {
    .hero .wrap,
    .about .wrap,
    .cpd .wrap,
    .notices .wrap {
        grid-template-columns: 1fr;
    }
    .ahpc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-grid,
    .ahpc-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pro-grid,
    .ahpc-pro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid,
    .ahpc-news-grid {
        grid-template-columns: 1fr 1fr;
    }
    .wp-block-query .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .ahpc-gallery-banner {
        grid-template-columns: repeat(2, 1fr);
    }
    .ahpc-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    footer .cols,
    .ahpc-footer-cols {
        grid-template-columns: 1fr 1fr;
    }
    .ahpc-about-images {
        grid-template-columns: 1fr;
    }
    .ahpc-about-img:last-child {
        margin-top: 0;
    }
}

@media (max-width: 720px) {
    .menu-btn,
    .ahpc-menu-btn {
        display: block;
    }
    nav,
    #ahpc-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 20px;
    }
    nav.open,
    #ahpc-nav.open {
        display: block;
    }
    nav ul,
    #ahpc-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .ahpc-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .quick-grid,
    .ahpc-quick-grid,
    .news-grid,
    .ahpc-news-grid,
    .pro-grid,
    .ahpc-pro-grid,
    footer .cols,
    .ahpc-footer-cols {
        grid-template-columns: 1fr;
    }
    .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
    .ahpc-gallery-banner {
        grid-template-columns: 1fr 1fr;
    }
    .ahpc-team-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero .wrap {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .ahpc-parallax-banner {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
    }
}
