/* --- Base Variables & Reset --- */
:root {
    --bg-color: #f8f9fa;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #ff3366; /* YourNorfolkHere Pink */
    --accent-hover: #e62e5c;
    --card-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.4; /* Slightly tighter base line height */
}

/* --- Hero Header --- */
header {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    color: white;
    padding: 3rem 1rem; /* Slightly reduced padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff3366, #ff9933);
}

.header-content h1 {
    font-size: 2.5rem; /* Balanced size */
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.25rem;
}

.header-content p {
    color: #9ca3af;
    font-size: 1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

main {
    max-width: 1200px;
    margin: -1.5rem auto 2rem auto; 
    padding: 1rem;
    position: relative;
    z-index: 10;
}

/* --- Starred Selections --- */
.starred-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed #e5e7eb;
}

.starred-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-align: center; /* This centers the text! */
}

.starred-card {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.15);
}

.tag.featured-tag {
    background: var(--accent);
    color: white;
}
.featured-tag {
    background: #ff4757 !important; /* A nice "Norfolk" red or energetic coral */
    color: white !important;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* --- Filters --- */
.filters {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--card-bg);
    padding: 0.75rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: 0.4rem 1rem;
    border: 2px solid transparent;
    background: var(--bg-color);
    color: var(--text-muted);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
}

/* --- Event Grid & Cards --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    /* Link Properties */
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.card-img {
    width: 100%;
    height: 140px; /* Slimmer horizontal look */
    object-fit: cover;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-content {
    padding: 0.75rem 1rem; /* Tightened padding */
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 51, 102, 0.1);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.7rem;        /* Shrinks the text slightly */
    font-weight: 800;
    padding: 3px 8px;         /* Thins out the bulky background space */
    letter-spacing: 0.8px;    /* Keeps the small uppercase text readable */
    white-space: nowrap;      /* Prevents the tag itself from splitting in half */
}

.card h3 {
    margin-bottom: 0.2rem; /* Tightened gap below title */
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

.date-location {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.3rem; /* Tightened gap below date */
    display: flex;
    align-items: center;
    gap: 5px;
}

.card p:not(.date-location) {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* --- Footer & Donation --- */
footer {
    background-color: var(--card-bg);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 3rem 1rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.footer-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.donate-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.65rem 1.75rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

.donate-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4);
}
.age-tag {
    background: #333 !important; /* Dark neutral */
    color: #fff !important;
    border: 1px solid #444;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Optional: Make the tag container look nice */
.tag-container {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
