body {
    font-family: Verdana, sans-serif;
    background-color: #f4f5f7;
    margin: 0;
    padding: 0;
}

/* Page container */
.site-container {
    max-width: 930px;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Banner */
.banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Left menu + main content */
.site-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

/* Main content: plain block so rows stack vertically */
.content-block {
    min-width: 0;
    margin-bottom: 30px;
}

/* Two cards side by side */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

/* Cards */
.card {
    padding: 20px;
    background: #ffffff;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    min-width: 0;
    text-align: center;
}
.card img { max-width: 100%; height: auto; }

/* Centred, narrower card on its own row (Advent) */
.card-feature {
    max-width: 380px;
    margin: 0 auto 20px;
}

/* Full-width card at the bottom (Ken) */
.card-wide {
    margin-top: 20px;
    text-align: left;
    line-height: 1.5;
}

/* Mobile: stack everything */
@media (max-width: 768px) {
    .site-grid,
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Signup form styles ---- */
.logo {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #3366ff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 500; font-size: 20px;
    margin: 0 auto 1.25rem;
}
.card h1 {
    font-size: 22px;
    color: #222;
    margin-bottom: 12px;
}
.subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}
.subtitle a { color: #0066cc; text-decoration: none; }
.subtitle a:hover { text-decoration: underline; }
label {
    display: block;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 20px;
}
.submit-btn {
    background-color: #1a73e8;
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}
.submit-btn:hover {
    background-color: #d4e3fc;
    color: #1a73e8;
}

/* Top site navigation */
.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    background-color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}
.site-nav a {
    color: #006600;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover { background-color: #f4f5f7; color: #004400; }

/* Left sidebar navigation */
.left-nav {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.left-nav h3 {
    font-size: 14px;
    color: #006600;
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.left-nav a {
    display: block;
    color: #006600;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}
.left-nav a:hover { background-color: #f4f5f7; color: #004400; }

/* Section headings inside cards */
.card h2 {
    font-size: 18px;
    color: #222;
    margin: 0 0 15px;
}

/* Regular Village Activities rows */
.activity-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    font-size: 14px;
    text-align: left;
}
.activity-when { font-weight: bold; color: #006600; }

/* Active Organisations rows */
.group-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
    font-size: 14px;
    text-align: left;
}
.group-name a {
    color: #006600;
    font-weight: bold;
    text-decoration: none;
}
.group-name a:hover { text-decoration: underline; }

/* Stack rows on phones */
@media (max-width: 768px) {
    .activity-row,
    .group-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* Image that acts as a button */
.image-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.image-button img {
    display: block;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s;
}
.image-button:hover img,
.image-button:focus img {
    border-color: #006600;
}

/* PDF popup */
.pdf-dialog {
    width: min(640px, 95vw);
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
}
.pdf-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}
.pdf-dialog iframe {
    width: 100%;
    height: 80vh;
    border: none;
}
.dialog-close {
    text-align: right;
    margin-bottom: 10px;
}