﻿
.donation-container-parent {
    display: flex;
    flex-direction: column;
    align-items: center; /* center child horizontally */
    justify-content: center; /* center child vertically */
    min-height: 100vh; /* occupy full viewport so centering works */
    padding: 0; /* remove outer padding */
}

/* Donation page container */
.donation-container {
    max-width: 700px;
    width: min(700px, calc(100% - 40px)); /* leave side gutters on large screens */
    margin: 0; /* centered by parent flexbox */
    padding: 20px 18px; /* comfortable padding */
    border: 2px solid #bfbfbf;
    background-color: steelblue;
    border-radius: 8px;
    box-shadow: none;
    text-align: center;
    font-family: Arial, sans-serif;
    line-height: 1.25;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-height: 50vh; /* reasonable vertical presence */
    max-height: 90vh;
    overflow-y: auto;
}

.donation-container  .donation-container-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.donation-important-text {
    color: #ffffff;  
}

.donation-important-text em {
    color: #ffffff;  
    font-style: italic;
}

.donation-phone {
    color: #ffffff;
    font-weight: bold;
}


/* Headings */
/*.donation-container h2,
.donation-container h3 {
    margin-bottom: 20px;
    color: #333;
}*/

/* Bank details list */
.donation-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}

.donation-container ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 4px; /* tighter vertical spacing */
    margin: 0;
    font-size: 1.15rem; /* slightly larger for prominence */
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.donation-container ul li strong {
    font-weight: 800; /* heavier label */
    font-size: 1.17rem; /* ensure label is prominent */
    color: #ffffff;
}

.donation-container ul li:last-child {
    border-bottom: none;
}

/* Table version for bank details (flexible, responsive) */
.donation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto 8px auto;
}
.donation-table th,
.donation-table td {
    padding: 8px 6px;
    vertical-align: middle;
    color: #ffffff;
}
.donation-table th {
    width: 40%;
    text-align: left;
    font-weight: 800;
    font-size: 1.12rem;
    opacity: 0.95;
}
.donation-table td {
    width: 60%;
    text-align: left;
    font-weight: 600;
    font-size: 1.15rem;
    word-break: break-word;
}
.donation-table tr + tr td {
    border-top: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 480px) {
    /* Keep table two-column on small screens but tighten spacing */
    .donation-table {
        table-layout: fixed;
        width: 100%;
    }
    .donation-table th,
    .donation-table td {
        display: table-cell;
        padding: 6px 8px;
        vertical-align: middle;
        word-break: break-word;
    }
    .donation-table th {
        width: 35%;
        font-size: 1.03rem;
        text-align: right; /* keep label close to value */
        padding-right: 12px;
    }
    .donation-table td {
        width: 65%;
        font-size: 1.03rem;
        text-align: left;
    }
}

/* Extra-tight adjustments for very narrow devices */
@media (max-width: 360px) {
    .donation-table th,
    .donation-table td {
        padding: 5px 6px;
    }
    .donation-table th {
        font-size: 1rem;
        width: 36%;
    }
    .donation-table td {
        font-size: 1rem;
        width: 64%;
    }
    .donation-container  .donation-container-title {
        font-size: 1.9rem;
    }
}

/*.donation-container li {
    margin-bottom: 10px;
    font-size: 1rem;
    
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.95rem;
    color: #ffffff;
}*/

/*    .donation-container li:last-child {
        border-bottom: none;
    }
*/

/* Paragraph text */
.donation-container p {
    font-size: 1rem;
    color: #ffffff;
    margin: 6px 0 4px 0;
}

/* Mobile optimisation */
@media (max-width: 600px) 
{
    .donation-container {
        width: calc(100% - 2px);
        margin: 1px auto;
        padding: 14px 12px;
        height: calc(100vh - 2px); /* full viewport on mobile as well */
        overflow-y: auto;
    }

    .donation-container  .donation-container-title {
        font-size: 2.1rem; /* prominent title on mobile */
        margin-bottom: 8px;
    }

    .donation-container ul li {
        font-size: 1.2rem;
        padding: 8px 6px;
    }

    .donation-container ul li strong {
        font-size: 1.25rem;
    }

    .donation-container p {
        font-size: 1.05rem;
        margin-top: 6px;
    }
}


