/* GLOBAL VARIABLES */
:root { 
    --sa3-red: #cc0000; 
    --sa3-grey: #333333; 
    --light-bg: #f4f4f4; 
    --sidebar-bg: #222;
    --white: #ffffff;
}

/* GENERAL RESET */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
    background: var(--light-bg); 
    color: var(--sa3-grey); 
    line-height: 1.6;
}

/* HEADER & NAV */
header { 
    background: var(--white); 
    padding: 15px; 
    text-align: center; 
    border-bottom: 3px solid var(--sa3-red); 
}

.logo { 
    max-width: 250px; 
    height: auto; 
}

nav { 
    background: var(--sa3-grey); 
    display: flex; 
    justify-content: center; 
    padding: 12px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

nav a { 
    color: var(--white); 
    text-decoration: none; 
    margin: 0 15px; 
    font-weight: bold; 
    font-size: 0.9em; 
    text-transform: uppercase; 
    transition: 0.3s; 
}

nav a:hover { 
    color: var(--sa3-red); 
}

/* BANNERS */
.hero, .sub-banner, .org-banner, .contact-banner, .dash-header {
    width: 100%;
    background-size: cover !important;
    background-position: center center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero { height: 380px; }
.sub-banner { height: 200px; }
.org-banner { height: 250px; }
.contact-banner { height: 250px; }
.dash-header { height: auto; padding: 40px; border-radius: 12px; margin-bottom: 30px; justify-content: flex-start; text-align: left;}

/* Background Image Source */
.hero, .sub-banner, .org-banner, .contact-banner, .dash-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://www.marhazk.com/sa3/images/background.jpg') no-repeat;
}

/* LAYOUT & CONTAINERS */
.container { 
    max-width: 1100px; 
    margin: -60px auto 40px; 
    padding: 0 20px; 
    position: relative; 
    z-index: 2; 
}

.main-content { /* For Dashboard */
    margin-left: 280px; 
    width: calc(100% - 280px); 
    padding: 40px; 
    box-sizing: border-box;
}

/* CARDS & BOXES */
.card, .collection-card, .post { 
    background: var(--white); 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    margin-bottom: 30px; 
    overflow: hidden;
}

.collection-card {
    padding: 30px; 
    text-align: center; 
    border-top: 6px solid var(--sa3-red);
}

.card { padding: 30px; }

/* TYPOGRAPHY */
h1, h2, h3 { margin-top: 0; }
.amount { font-size: 3.5rem; font-weight: 800; color: var(--sa3-red); margin: 10px 0; }
.section-title { border-left: 5px solid var(--sa3-red); padding-left: 15px; color: var(--sa3-grey); }

/* FORMS */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="file"], textarea {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    box-sizing: border-box; 
    margin-bottom: 15px;
    font-family: inherit;
}
textarea { height: 150px; resize: vertical; }

/* BUTTONS */
.btn, .btn-send, .btn-cal { 
    background: var(--sa3-red); 
    color: var(--white); 
    border: none; 
    padding: 12px 25px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s; 
    display: inline-block;
}

.btn:hover, .btn-send:hover, .btn-cal:hover { 
    background: #a80000; 
}

/* SIDEBAR (ADMIN) */
.sidebar { 
    width: 280px; 
    background: var(--sidebar-bg); 
    color: var(--white); 
    height: 100vh; 
    position: fixed; 
    padding: 25px; 
    box-sizing: border-box; 
    top: 0; left: 0;
}
.sidebar a { display: block; color: #bbb; padding: 12px 0; border-bottom: 1px solid #333; }
.sidebar a:hover { color: white; padding-left: 10px; }

/* ALERTS */
.alert { padding: 15px; border-radius: 6px; margin-bottom: 20px; }
.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* FOOTER */
footer { 
    background: var(--sa3-grey); 
    color: #aaa; 
    text-align: center; 
    padding: 40px 20px; 
    font-size: 0.85em; 
    margin-top: 50px; 
}
/* Add this to style.css */
nav a.active {
    color: var(--sa3-red);
    border-bottom: 2px solid var(--sa3-red);
    padding-bottom: 2px;
}