/* BNG Brand Identity Redesign - Bold Red & Professional */

:root {
    --brand-red: #CF2030;
    /* BNI Crimson Red */
    --brand-red-dark: #A01825;
    /* Darker Crimson for Hover */
    --brand-charcoal: #292728;
    /* BNI Thunder Grey */
    --brand-grey: #64666A;
    /* BNI Granite Grey */
    --brand-light: #F2F2F2;
    /* BNI Sterling Light Grey */
    --brand-white: #FFFFFF;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--brand-grey);
    background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--brand-charcoal);
    font-weight: 700;
}

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-red-dark);
}

.main-content {
    flex: 1;
}

/* === BRAND UTILITIES === */
.text-brand {
    color: var(--brand-red) !important;
}

/* Replacing old maroon classes with new brand red for compatibility */
.text-maroon {
    color: var(--brand-red) !important;
}

.bg-maroon {
    background-color: var(--brand-red) !important;
    color: white !important;
}

/* The user wanted to avoid yellow, so we map yellow to brand red or light grey depending on context */
.text-yellow {
    color: var(--brand-red) !important;
}

/* Use red for emphasis instead of yellow */

/* === BUTTONS === */
.btn-primary,
.btn-maroon {
    background-color: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 5px;
    /* Slight rounded corners, professional */
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-maroon:hover {
    background-color: var(--brand-red-dark) !important;
    border-color: var(--brand-red-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(214, 0, 0, 0.2);
}

.btn-secondary,
.btn-outline-maroon {
    background-color: white !important;
    border: 2px solid var(--brand-red) !important;
    color: var(--brand-red) !important;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 5px;
}

.btn-secondary:hover,
.btn-outline-maroon:hover {
    background-color: var(--brand-red) !important;
    color: white !important;
}

.btn-warning {
    /* Replacing generic warning buttons with a generic accent or brand style if needed, 
       but allowing standard bootstrap warning if specifically used for 'alerts'. 
       For main UI actions, we prefer brand colors. */
    background-color: var(--brand-charcoal);
    border-color: var(--brand-charcoal);
    color: white;
}

.btn-warning:hover {
    background-color: #000;
    color: white;
}


/* === NAVBAR === */
.navbar {
    background-color: white !important;
    border-bottom: 3px solid var(--brand-red);
    /* Brand accent */
    padding: 15px 0;
}

.navbar-brand {
    color: var(--brand-red) !important;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--brand-charcoal) !important;
    font-weight: 600;
    margin-left: 15px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-red) !important;
}

/* Specific button style for Get Invited in Header */
.btn-get-invited {
    border: 1px solid var(--brand-red) !important;
}

.btn-get-invited:hover {
    background-color: white !important;
    color: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80');
    /* Corporate Office */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* === CARDS (Generic) === */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* === MEETING CARDS === */
.meeting-card {
    border-top: 4px solid var(--brand-red);
    /* Red top border for branding */
}

.meeting-card .card-title {
    color: var(--brand-charcoal);
}

/* === STORY CARDS (Stories.php) === */
.story-card {
    border: 1px solid #eee;
    overflow: hidden;
}

.story-card img {
    border-right: 4px solid var(--brand-red);
    /* Accent on image */
}

.story-card .badge {
    background-color: var(--brand-red) !important;
    /* Force red badge */
    color: white !important;
}

/* === CTA SECTION === */
.cta-section {
    background-color: var(--brand-charcoal);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    /* Subtle red accent line */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--brand-red);
}

.cta-section h2 {
    color: white;
}

/* === FOOTER === */
footer {
    background-color: #111;
    /* Very dark charcoal */
    color: #aaa;
    padding: 60px 0 20px;
    border-top: 5px solid var(--brand-red);
}

footer h5 {
    color: white;
    margin-bottom: 20px;
}

footer a {
    color: #aaa;
}

footer a:hover {
    color: var(--brand-red);
}

/* === ADMIN AREA === */
.admin-sidebar {
    background-color: var(--brand-charcoal);
}

.admin-sidebar .sidebar-heading {
    background-color: var(--brand-red);
}

.admin-sidebar .nav-link.active {
    background-color: var(--brand-red);
}

.admin-main-content {
    background-color: var(--brand-light);
    padding-top: 80px; /* Prevent content from being hidden behind fixed navbar */
}

/* === FORMS === */
.form-control:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 0.25rem rgba(214, 0, 0, 0.25);
}