@import url(https://fonts.bunny.net/css?family=nunito-sans:300,400,500,600,700,800);

/* Base reset and setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Nunito Sans", sans-serif;
    line-height: 1.6;
    color: #222;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
header {
    background: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a {
    text-decoration: none;
}
.logo-small {
    height: 40px;
    margin-bottom: -5px;
}
.logo-name {
    font-weight: 700;
    color: #7413dc;
    font-size: 0.8rem;
}
nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
    align-items: center; /* Vertically align list items */
}
nav li {
    display: flex;
    align-items: center; /* Vertically align content within each li */
}
nav a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex; /* Change to inline-flex for SVG alignment */
    align-items: center; /* Vertically center SVG with text */
    gap: 0.25rem; /* Add small gap between text and SVG */
}
nav a:hover {
    color: #7413dc;
    text-decoration: underline;
}
.btn-primary {
    background: #7413dc;
    color: white;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 2px;
}
.btn-primary:hover {
    background: #5c10b4;
    text-decoration: none;
    color: #ffffff;
}
.btn-secondary {
    background: black;
    color: white;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    margin-left: 1rem;
}
.btn-primary-white {
    background: white;
    color: #222;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 700;
}

/* Hero */
.hero {
    background: url("https://cdn.scoutpages.co.uk/images/hero.jpg") center/cover
        no-repeat;
    position: relative;
    margin-top: 80px;
}
.hero .container {
    min-height: 50vh;
    display: flex;
    align-items: center; /* vertical center */
}
.hero-text-box {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3rem;
    max-width: 600px;
    text-align: left;
    border-radius: 2px;
}
.hero-text-box h1 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    line-height: 3.2rem;
}
.hero-text-box p {
    font-size: 1.1rem;
}
.hero-buttons {
    margin-top: 2rem;
}
.hero-join {
    background: url("https://cdn.scoutpages.co.uk/images/hero.jpg/images/hero_join.jpg")
        center/cover no-repeat;
    position: relative;
    margin-top: 80px;
}
.hero-join .container,
.hero-volunteer .container,
.hero-contact .container {
    min-height: 20vh;
    display: flex;
    align-items: center; /* vertical center */
}
.hero-join .hero-text-box,
.hero-volunteer .hero-text-box,
.hero-contact .hero-text-box {
    background: none;
    color: white;
    padding: 3rem;
    max-width: 650px;
    text-align: center;
    margin: 0 auto;
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 3.2rem;
}
.hero-volunteer {
    background: url("https://cdn.scoutpages.co.uk/images/hero.jpg/images/hero_volunteer.jpg")
        center/cover no-repeat;
    position: relative;
    margin-top: 80px;
}
.hero-contact {
    background: url("https://cdn.scoutpages.co.uk/images/hero.jpg/images/hero_contact.jpg")
        top/cover no-repeat;
    position: relative;
    margin-top: 80px;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

label {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

input,
select,
textarea {
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

button {
    background-color: #7413dc;
    color: white;
    padding: 0.9rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: #5c10b4;
}
.form-response-box {
    width: 100%;
    padding: 1rem;
    background: #a7f3d0;
    border-radius: 2px;
    border: 1px solid #34d399;
}
.form-response-box p {
    color: #022c22;
}

/* Page Content */
.content,
opportunities {
    background: white;
    padding: 3rem 1rem;
}
.content .container,
.opportunities .container {
    max-width: 800px;
}
.content .intro {
    font-size: 1.2rem;
    padding: 0;
    margin: 0 0 1rem 0;
    color: #222;
}
.content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 2rem;
    color: #4b5563;
}
.pb-1 {
    padding-bottom: 1rem;
}

.volunteer {
    max-width: 800px;
    padding: 2rem;
    background: #006ddf;
    border-radius: 2px;
    margin: 1rem auto;
    color: white;
    font-size: 1.2rem;
}

.opportunities h2 {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 2rem 0;
}

.volunteer-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
    margin-bottom: 10rem;
}

.volunteer-table th {
    background: #088486;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.volunteer-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.volunteer-table tr:last-child td {
    border-bottom: none;
}

.volunteer-table tr:hover {
    background-color: #f8f9ff;
    transition: background-color 0.3s ease;
}

/* Column width distribution */
.volunteer-table th:nth-child(1),
.volunteer-table td:nth-child(1) {
    width: 25%; /* Role column - more space */
}

.volunteer-table th:nth-child(2),
.volunteer-table td:nth-child(2) {
    width: 55%; /* Description column */
}

.volunteer-table th:nth-child(3),
.volunteer-table td:nth-child(3) {
    width: 20%; /* Apply column - adequate button space */
    text-align: center;
}

.apply-btn {
    background: #006ddf;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 1px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.apply-btn:hover {
    transform: translateY(-1px);
    background: #3b82f6;
}

.apply-btn:active {
    transform: translateY(0);
}

/* Intro section */
.intro {
    background: white;
    padding: 4rem 1rem;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.intro h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 3.5rem;
}
.highlight {
    color: #7413dc;
    font-weight: 800;
    display: block;
}
.intro p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 2.3rem;
    color: #4b5563;
}
.intro-image {
    justify-self: end;
}
.image-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}
.image-wrapper img {
    border-radius: 2px;
    position: relative;
    z-index: 2;
}
.blue-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: #7413dc;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 2px;
}
.intro .btn-primary {
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    border-radius: 2px;
    font-size: 1.1rem;
}

