:root {
    --bg-color: #0A0E12;
    --border-bottom: #3B4C5E;
    --linen: #E6E9ED;
    --glass-bg: rgba(20, 26, 32, 0.7);
    --title-bg: rgba(20, 26, 32, 0.3);
    --nav-bg: rgba(20, 26, 32, 0.8);
    --hero-border: rgba(255, 255, 255, 0.1);
    --warm-border: rgba(115, 54, 16, 0.3);
    --input-white-bg: rgba(255, 255, 255, 0.05);
    --input-focus-warm: rgba(115, 54, 16, 0.1);
    --member-border-soft: rgba(115, 54, 16, 0.2);
    --slideout-shadow: rgba(0, 0, 0, 0.2);
    --footer-bg: rgba(20, 26, 32, 0.8);
	--gold-glow: rgba(216, 142, 24, 0.8);
}

/* --- Base Styles --- */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *:before, *:after { box-sizing: inherit; }

body {
    margin: 0; padding: 0;
    color: var(--linen);
    font-family: 'Georgia', serif;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

.background-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../graphics/hccc_bg2.png'); 
    background-size: cover; background-position: center; background-attachment: fixed;
    z-index: -1;
}

a {
    color: var(--gold-glow); text-decoration: none; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px;
}

/* --- Layout Components --- */
.flex-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 8%; background: var(--nav-bg);
    backdrop-filter: blur(10px); border-bottom: 2px solid var(--border-bottom);
    position: sticky; top: 0; z-index: 200;
}

.nav-links { display: flex; gap: 30px; }

.main-content { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }

.hero-box {
    text-align: center; padding: 50px 20px; background: var(--title-bg);
    backdrop-filter: blur(5px); border: 1px solid var(--hero-border);
    border-radius: 15px; margin-bottom: 30px;
}

.resource-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }

.resource-card {
    flex: 1 1 300px; background: var(--glass-bg); backdrop-filter: blur(8px);
    border: 1px solid var(--warm-border); padding: 40px 20px; border-radius: 12px;
    text-align: center; transition: transform 0.3s ease;
}

.resource-card img.card-icon-img {
    width: 100%; height: 180px; object-fit: cover; margin-bottom: 20px; border-radius: 8px;
}

/* --- Forms & Inputs --- */
.grid-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 20px; }

input, textarea {
    background: var(--input-white-bg); border: 1px solid var(--warm-border); 
    color: var(--linen); padding: 12px; border-radius: 4px; width: 100%; box-sizing: border-box;
}

textarea { grid-column: 1 / -1; min-height: 100px; }

.btn-wood {
    display: inline-block; background: var(--border-bottom); color: white;
    padding: 12px 25px; text-decoration: none; border-radius: 4px;
    font-weight: bold; border: none; cursor: pointer; text-align: center;
}

/* --- Member Roster --- */
.member-list-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.member-row { 
    background: var(--glass-bg); border: 1px solid var(--member-border-soft); 
    border-radius: 8px; overflow: hidden; margin-bottom: 10px; transition: background 0.3s ease;
}

.member-row.active { background: var(--glass-bg); }

.member-summary { display: flex; align-items: center; padding: 12px 20px; cursor: pointer; gap: 15px; }

.member-thumb { width: 32px; height: 32px; object-fit: contain; }

.member-name { flex-grow: 1; font-weight: bold; }

.member-slideout { 
    max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    background: var(--slideout-shadow); 
}

.member-row.active .member-slideout { max-height: 300px; }

.slideout-content { padding: 15px 20px; border-top: 1px solid var(--warm-border); font-size: 0.9rem; }

