:root {
    --primary-dark: #0D1B2A;
    --accent-gold: #C6A667;
    --soft-light: #F8F9FB;
    --mid-grey: #6C757D;
    --white: #FFFFFF;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base */
html, body {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--soft-light);
    color: var(--primary-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.profile .container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile img {
    width: 175px;
    height: 175px;
    object-fit: cover;
    border-radius: 8px;
}

.fundraising-button {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
}

.fundraising-button:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}


main {
    flex: 1 0 auto;
}

/* Header */
#header {
    margin: 0;
    padding: 0;
}

header {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 15px 0;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* Original nav styles - keep for backward compatibility */
nav {
    margin-top: 8px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--accent-gold);
}

/* Override for burger menu nav */
nav.main-nav {
    margin-top: 0 !important;
}

nav.main-nav a {
    margin-right: 0 !important;
}

/* Burger Menu Styles */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.burger-menu {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--white);
    border-radius: 6px;
    cursor: pointer;
    padding: 12px 10px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    position: relative;
}

.burger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.burger-line:nth-child(1) {
    top: 15px;
}

.burger-line:nth-child(2) {
    top: 22px;
}

.burger-line:nth-child(3) {
    top: 29px;
}

/* Navigation Styles Update */
.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-gold);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
    .burger-menu {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.nav-open {
        right: 0;
    }
    
    .main-nav a {
        padding: 15px 0;
        margin: 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    /* Burger animation when menu is open */
    .nav-open .burger-line:nth-child(1) {
        transform: translateX(-50%) rotate(45deg);
        top: 22px;
    }
    
    .nav-open .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .nav-open .burger-line:nth-child(3) {
        transform: translateX(-50%) rotate(-45deg);
        top: 22px;
    }
    
/* Change these lines in styles.css */
body.nav-open .burger-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 22px;
}

body.nav-open .burger-line:nth-child(2) {
    opacity: 0;
}

body.nav-open .burger-line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 22px;
}
    
    /* Overlay for mobile menu - REMOVED as it blocks clicks */
    /* Instead, we'll add a separate overlay element if needed */
}

/* Tablet Styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .main-nav {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 0.85rem;
    }
}


/* Hero */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.hero p {
    color: var(--mid-grey);
    margin-bottom: 25px;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--accent-gold);
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.button:hover {
    background-color: var(--accent-gold);
}

/* Sections */
.section {
    padding: 30px 0;
}

.card-grid {
    display: grid;
    gap: 20px;
    /* This ensures that even on mobile, if you have a height set,
       the cards stretch to fill the available space */
    align-items: stretch;
}

/* Modified Sections */
.card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    
    /* Flexbox settings to handle the button alignment */
    display: flex;
    flex-direction: column;
}

.card h4 {
    margin-bottom: 15px; /* Slightly more breathing room */
}

.card p {
    color: var(--mid-grey);
    flex-grow: 1;         /* Fills the gap to push the button down */
    margin-bottom: 25px;  /* Ensures the button isn't touching the text */
}

.card .button {
    /* On mobile, sometimes a full-width button is easier to tap. 
       If you want it to stay small, keep 'flex-start'. 
       If you want it full width on mobile, use 'center' and remove align-self. */
    align-self: flex-start; 
    text-align: center;
}

footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 30px 20px;
    text-align: center; 
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 10px; 
    
    /* ADD THIS LINE */
    align-items: center; 
}

footer a {
    color: var(--white);
    text-decoration: none;
    /* inline-block is good, but without align-items: center, the flex container ignores it */
    display: inline-block; 
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

footer a:hover {
    border-bottom: 1px solid var(--white);
}

/* Enhanced Supporter Location Cards */
.supporter-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.supporter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.supporter-card h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.supporter-card h3 .badge {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    margin-left: auto;
}

.supporter-card .location-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.supporter-card .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--mid-grey);
    font-size: 0.9rem;
}

.supporter-card .meta-item strong {
    color: var(--primary-dark);
    font-weight: bold;
}

.supporter-card .description {
    color: var(--mid-grey);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.supporter-card .description strong {
    color: var(--primary-dark);
    font-weight: bold;
}

.supporter-card .stations {
    background-color: rgba(198, 166, 103, 0.08);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.supporter-card .stations strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 5px;
}

/* Favourite Modifier */
.supporter-card--favourite {
    border-left: 4px solid var(--primary-dark);
    outline: 2px solid var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    position: relative;
}

.supporter-card--favourite h3 .badge {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Slightly stronger hover */
.supporter-card--favourite:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}


/* Tips Section */
.tips-section {
    background-color: rgba(13, 27, 42, 0.03);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-dark);
}

.tips-section h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-section ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.tips-section li {
    margin-bottom: 10px;
    color: var(--mid-grey);
}

.tips-section li:last-child {
    margin-bottom: 0;
}

/* Section Headers with Icons */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.section-header h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
}

/* Supporter Card Grid */
.supporter-card-grid {
    display: grid;
    gap: 20px;
    align-items: stretch;
}

/* Responsive */
@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .supporter-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .supporter-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

