/* General Body & Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f4f7fa;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: #005eb8; /* NHS Blue */
    line-height: 1.2;
}

h1 { font-size: 2.5em; margin-bottom: 0.5em; }
h2 { font-size: 2em; margin-top: 1.5em; border-bottom: 2px solid #e8edf2; padding-bottom: 0.3em; }
h3 { font-size: 1.5em; }
a { color: #005eb8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
header {
    background-color: #005eb8;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { font-size: 1.5rem; font-weight: bold; }
.archive-tag { font-size: 0.8rem; font-weight: normal; color: #d1eaff; }
header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}
header nav ul li { margin-left: 20px; }
header nav a { color: white; font-weight: 500; }

/* Archive Warning Banner */
.archive-warning {
    background-color: #d83a15;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}
.strong-warning {
    background-color: #fff0f0;
    border: 1px solid #d83a15;
    color: #d83a15;
    padding: 1em;
    margin: 1em 0;
}

/* Main Content */
main {
    padding: 40px 20px;
    background-color: white;
    min-height: 60vh;
}

/* Home Page Specific */
.info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2em;
}
.info-block {
    background-color: #f4f7fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid #005eb8;
}

/* Contact Cards & Surgery List */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0.5em 0; }

/* Tables (Opening Times) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}
table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
table th {
    background-color: #005eb8;
    color: white;
}
table tbody tr:nth-child(even) {
    background-color: #f4f7fa;
}

/* Staff & News List */
.staff-list, .news-item {
    margin-bottom: 1.5em;
}
.staff-member {
    padding: 1em;
    background: #f9f9f9;
    border-left: 4px solid #768692;
    margin-bottom: 1em;
}
.staff-member h3 { margin: 0 0 0.5em 0; }
.staff-member p { margin: 0; }

/* Footer */
footer {
    background-color: #232e36;
    color: #e8edf2;
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
}
.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.link-col h4 {
    color: white;
    margin-top: 0;
    border-bottom: 1px solid #4a5c6a;
    padding-bottom: 10px;
}
.link-col a {
    color: #e8edf2;
    display: block;
    margin-bottom: 10px;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #4a5c6a;
    padding-top: 20px;
    color: #aeb9c2;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav { margin-top: 10px; }
    header nav ul { flex-direction: column; }
    header nav ul li { margin-left: 0; margin-bottom: 5px; }
    h1 { font-size: 2em; }
    h2 { font-size: 1.7em; }
}