.pill-president { border: 1px solid #ffd700; color: #ffd700; padding: 2px 8px; border-radius: 12px; }
.pill-director { border: 1px solid #c0c0c0; color: #c0c0c0; padding: 2px 8px; border-radius: 12px; }

/* --- About Typography --- */
div.paragraph { width: 100%; padding-top: 32px; }
div.paragraph :is(h1, h2, h3) { text-align: center; margin-top: 3rem; margin-bottom: 1rem; }
div.paragraph p { text-align: left; margin-bottom: 1.2rem; line-height: 1.7; }

/* --- Calendar --- */
.next-event {
    text-align: center; padding-top: 32px; padding-bottom: 16px; background: var(--glass-bg);
    backdrop-filter: blur(5px); border: 1px solid var(--hero-border);
    border-radius: 8px; margin-bottom: 8px;
}

.calendar-header-sticky {
    display: grid; grid-template-columns: 80px repeat(7, 1fr); 
    position: sticky; top: 70px; z-index: 100; 
    background: var(--bg-color); padding: 15px 0 10px 0;
    border-bottom: 2px solid var(--border-bottom);
}

.vertical-calendar-grid { 
    display: grid; grid-template-columns: 80px repeat(7, 1fr); 
    grid-auto-rows: minmax(110px, 1fr); width: 100%; 
}

.calendar-day {
    padding: 0 !important; position: relative;
    display: flex; flex-direction: column; background: var(--glass-bg);
    border: 1px solid var(--warm-border); text-align: left;
    overflow: visible !important; z-index: 1; min-width: 0;
}

.event-container {
    position: absolute; top: 30px; left: 8px; right: 8px; bottom: 8px;
    overflow: hidden; display: flex; flex-direction: column; pointer-events: none;
}

.calendar-day:hover, .calendar-day:active { z-index: 1500; }

.day-number { font-size: 0.9rem; opacity: 0.6; padding: 8px; position: relative; z-index: 2; }

.month-sidebar {
    grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg);
    display: flex; align-items: center; justify-content: center;
    background: var(--border-bottom); color: var(--linen); font-weight: bold;
    letter-spacing: 2px; font-size: 0.75rem; border-radius: 8px 0 0 8px;
    text-transform: uppercase; margin: 2px 0;
}

.event-pill {
    background: var(--border-bottom); color: #FFF; padding: 3px 6px;
    border-radius: 4px; font-size: 0.65rem; margin-top: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    width: 100%; pointer-events: auto;
}

.event-details-overlay {
    display: none; position: absolute; top: 5px; left: 105%;
    width: 280px; max-height: 400px; overflow-y: auto;
    background: var(--glass-bg); backdrop-filter: blur(15px);
    border: 1px solid var(--border-bottom); padding: 15px; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); z-index: 2000;
}

.overlay-item { margin-bottom: 15px; }
.overlay-header { font-weight: bold; margin-bottom: 8px; color: var(--linen); border-bottom: 1px solid var(--border-bottom); padding-bottom: 4px; }

.calendar-day:hover .event-details-overlay { display: block; }
.calendar-day:nth-child(7n) .event-details-overlay,
.calendar-day:nth-child(7n-1) .event-details-overlay { left: auto; right: 105%; }

/* --- Footer & Responsive --- */
.flex-footer { padding: 40px 0; margin-top: 20px; background: var(--footer-bg); border-top: 1px solid var(--border-bottom); text-align: center; }

/* event notification highlight calendar */
@keyframes pulse-gold {
    0% { background-color: transparent; }
    50% { background-color: rgba(255, 215, 0, 0.4); }
    100% { background-color: transparent; }
}

.highlight-event {
    animation: pulse-gold 2s ease-in-out 3;
    border: 2px solid gold !important;
    border-radius: 4px;
}

/* bell icon */
.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
    filter: sepia(0.5);
}

.btn-icon:hover {
    transform: scale(1.2);
}

#push-nav-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

@media screen and (max-width: 600px) {
    .main-content { padding: 20px 0; width: 100%; }
    .flex-nav { flex-direction: column; padding: 15px 5%; gap: 15px; text-align: center; }
    .nav-links { flex-direction: column; gap: 12px; width: 100%; align-items: center; }
    .nav-links a { font-size: 0.9rem; display: block; padding: 5px 0; }
    .member-list-container { grid-template-columns: 1fr; }

    .vertical-calendar-grid, .calendar-header-sticky { grid-template-columns: 24px repeat(7, 1fr) !important; }
    .vertical-calendar-grid { grid-auto-rows: minmax(70px, 1fr); }
    .calendar-day { min-height: 70px !important; }
    .event-container { top: 22px; left: 2px; right: 2px; bottom: 2px; }

    .event-details-overlay {
        position: fixed !important; top: 50% !important; left: 50% !important;
        transform: translate(-50%, -50%) !important; width: 85vw !important;
        max-height: 70vh !important; z-index: 3000 !important;
        pointer-events: auto;
    }
}