html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

.about-page {
    background-color: #f5ede4;
    color: #333;
}

/* Hero */

.about-masthead {
    position: relative;
    min-height: 200px !important;
    background-size: cover;
    background-position: center;
}

.about-masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.about-masthead .container {
    position: relative;
    z-index: 2;
}

.about-masthead .page-heading {
    padding: 5rem 0 2.5rem !important;
    text-align: center;
}

.about-masthead .page-heading h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.about-masthead .subheading {
    font-size: 1.25rem;
    font-weight: 300;
    color: #ffffff;
}

/* Main Content */

.about-section {
    max-width: 1050px;
    margin: 0 auto;
    padding: 4rem 0;
}

.simple-divider {
    border-top: 1px solid #ddd1c4;
}

.about-page h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2f3a3a;
    margin-bottom: 1.4rem;
}

.about-page h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #2f3a3a;
    margin-bottom: 0.25rem;
}

.about-page p {
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
}

/* Profile Image */

.about-profile-image {
    margin-bottom: 1.5rem;
}

.about-profile-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* ACA Box */

.aca-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #ddd1c4;
    border-radius: 8px;
    padding: 1rem;
}

.aca-box img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.aca-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Support List */

.support-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.support-list ul,
.qualification-simple-list {
    margin: 0;
    padding-left: 1.2rem;
}

.support-list li,
.qualification-simple-list li {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0.25rem;
}

/* CTA */

.about-simple-cta {
    text-align: center;
    padding-bottom: 5rem;
}

.about-simple-cta h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.about-simple-cta p {
    margin-bottom: 1.6rem;
}

.about-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-btn-primary,
.about-btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease;
}
.btn-secondary2 {
    position: relative;
    background-color: transparent;
    border: 3px solid #000000;
    color: #000000;
    font-weight: 500;
    padding: 14px 14px;
    border-radius: 50px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    z-index: 0;
    outline: none;
    animation: FadeUp 1s ease-in;
}


.btn-secondary2:before {
    content: '';
    background: linear-gradient(45deg, #000000, #303030, #454545, #4f4f4f, #4f4f4f);
    position: absolute;
    top: -2px;
    color: #ffffff;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 10s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 50px;
}

.btn-secondary2:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    left: 0;
    top: 0;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.btn-secondary2:hover,
.btn-secondary2:focus {
    background-color: #000000 !important;
    color: #ffffff;
    transform: translateY(-4px);
    border-color: #000000;
}

.btn-secondary2:hover:before { opacity: 1; }
.btn-secondary2:hover:after  { background: #000000; }
.btn-secondary2:active       { color: #ffffff; }
.btn-secondary2:active:after { background: transparent; }
@keyframes glowing {
    0%   { background-position: 0 0; }
    50%  { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.about-btn-primary {
    background-color: #8AADA0;
    color: #ffffff;
    border: 2px solid #8AADA0;
}

.about-btn-secondary {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.about-btn-primary:hover {
    background-color: #8AADA0;
    border-color: #8AADA0;
    color: #ffffff;
}

.about-btn-secondary:hover {
    background-color: #000000;
    color: #ffffff;
}

@media (max-width: 768px) {
    .about-masthead {
        min-height: 150px !important;
    }

    .about-masthead .page-heading {
        padding: 4rem 1rem 2rem !important;
    }

    .about-masthead .page-heading h1 {
        font-size: 3rem;
    }

    .about-masthead .subheading {
        font-size: 1.05rem;
    }

    .about-section {
        padding: 3rem 1.25rem;
    }

    .support-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Centre profile photo with space around it */
    .col-lg-4 > div:first-child {
        display: flex;
        justify-content: center;
        padding: 0 1.5rem;
    }

    .col-lg-4 > div:first-child img {
        width: 100% !important;
        max-width: 320px;
    }
}

@media (max-width: 576px) {
    .about-masthead .page-heading h1 {
        font-size: 2rem;
    }

    .about-masthead .page-heading {
        padding: 3rem 1rem 1.5rem !important;
    }

    .about-section {
        padding: 2rem 1.25rem;
    }

    .about-page h2 {
        font-size: 1.5rem;
    }

    .about-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .about-btn-primary,
    .about-btn-secondary,
    .btn-primary {
        width: 100%;
        text-align: center;
        margin: 0 !important;
    }

    .about-simple-cta {
        padding-bottom: 3rem;
    }
}