/* Get Involved */
.involved {
    padding: 5rem 1rem;
}

.involved h2 {
    margin: 0;
    font-size: 2.5rem;
    color: #222;
    font-weight: 800;
}
.involved p {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    line-height: 2.3rem;
    color: #4b5563;
}

.columns {
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.column {
    flex: 1 1 400px;
    text-align: left;
    border-top: 4px solid;
}

.column h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.column p {
    font-size: 1rem;
    line-height: 1.8rem;
    color: #4b5563;
    margin: 0 0 1rem 0;
}

.column ul {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
}

.column li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.blue {
    border-color: #006ddf;
    color: #006ddf;
}
.green {
    border-color: #205b41;
    color: #205b41;
}
.purple {
    border-color: #7413dc;
    color: #7413dc;
}
.red {
    border-color: #ed3f23;
    color: #ed3f23;
}

.section-join {
    margin-top: 2rem; /* adjust this value as you like – 2rem looks perfect */
}

.red-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #ed3f23; /* matches your red border colour */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.red-btn:hover {
    background-color: #c72f17;
}

.blue-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #006ddf; /* matches your red border colour */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.blue-btn:hover {
    background-color: #1d4ed8;
}

.purple-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #7413dc; /* matches your red border colour */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.purple-btn:hover {
    background-color: #5b21b6;
}

.green-btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #205b41; /* matches your red border colour */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.green-btn:hover {
    background-color: #047857;
}

/* Footer */
footer {
    background: #7413dc;
    color: white;
    text-align: center;
    padding: 3rem 0;
    font-size: 0.9rem;
    margin-top: 3rem;
}
footer .column {
    flex: 1 1 150px;
    text-align: left;
    border-top: 0;
}
footer h4 {
    font-size: 1rem;
}
footer .social {
    width: 30px;
    height: 30px;
    display: block;
    margin-top: 1rem;
    color: white;
}
footer .column ul {
    margin: 1rem 0 0 0;
    padding: 0;
}
footer .column li {
    color: white;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}
.nc-credit {
    display: block;
    float: left;
}
.nc-credit a {
    font-weight: bold;
}
/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    /* Stack table on mobile */
    .volunteer-table,
    .volunteer-table thead,
    .volunteer-table tbody,
    .volunteer-table th,
    .volunteer-table td,
    .volunteer-table tr {
        display: block;
    }

    .volunteer-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .volunteer-table tr {
        border: 1px solid #ddd;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .volunteer-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 35%;
        padding-right: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
        text-align: right;
    }

    .volunteer-table td:last-child {
        border-bottom: none;
        text-align: center;
        padding-left: 15px;
    }

    .volunteer-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #333;
        text-align: left;
    }

    h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .apply-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .volunteer-table td {
        padding-left: 40%;
        font-size: 14px;
    }
}
