/* =============================== */
/* GLOBAL LAYOUT & RESETS          */
/* =============================== */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f6f8fb;
    /* Prevent horizontal scrolling on mobile */
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- MOBILE: No unwanted padding or scroll --- */
@media (max-width: 900px) {
    html, body {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* =============================== */
/* HEADER (FIXED TOP)              */
/* =============================== */
.cancham-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100vw;
    min-height: 65px;
    background: linear-gradient(94deg, #fff 90%, #f8f9fa 100%);
    box-shadow: 0 2px 18px #c8102e18, 0 1.5px 0 #edeef1;
    color: #18253d;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cancham-header-inner {
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;
    padding: 0 2vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
}
.cancham-logo-wrap { display: flex; align-items: center; gap: 18px; }
.cancham-logo { height: 46px; width: 46px; border-radius: 10px; object-fit: contain; background: #fff; box-shadow: 0 2px 9px #c8102e18; border: 1.2px solid #f1f2f5;}
.cancham-divider { width: 3.5px; height: 37px; background: linear-gradient(#c8102e 5%, #d32f2f 82%, #fff 100%); border-radius: 3px; margin: 0 15px; box-shadow: 0 1.5px 8px #c8102e22;}
.cancham-title { font-size: 1.32em; font-weight: 900; letter-spacing: .01em; color: #c8102e; text-shadow: 0 2px 10px #c8102e11; line-height: 1.17; margin-right: 2px;}
.cancham-subtitle { font-size: 0.98em; color: #233155; font-weight: 600; margin-left: 3px; opacity: .93; letter-spacing: 0.01em;}
.user-info { font-size: 1.07em; color: #233155; display: flex; align-items: center; gap: 8px;}
.user-info b { color: #c8102e; }
.user-info a {
    color: #c8102e; text-decoration: none; font-weight: 600; margin-left: 10px; padding: 7px 18px;
    border-radius: 18px; background: linear-gradient(93deg,#f8fafd 40%,#fbe6ea 100%);
    border: 1.1px solid #eed4d7; transition: background .13s, color .13s; box-shadow: 0 1px 4px #c8102e0c;
}
.user-info a:hover { background: #c8102e; color: #fff; }

/* =============================== */
/* SIDEBAR (FIXED LEFT)            */
/* =============================== */
.sidebar {
    position: fixed;
    top: 65px; left: 0; bottom: 52px;
    min-width: 150px; max-width: 190px; width: 100%;
    background: linear-gradient(180deg, #23272d 90%, #181b1f 100%);
    z-index: 1100;
    padding-top: 8px;
    font-size: .98em;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 18px #12161e23;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #343a45 #232c38;
}
.sidebar-section { margin: 0 0 7px 0; border-radius: 10px; overflow: hidden; }
.sidebar-section-head {
    width: 100%; background: #232834; color: #f2f3f5; border: none; outline: none;
    font-weight: 700; font-size: 1em; display: flex; align-items: center; gap: 8px;
    padding: 13px 14px 11px 18px; cursor: pointer; transition: background .12s, color .13s; border-radius: 9px 9px 0 0; user-select: none;
}
.sidebar-section-head[aria-expanded="true"], .sidebar-section-head:hover {
    background: linear-gradient(90deg,#c8102e24 2%,#de3b4916 100%);
    color: #fff;
}
.sidebar-section-head .bi { font-size: 1.1em; margin-right: 6px; transition: transform .17s;}
.sidebar-section.open .sidebar-section-head .bi, .sidebar-section-head[aria-expanded="true"] .bi { transform: rotate(90deg);}
.sidebar-links { list-style: none; margin: 0; padding: 0; background: #232834; display: none; border-radius: 0 0 9px 9px;}
.sidebar-section.open .sidebar-links, .sidebar-section-head[aria-expanded="true"] + .sidebar-links { display: block; }
.sidebar-link {
    display: flex; align-items: center; gap: 11px; color: #e2e6ed; border-radius: 7px;
    font-size: 1em; padding: 8px 18px 8px 27px; margin: 1px 0; text-decoration: none;
    transition: background 0.15s, color 0.13s, box-shadow .11s, transform .11s;
    font-weight: 500; cursor: pointer;
}
.sidebar-link i { font-size: 1.12em; width: 1.3em; min-width: 1.3em; opacity: 0.9;}
.sidebar-link.active, .sidebar-link:focus, .sidebar-link:hover {
    color: #fff; background: linear-gradient(90deg,#c8102e 16%,#de3b49 86%);
    box-shadow: 0 1.5px 10px #c8102e15; transform: scale(1.045);
}
.sidebar-link:active {
    background: linear-gradient(90deg, #b41023 27%, #c8102e 100%);
    color: #fff; transform: scale(.98);
}
.sidebar-link:focus-visible { outline: 2px solid #e93a51; }
.sidebar-link span { font-size: 1em; letter-spacing: .03em; font-weight: 600; }

/* Sidebar FAB (mobile only) */
.sidebar-fab {
    position: fixed; bottom: 23px; right: 15px; width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(130deg,#c8102e 60%,#de3b49 120%); color: #fff; border: none;
    box-shadow: 0 2px 19px #b71c1c28; display: flex; align-items: center; justify-content: center;
    font-size: 1.55em; z-index: 2050; transition: background .14s, box-shadow .13s, color .11s; cursor: pointer;
}
.sidebar-fab:active, .sidebar-fab:focus, .sidebar-fab:hover {
    background: #b71c1c; color: #fff; box-shadow: 0 5px 28px #c8102e33; outline: none;
}
@media (min-width: 900px) { .sidebar-fab { display: none !important; } }

/* =============================== */
/* FOOTER (FIXED BOTTOM)           */
/* =============================== */
.cancham-footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100vw;
    background: linear-gradient(90deg, #fff 80%, #f8f9fa 100%);
    color: #1b2539;
    box-shadow: 0 -2px 18px #c8102e12, 0 -1px 0 #edeef1;
    font-size: 1em;
    font-family: 'Segoe UI', Arial, sans-serif;
    padding: 22px 0 14px 0;
    margin-top: 0;
    text-align: center;
    z-index: 1200;
}
.cancham-footer-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 12px 16px; }
.cancham-footer-main { font-weight: 700; color: #c8102e; letter-spacing: .01em; }
.cancham-footer-sep { color: #e5e5e5; margin: 0 8px; font-weight: 400; font-size: 1.1em; user-select: none; }
.cancham-footer-link {
    color: #205fa4; text-decoration: none; font-weight: 600; transition: color .13s, background .13s, border .13s;
    padding: 4px 13px; border-radius: 8px; background: #f8fafd; border: 1.1px solid #e7e7ed;
}
.cancham-footer-link:hover { color: #fff; background: #c8102e; border-color: #c8102e; }
@media (max-width: 600px) {
    .cancham-footer-inner { flex-direction: column; gap: 7px; }
    .cancham-footer-main { font-size: 0.99em;}
    .cancham-footer { display: none !important; }
}
@media (max-width: 900px) {
    .cancham-footer,
    .cancham-footer * {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: none !important;
        position: static !important;
        z-index: -99 !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}


/* =============================== */
/* MAIN DASHBOARD CONTENT AREA     */
/* =============================== */
/* 
   - Fills all available horizontal space to the right of the sidebar
   - Stays under the fixed header and above the fixed footer
   - No horizontal scroll, never leaks content, and always has safe inside padding
*/

.dashboard-main-content-area {
    margin-top: 90px;              /* height of fixed header */
    margin-left: 190px;            /* width of fixed sidebar */
    margin-bottom: 120px;           /* height of fixed footer */
    min-height: calc(100vh - 65px - 52px); /* fills vertical space between header/footer */
    background: #f6f8fb;           /* light background, fills entire area */
    display: flex;
    overflow-y: auto; /* Make the content area scroll! */
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 18px;               /* gentle padding left/right, content never touches edge */
    width: calc(100vw - 190px);    /* exactly fills space right of sidebar */
    max-width: 100vw;              /* never overflows screen */
    overflow-x: hidden;            /* prevents scroll bars if content pushes too wide */
    padding-bottom: 200px;
}

/* On smaller screens, sidebar collapses so we use full width and reduce padding */
@media (max-width: 1100px) {
    .dashboard-main-content-area {
        margin-left: 0;
        width: 100vw;
        padding: 0 2vw;
    }
}

/* =============================== */
/* CONTENT CARD SECTION (optional) */
/* =============================== */
/* 
   - Card style for inner content, centered, max-width for readability 
   - Adjusts for mobile
*/

.content-section-narrow {
    width: 100%;
    height: 100%;       /* fill height of parent */
    margin: 0;          /* remove auto margins */
    padding: 38px 40px; /* keep your desired padding */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 26px #c8102e13;
    box-sizing: border-box;
    overflow-x: auto;   /* horizontal scroll only if needed */
    overflow-y: visible; /* no vertical scroll inside */
}

/* Optional smaller screen adjustment */
@media (max-width: 900px) {
    .content-section-narrow {
        padding: 18px 3vw;
        border-radius: 9px;
        margin: 0;
    }
}


/* =============================== */
/* UNIVERSAL: Prevent horizontal scroll */
/* =============================== */
html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
}


/* =============================== */
/* DIRECTORY PAGE STYLES           */
/* =============================== */
.directory-card {
    max-width: 1200px;
    margin: 0 auto 38px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px #1b20360e;
    padding: 44px 40px 32px 40px;
}
.directory-card h2 {
    font-weight: 900;
    color: #142047;
    font-size: 1.6rem;
    margin-bottom: 32px;
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 1.3em;
    margin-bottom: 30px;
}
.directory-listing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.4rem 2.4rem;
}
.member-card {
    background: #f8fafb;
    border-radius: 15px;
    box-shadow: 0 2px 16px #a2b5d026, 0 2px 6px #1a1d2511;
    padding: 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1.7px solid #f1f3f9;
    transition: box-shadow .2s, transform .2s;
}
.member-card:hover {
    box-shadow: 0 6px 40px #1335703a;
    transform: translateY(-3px) scale(1.02);
}
.member-animal { position: absolute; top: 18px; right: 18px; z-index: 2; }
.company-title {
    font-size: 1.25em; font-weight: 800; color: #183973;
    margin-bottom: 6px; min-height: 32px;
    display: flex; align-items: center; gap: 10px;
}
.company-logo {
    width: 48px; height: 48px; object-fit: contain; border-radius: 8px; border: 1.3px solid #d7dce3;
    background: #fff; margin-left: auto;
}
.profile-sector { font-size: 1.02em; font-weight: 600; color: #139c8c; margin-bottom: 10px; }
.display-name { color: #607bb2; font-weight: 600; font-size: 1.03em; margin-bottom: 12px; min-height: 28px; }
.profile-bio { font-size: 1em; color: #1c2338; margin-bottom: 14px; line-height: 1.5; flex-grow: 1; overflow-wrap: break-word; }
.contact-info {
    font-size: .95em; color: #1b4669; margin-top: auto;
    display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
    border-top: 1px solid #d7dce3; padding-top: 14px;
}
.contact-label { font-weight: 600; color: #1b4669; margin-right: 4px; white-space: nowrap; }
.contact-item { display: flex; align-items: center; gap: 5px; }
.contact-item a { color: #1b4669; text-decoration: none; word-break: break-word; }
.contact-item a:hover { text-decoration: underline; }
.profile-website a { color: #1a56db; font-weight: 600; }
.profile-location { color: #697ca3; font-size: .95em; margin-top: 10px; line-height: 1.2; }
.profile-location i { margin-right: 6px; color: #697ca3; }
.no-results {
    color: #888; text-align: center; font-size: 1.14em;
    margin-top: 40px; grid-column: 1/-1;
}
@media (max-width: 900px) {
    .directory-card { max-width: 99vw; padding: 12px 3vw 17px 3vw; }
    .directory-listing { grid-template-columns: 1fr; gap: 1.5rem; }
    .member-animal { top: 14px; right: 13px; }
    .contact-info { gap: 12px 16px; }
    .company-logo { width: 40px; height: 40px; }
}

/* =============================== */
/* EVENTS PAGE - MODERNIZED        */
/* =============================== */

.events-main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px 60px 20px;
    background: linear-gradient(114deg, #f7fafc 60%, #f3f7fb 100%);
    border-radius: 32px;
    box-shadow: 0 8px 36px #c8102e0e;
}

/* ---------- Header Row ---------- */
.events-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 32px;
}

.events-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #c8102e;
    letter-spacing: .01em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 4px 24px #c8102e13;
}

/* ---------- Add Button ---------- */
.events-add-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #38bb6c 60%, #27be8a 100%);
    color: #fff;
    font-size: 1.12em;
    font-weight: 700;
    padding: 13px 32px;
    border-radius: 27px;
    border: none;
    text-decoration: none;
    gap: 10px;
    box-shadow: 0 3px 18px #38bb6c2b;
    transition: background .19s, box-shadow .17s, transform .15s;
    will-change: transform;
    letter-spacing: 0.02em;
}
.events-add-btn:hover {
    background: linear-gradient(90deg, #2ea76a 90%, #1e8e6a 100%);
    color: #fff;
    box-shadow: 0 8px 38px #38bb6c3e;
    transform: scale(1.04) translateY(-2px);
}

/* ---------- Filter Row ---------- */
.events-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 17px 18px;
    margin-bottom: 44px;
    background: #fff;
    padding: 18px 18px 13px 18px;
    border-radius: 19px;
    box-shadow: 0 2px 13px #c8102e13;
    border: 1.3px solid #f0f1f6;
}

.events-filter-row .form-control,
.events-filter-row .form-select {
    min-width: 160px;
    max-width: 270px;
    flex: 1 1 160px;
    background: #f8fafb;
    border-radius: 13px;
    border: 1.3px solid #e3e6ed;
    font-size: 1.09em;
    box-shadow: none;
    padding: 10px 13px;
    transition: border-color .14s;
}
.events-filter-row .form-control:focus,
.events-filter-row .form-select:focus {
    border-color: #38bb6c;
    outline: none;
    box-shadow: 0 1.5px 12px #38bb6c16;
}
.events-filter-row .btn {
    min-width: 110px;
    padding: 11px 0;
    font-size: 1.09em;
    border-radius: 15px;
    font-weight: 700;
    border-width: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .01em;
    background: linear-gradient(92deg, #fff 85%, #f2fef8 100%);
    transition: color .14s, border-color .14s, box-shadow .15s, background .13s;
}
.events-filter-row .btn .bi {
    font-size: 1.19em;
    margin-right: 8px;
}
.events-filter-row .btn:hover,
.events-filter-row .btn:focus {
    color: #fff;
    background: linear-gradient(92deg, #38bb6c 90%, #2ea76a 100%);
    border-color: #38bb6c;
    box-shadow: 0 6px 24px #38bb6c2d;
}

/* ---------- Event Cards Grid ---------- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem 2.5rem;
}

/* ---------- Individual Event Card ---------- */
.events-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 5px 26px #38bb6c15, 0 3px 18px #1b203615;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e8ecf2;
    transition: box-shadow .15s, transform .15s, border-color .12s;
    min-height: 410px;
    position: relative;
}
.events-card:hover {
    box-shadow: 0 18px 36px #38bb6c23;
    transform: translateY(-4px) scale(1.018);
    border-color: #38bb6c79;
}
.events-featured {
    border-color: #38bb6c;
    box-shadow: 0 8px 38px #38bb6c25, 0 3px 12px #38bb6c12;
}

/* ---------- Card Image ---------- */
.events-card-img-wrap {
    width: 100%;
    height: 190px;
    background: #f0f2f5;
    overflow: hidden;
    position: relative;
    border-bottom: 1.5px solid #e3e9f1;
}
.events-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .18s;
}
.events-card:hover .events-card-img {
    transform: scale(1.045);
}

/* ---------- Featured Badge ---------- */
.events-badge {
    position: absolute;
    top: 13px;
    right: 14px;
    background: linear-gradient(93deg, #38bb6c 70%, #23d1a2 100%);
    color: #fff;
    font-size: 1.04em;
    font-weight: 800;
    padding: 6px 19px;
    border-radius: 22px;
    box-shadow: 0 4px 15px #38bb6c22;
    z-index: 2;
    letter-spacing: .04em;
    border: 1.1px solid #eaf8f1;
}

/* ---------- Card Body & Info ---------- */
.events-card-body {
    padding: 20px 20px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.events-date-row {
    font-size: 1.07em;
    font-weight: 700;
    color: #297842;
    margin-bottom: 2px;
    display: flex;
    gap: 9px;
    align-items: center;
    letter-spacing: 0.01em;
}
.events-title-main {
    font-size: 1.19em;
    font-weight: 900;
    color: #22343f;
    margin-bottom: 8px;
    min-height: 30px;
    line-height: 1.14;
    letter-spacing: 0.01em;
    word-break: break-word;
}
.events-tags {
    margin-bottom: 6px;
}
.events-tag {
    font-size: 1em;
    padding: 2.5px 13px;
    border-radius: 8px;
    font-weight: 700;
    margin-right: 7px;
    margin-bottom: 3px;
    display: inline-block;
    box-shadow: 0 2px 8px #e3f8ed11;
    border: 1.1px solid #f0f1f6;
    text-transform: capitalize;
}
.events-type {
    background: #e6f8ef;
    color: #38bb6c;
    border-color: #c3f1d7;
}
.events-category {
    background: #f7e8ee;
    color: #c8102e;
    border-color: #f6cfd9;
}
.events-location {
    color: #205fa4;
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 4px;
}
.events-summary {
    font-size: 1.08em;
    color: #334b5f;
    margin-bottom: 8px;
    font-weight: 600;
    min-height: 23px;
}
.events-description {
    color: #406159;
    font-size: 1em;
    flex-grow: 1;
    margin-bottom: 7px;
}
.events-no-results {
    color: #888;
    text-align: center;
    font-size: 1.19em;
    margin: 44px 0 30px 0;
    grid-column: 1/-1;
    background: #fff0;
    border-radius: 18px;
    letter-spacing: 0.03em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
    .events-main-content { padding: 32px 3vw 40px 3vw; border-radius: 19px; }
    .events-grid { gap: 1.4rem 1.4rem; }
}
@media (max-width: 900px) {
    .events-main-content {
        padding: 16px 2vw 28px 2vw;
    }
    .events-title {
        font-size: 1.22em;
        gap: 6px;
    }
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .events-card-img-wrap {
        height: 128px;
    }
    .events-card-body {
        padding: 11px 6px;
    }
    .events-filter-row {
        flex-direction: column;
        gap: 10px;
        padding: 12px 7px 9px 7px;
        border-radius: 14px;
    }
    .events-filter-row .form-control,
    .events-filter-row .form-select {
        min-width: 99px;
        max-width: 99vw;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .events-main-content { border-radius: 9px; }
    .events-title { font-size: 1em; }
    .events-header-row { gap: 4px; margin-bottom: 16px; }
}
/* =============================== */
/*      EVENT CREATE FORM STYLES    */
/* =============================== */

/* ---------- PANE / WRAPPER ---------- */
.proform-wrapper {
    max-width: 960px;
    margin: 32px auto 48px auto;
    padding: 0;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 82vh;
    justify-content: center;
}

/* ---------- CARD LAYOUT ---------- */
.proform-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 36px #20294518, 0 2px 8px #c8102e11;
    padding: 40px 42px 30px 42px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 26px;
    border: 1.1px solid #eaeef4;
    min-height: 100%;
}
@media (max-width: 900px) {
    .proform-card { padding: 22px 4vw 18px 4vw; border-radius: 12px; }
}
@media (max-width: 600px) {
    .proform-card { padding: 8px 2vw 9px 2vw; border-radius: 7px; gap: 10px; }
}

/* ---------- HEADER (TITLE + BACK BTN) ---------- */
.proform-header {
    margin-bottom: 7px;
    gap: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.proform-title {
    font-size: 2rem;
    font-weight: 900;
    color: #c8102e;
    display: flex;
    align-items: center;
    gap: 11px;
    text-shadow: 0 4px 14px #c8102e12;
    margin: 0;
    line-height: 1.11;
}
.proform-back {
    color: #205fa4;
    font-size: 1em;
    font-weight: 700;
    border-radius: 11px;
    text-decoration: none;
    padding: 6px 22px;
    background: #f7f9fc;
    border: 1.1px solid #e7eaf1;
    transition: background .13s, color .13s, border .13s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.proform-back:hover, .proform-back:focus {
    color: #fff;
    background: #c8102e;
    border-color: #c8102e;
    text-decoration: none;
}

/* ---------- FIELDS & LABELS ---------- */
.proform-card .row,
.proform-card .row.g-3,
.proform-card .row.g-4 {
    margin-right: 0;
    margin-left: 0;
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 1.4rem;
}
.proform-card .form-label,
.proform-card .form-check-label {
    font-size: 1.09em;
    font-weight: 600;
    color: #192240;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.proform-card .form-control,
.proform-card .form-select {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.2px solid #e1e5ef;
    font-size: 1.08em;
    background: #f9fafc;
    color: #192240;
    box-shadow: none;
    min-height: 48px;
    margin-bottom: 2px;
    transition: border-color .14s, box-shadow .13s;
}
.proform-card .form-control:focus,
.proform-card .form-select:focus {
    border-color: #38bb6c;
    background: #f2fef8;
    outline: none;
    box-shadow: 0 1.5px 9px #38bb6c20;
}
.proform-card .form-control[readonly],
.proform-card .form-control:disabled {
    background: #f4f6fa;
    color: #a3a8bc;
    border-color: #e9ecf3;
}
.proform-card textarea.form-control {
    resize: vertical;
    min-height: 110px;
    line-height: 1.4;
}

/* ---------- LIVE CHARACTER COUNTS ---------- */
.char-count, .text-muted#descCount, .text-muted#summaryCount {
    font-size: .96em;
    margin-left: 6px;
    opacity: .7;
    font-weight: 400;
    letter-spacing: .01em;
}

/* ---------- VALIDATION ---------- */
.proform-card .invalid-feedback {
    font-size: .97em;
    color: #c8102e;
    margin-top: 4px;
    padding-left: 2px;
}

/* ---------- FILE INPUTS & PREVIEWS ---------- */
input[type="file"].form-control {
    padding: 11px 13px;
    background: #f5fafd;
}
#eventImagePreview img {
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 2px 14px #205fa41a;
    border: 1.1px solid #dde2eb;
    max-width: 100%;
    max-height: 140px;
}

/* ---------- FEATURED CHECKBOX ---------- */
.form-check-input[type="checkbox"] {
    width: 1.18em;
    height: 1.18em;
    margin-top: 2px;
    border-radius: 6px;
}
.form-check-label {
    font-weight: 600;
    font-size: 1.05em;
    margin-left: 6px;
    color: #297842;
    letter-spacing: 0.01em;
}
.bi-star-fill.text-warning {
    color: #ffd34e !important;
    margin-right: 3px;
}

/* =============================== */
/*      CREATE FORM BUTTONS        */
/* =============================== */
.proform-card .d-flex.gap-2 {
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}
.proform-card .btn-lg {
    font-size: 1.12em;
    padding: 16px 34px;
    border-radius: 15px;
    box-shadow: 0 3px 13px #38bb6c11;
    font-weight: 800;
    letter-spacing: 0.01em;
    min-width: 165px;
    transition: box-shadow .15s, background .14s, border .12s;
}
.proform-card .btn-success.btn-lg {
    background: linear-gradient(91deg, #38bb6c 85%, #2ea76a 100%);
    border: none;
    color: #fff;
}
.proform-card .btn-success.btn-lg:hover,
.proform-card .btn-success.btn-lg:focus {
    background: linear-gradient(91deg, #2ea76a 90%, #1e8e6a 100%);
    box-shadow: 0 7px 23px #38bb6c29;
    color: #fff;
}
.proform-card .btn-outline-secondary.btn-lg {
    background: #fff;
    border: 1.3px solid #dde2eb;
    color: #233155;
}
.proform-card .btn-outline-secondary.btn-lg:hover,
.proform-card .btn-outline-secondary.btn-lg:focus {
    background: #f6f6fb;
    border-color: #205fa4;
    color: #205fa4;
    box-shadow: 0 2px 15px #205fa41a;
}

/* =============================== */
/*      EVENT DETAIL PAGE STYLES   */
/* =============================== */
.event-detail-wrapper {
    max-width: 750px;
    margin: 44px auto 0 auto;
    padding: 0 18px 48px 18px;
}
.event-detail-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 36px #38bb6c19;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1.5px solid #e8ecf2;
    transition: box-shadow .16s, border-color .14s;
    position: relative;
    min-width: 0;
    margin-bottom: 18px;
}
.event-detail-image-wrap {
    width: 100%;
    height: 270px;
    background: #f0f2f5;
    position: relative;
    border-bottom: 1.5px solid #e3e9f1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    background: #fff;
}

/* ----- BADGES FOR FEATURED/PAST ---- */
.badge.featured-badge {
    position: absolute;
    top: 18px;
    left: 22px;
    background: linear-gradient(93deg, #38bb6c 70%, #23d1a2 100%);
    color: #fff;
    border-radius: 22px;
    padding: 7px 23px;
    font-weight: 800;
    font-size: 1.09em;
    z-index: 5;
    border: 1.3px solid #eaf8f1;
    box-shadow: 0 6px 24px #2bc8a434;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.badge.past-badge {
    position: absolute;
    top: 18px;
    right: 22px;
    background: #bcbcbc;
    color: #fff;
    border-radius: 22px;
    padding: 7px 20px;
    font-weight: 700;
    font-size: 1.01em;
    z-index: 5;
    border: 1.2px solid #c7c7c7;
    display: flex;
    align-items: center;
    gap: 7px;
}

.event-detail-content {
    padding: 36px 32px 30px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.event-detail-title {
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 11px;
    color: #22343f;
    line-height: 1.18;
    letter-spacing: 0.01em;
    word-break: break-word;
}
.event-detail-datetime,
.event-detail-location {
    font-size: 1.13em;
    font-weight: 700;
    margin-bottom: 7px;
    color: #205fa4;
    display: flex;
    gap: 10px;
}
.event-detail-tags {
    margin: 7px 0 12px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.event-tag {
    font-size: 1.01em;
    padding: 5px 18px;
    border-radius: 12px;
    font-weight: 800;
    background: #e8f9ef;
    color: #38bb6c;
    border: 1.3px solid #c3f1d7;
    box-shadow: 0 3px 9px #e3f8ed11;
    text-transform: capitalize;
}
.event-category {
    background: #f7e8ee;
    color: #c8102e;
    border-color: #f6cfd9;
}
.event-detail-summary {
    font-size: 1.11em;
    color: #334b5f;
    background: #f7fafc;
    padding: 14px 18px 13px 18px;
    border-radius: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}
.event-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    align-items: center;
    margin-top: 28px;
}
.event-detail-actions .btn {
    font-weight: 700;
    border-radius: 13px;
    padding: 12px 32px;
    font-size: 1.08em;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 14px #38bb6c11;
}
.event-detail-actions .btn-outline-primary {
    border: 2px solid #38bb6c;
    color: #38bb6c !important;
    background: #fff;
    transition: background .19s, color .16s;
}
.event-detail-actions .btn-outline-primary:hover,
.event-detail-actions .btn-outline-primary:focus {
    background: #38bb6c;
    color: #fff !important;
}
.event-detail-actions .btn-success {
    background: linear-gradient(91deg, #38bb6c 85%, #2ea76a 100%);
    border: none;
    color: #fff !important;
}
.event-detail-actions .btn-success.disabled {
    opacity: 0.65;
    pointer-events: none;
}

@media (max-width: 900px) {
    .event-detail-wrapper {
        max-width: 99vw;
        padding: 0 6px 48px 6px;
    }
    .event-detail-content {
        padding: 18px 8px 20px 8px;
    }
    .event-detail-title {
        font-size: 1.29em;
    }
    .event-detail-image-wrap { height: 200px; }
}
@media (max-width: 500px) {
    .event-detail-content { padding: 13px 3px 17px 3px; }
    .event-detail-title { font-size: 1.05em; }
    .event-detail-summary { padding: 10px 5px; font-size: 0.98em; }
    .event-detail-image-wrap { height: 140px; }
}
/* ==============================
   BUTTONS INSIDE EVENT CARDS BODY
   ============================== */

/* Make button text bold, rounded, and nicely padded */
.events-card-body .btn {
    font-weight: 700;
    border-radius: 12px;
    padding: 8px 18px;
    font-size: 0.93em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.25s, box-shadow 0.25s, color 0.25s;
    user-select: none;
    cursor: pointer;
    text-decoration: none;
}

/* Space between buttons */
.events-card-body .btn:not(:last-child) {
    margin-right: 8px;
}

/* View Details button - solid green gradient */
.events-card-body .btn-success {
    background: linear-gradient(91deg, #38bb6c 85%, #2ea76a 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 3px 12px #2c9a5baa;
}
.events-card-body .btn-success:hover,
.events-card-body .btn-success:focus {
    background: linear-gradient(91deg, #2ea76a 90%, #1e8e6a 100%);
    box-shadow: 0 7px 22px #38bb6cbb;
    color: #fff !important;
    text-decoration: none;
}

/* Attachment button - outlined green */
.events-card-body .btn-outline-primary {
    border: 2px solid #38bb6c;
    color: #38bb6c !important;
    background-color: transparent;
    box-shadow: none;
}
.events-card-body .btn-outline-primary:hover,
.events-card-body .btn-outline-primary:focus {
    background-color: #38bb6c;
    color: #fff !important;
    border-color: #2ea76a;
    box-shadow: 0 6px 18px #2ea76a88;
    text-decoration: none;
}

/* Disabled state for past event buttons */
.events-card.past-event .btn {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}




/* ====== HEADER ====== */
.news-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.news-page-title {
  font-size: 2.13em;
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 900;
  color: #223241;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}
.news-add-btn {
  font-weight: 700;
  font-size: 1.09em;
  background: #c8102e;
  color: #fff !important;
  border-radius: 12px;
  padding: 12px 32px;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 4px 16px #c8102e1a;
  transition: background .13s, color .13s, box-shadow .15s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  min-width: 140px;
  justify-content: center;
}
.news-add-btn:hover,
.news-add-btn:focus {
  background: #a31023;
  color: #fff !important;
  box-shadow: 0 8px 32px #c8102e23;
}

@media (max-width: 600px) {
  .news-header-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 10px 0;
    margin-bottom: 12px;
  }
  .news-add-btn {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding: 13px 0;
    font-size: 1.04em;
  }
}

/* ====== SEARCH BAR ====== */
.news-search-form {
  display: flex;
  gap: 7px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 16px auto; /* 16px gap below search bar */
}
.news-search-form .form-control {
  flex: 1 1 0;
  border-radius: 10px;
  font-size: 1.07em;
  padding: 10px 13px;
  background: #fff;
  border: 1.3px solid #e2e7ee;
  box-shadow: 0 1px 5px #b5beca07;
  width: 100%;
}
.news-search-form .btn {
  border-radius: 10px;
  font-size: 1.08em;
  padding: 10px 19px;
  font-weight: 600;
  background: #fff;
  border: 1.3px solid #b3b3af;
  color: #c8102e;
  box-shadow: 0 1px 5px #b5beca07;
  display: flex;
  align-items: center;
  transition: background .13s, color .13s, border .13s;
}
.news-search-form .btn:hover {
  background: #c8102e;
  color: #fff;
  border-color: #c8102e;
}
@media (max-width: 600px) {
  .news-search-form {
    flex-direction: column;
    gap: 6px 0;
    max-width: 100vw;
    margin-bottom: 10px;
  }
  .news-search-form .form-control,
  .news-search-form .btn {
    width: 100%;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ====== FILTER BAR ====== */
.news-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  background: #f4f6fa;
  border-radius: 14px;
  padding: 14px 18px 10px 18px;
  margin-bottom: 22px; /* gap below filter row */
  box-shadow: 0 2px 14px #bfc7d111;
  border: 1.1px solid #e2e7ee;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  gap: 14px 12px;
}
.news-filter-row > * {
  flex: 1 1 180px;
  min-width: 110px;
  max-width: 240px;
}
.news-filter-row .form-control,
.news-filter-row .form-select {
  border-radius: 10px;
  font-size: 1.07em;
  padding: 10px 13px;
  background: #fff;
  border: 1.3px solid #e2e7ee;
  box-shadow: 0 1px 5px #b5beca07;
  width: 100%;
}
.news-filter-row .form-select {
  min-width: 70px;
  max-width: 140px;
}
.news-filter-row .btn {
  font-size: 1.05em;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 80px;
  box-shadow: 0 1px 5px #b5beca07;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #38475a;
  border: 1.3px solid #b3b3af;
  transition: background .13s, color .13s, border .13s;
}
.news-filter-row .btn-outline-secondary:hover,
.news-filter-row .btn-outline-secondary:focus {
  background: #edeaea;
  border-color: #c8102e;
  color: #c8102e !important;
}
@media (max-width: 900px) {
  .news-filter-row {
    padding: 10px 2vw 10px 2vw;
    gap: 10px 6px;
    max-width: 100vw;
    margin-bottom: 10px;
  }
  .news-filter-row > * {
    max-width: 100%;
    min-width: 80px;
    flex: 1 1 48%;
  }
  .news-filter-row .btn {
    min-width: 0;
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 600px) {
  .news-filter-row {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 1vw 6px 1vw;
    gap: 6px 0;
    margin-bottom: 10px;
  }
  .news-filter-row > * {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  .news-filter-row .btn {
    width: 100%;
    margin-left: 0;
    min-width: 0;
  }
}

/* ====== NEWS GRID/CARDS (optional, if used) ====== */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 18px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .news-grid { gap: 16px 8px; }
}
@media (max-width: 600px) {
  .news-grid { flex-direction: column; gap: 9px 0; }
}
.news-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #bfc7d111;
  padding: 18px 16px 16px 16px;
  width: 100%;
  max-width: 370px;
  min-width: 0;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 600px) {
  .news-card { max-width: 100%; padding: 12px 7px 12px 9px; }
}

/* ====== NO RESULTS ====== */
.news-no-results {
  text-align: center;
  padding: 22px 0 16px 0;
  color: #7e7e77;
  font-size: 1.13em;
  letter-spacing: .01em;
  font-family: 'Merriweather', Georgia, serif;
  opacity: .85;
}


/* ========== BADGES (FEATURED, HIDDEN) ========== */
.news-badge {
    position: absolute;
    left: 17px;
    top: 19px;
    background: #223241;
    color: #fff;
    font-size: .97em;
    font-weight: 700;
    border-radius: 19px;
    padding: 8px 19px 8px 16px;
    z-index: 5;
    box-shadow: 0 5px 18px #2232411b;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: .01em;
    border: 1.1px solid #d8e2e9;
}
.featured-badge {
    background: linear-gradient(93deg, #c8102e 80%, #a32020 100%);
    color: #fff;
    border: 1.2px solid #e5cad2;
    left: 17px;
}
.past-badge {
    background: #a5a8ac;
    color: #fff;
    border: 1.2px solid #ced0d4;
    left: 17px;
    top: 57px;
}

/* ========== CARD BODY ========== */
.news-card-body-big {
    flex: 1 1 0%;
    padding: 28px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 9px;
    background: #fffdfa;
    position: relative;
    min-height: 220px;
}
@media (max-width: 900px) {
    .news-card-body-big { padding: 15px 12px 12px 14px; }
}

.news-meta-row {
    font-size: 1.09em;
    color: #656b73;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: 'Source Sans Pro', Arial, sans-serif;
}
.news-card-title {
    font-size: 1.53em;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 900;
    color: #223241;
    line-height: 1.18;
    margin-bottom: 4px;
}
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 2px;
}
.news-tag {
    font-size: 1.03em;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    background: #eff3f7;
    color: #223241;
    border-radius: 9px;
    padding: 5px 16px 5px 13px;
    font-weight: 600;
    border: 1px solid #e7eaf0;
    letter-spacing: .01em;
}
.news-category {
    background: #f7e8ee;
    color: #c8102e;
    border-color: #f6cfd9;
}
.news-summary,
.news-body-preview {
    color: #2e333c;
    font-size: 1.13em;
    margin-bottom: 7px;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    line-height: 1.58;
    white-space: pre-line;
    word-break: break-word;
}
.news-summary { font-weight: 600; }
.news-body-preview { opacity: .85; font-weight: 400; }

.news-card-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    padding-top: 7px;
}

/* =========== Responsive tweaks for extra long titles/text =========== */
@media (max-width: 420px) {
    .news-card-title { font-size: 1.07em; }
    .news-summary, .news-body-preview { font-size: .97em; }
}

/* =========== NEWS CARD BODY, SUMMARY, ACTIONS =========== */
.news-summary,
.news-body-preview {
    color: #2e333c;
    font-size: 1.13em;
    margin-bottom: 7px;
    font-family: 'Source Sans Pro', Arial, sans-serif;
    line-height: 1.58;
    white-space: pre-line;
    word-break: break-word;
}
.news-summary { font-weight: 600; }
.news-body-preview { opacity: .85; font-weight: 400; }

.news-card-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    padding-top: 7px;
}
.news-card-actions .btn {
    font-size: 1.08em;
    border-radius: 11px;
    font-weight: 700;
    padding: 9px 27px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background .14s, color .12s, box-shadow .15s;
    box-shadow: 0 2px 7px #22324110;
}
.news-card-actions .btn-sm {
    font-size: 1.01em;
    padding: 9px 19px;
}
.news-card-actions .btn-success {
    background: linear-gradient(93deg, #38bb6c 80%, #259f6c 100%);
    border: none;
    color: #fff !important;
}
.news-card-actions .btn-success:hover,
.news-card-actions .btn-success:focus {
    background: linear-gradient(93deg, #259f6c 90%, #178554 100%);
    color: #fff !important;
}
.news-card-actions .btn-outline-primary {
    border: 2px solid #38bb6c;
    color: #38bb6c !important;
    background: #fff;
}
.news-card-actions .btn-outline-primary:hover,
.news-card-actions .btn-outline-primary:focus {
    background: #38bb6c;
    color: #fff !important;
    border-color: #178554;
}
.news-card-actions .btn-outline-secondary {
    border: 1.6px solid #ced6e6;
    color: #223241 !important;
    background: #fff;
}
.news-card-actions .btn-outline-secondary:hover,
.news-card-actions .btn-outline-secondary:focus {
    background: #f0f1f4;
    border-color: #223241;
    color: #111 !important;
}

/* =========== "View More" Button =========== */
.news-view-more-row {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 38px;
}
.news-view-more-row .btn-lg {
    font-size: 1.16em;
    padding: 12px 38px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 4px 18px #22324115;
}

/* Responsive tweaks for text */
@media (max-width: 420px) {
    .news-card-title { font-size: 1.07em; }
    .news-summary, .news-body-preview { font-size: .97em; }
}

/* =========== NEWS CONTAINER, GRID, CARD =========== */
.news-main-content.compact {
    max-width: 980px;
    margin: 0 auto 60px auto;
    padding: 40px 24px 36px 24px;
    background: #faf9f6;
    border-radius: 24px;
    box-shadow: 0 8px 36px #222a4016;
    min-height: 650px;
    position: relative;
}
@media (min-width: 1100px) {
    .news-main-content.compact { max-width: 1150px; }
}

.news-grid-big {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px 0;
    margin-bottom: 44px;
    width: 100%;
}
@media (min-width: 700px) {
    .news-grid-big {
        grid-template-columns: 1fr 1fr;
        gap: 32px 32px;
    }
}
@media (min-width: 1100px) {
    .news-grid-big {
        grid-template-columns: 1fr 1fr;
    }
}
.news-card-big {
    max-width: 500px;
    margin: 0 auto;
    background: #fffdfa;
    border-radius: 17px;
    box-shadow: 0 6px 32px #22324118, 0 2px 6px #c8102e10;
    overflow: hidden;
    border: 1.7px solid #eae7e1;
    display: flex;
    flex-direction: column;
    min-height: 350px;
    position: relative;
}

/* Card image always on top, full width, no distortion */
.news-card-img-wrap {
    width: 100%;
    height: 210px;
    min-height: 180px;
    max-height: 260px;
    background: #f1f1ec;
    display: block;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
    box-sizing: border-box;
}
.news-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
    border-radius: 0 !important;
    background: #eee;
    aspect-ratio: 16 / 7;
}

.news-card-body-big {
    flex: 1 1 0%;
    padding: 28px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 9px;
    background: #fffdfa;
    position: relative;
    min-height: 220px;
}
@media (max-width: 900px) {
    .news-card-body-big { padding: 15px 12px 12px 14px; }
}









/* ===== Voting Cards Grid ===== */
#voting-cards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 48px;
}
@media (max-width: 900px) {
    #voting-cards-list { gap: 20px; }
}
@media (max-width: 700px) {
    #voting-cards-list { display: block; gap: 0; }
}

/* ===== Individual Voting Card ===== */
.voting-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 28px #0002, 0 1.5px 5px #b7002d08;
    border: none;
    transition: box-shadow 0.2s, transform 0.17s;
    padding: 0;
    margin-bottom: 0;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}
.voting-card:hover {
    box-shadow: 0 8px 38px #c8102e18, 0 1.5px 6px #b7002d19;
    transform: translateY(-2px) scale(1.015);
}
@media (max-width: 900px) {
    .voting-card { min-height: 320px; }
}
@media (max-width: 600px) {
    .voting-card { margin-bottom: 26px; min-height: unset; }
}

.card-title {
    font-size: 1.25em;
    font-weight: 700;
    color: #b7002d;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}

.card-text {
    color: #424f60;
    font-size: 1.05em;
    min-height: 46px;
    margin-bottom: 0.4em;
    line-height: 1.45;
}
.voting-card ul {
    margin-bottom: 0.7em;
}

.badge {
    font-size: 0.98em;
    border-radius: 7px;
    padding: 5px 10px 5px 11px;
    letter-spacing: 0.01em;
}

.voting-card .btn {
    border-radius: 7px;
    font-weight: 700;
    padding: 6px 15px;
    font-size: 1em;
    box-shadow: 0 1.5px 8px #b7002d09;
    margin-bottom: 4px;
}
.voting-card .btn:active, .voting-card .btn:focus {
    outline: none;
    box-shadow: 0 1.5px 11px #c8102e19;
}

/* ===== Candidates/Nominations Preview ===== */
.candidate-preview {
    background: #fafbfe;
    border-radius: 9px;
    box-shadow: 0 2px 8px #c8102e13;
    padding: 11px 14px 11px 16px;
    margin-bottom: 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.98em;
    border: 1.1px solid #f3f4f8;
}
.candidate-preview .name {
    font-weight: 700;
    color: #b7002d;
    font-size: 1.05em;
}
.candidate-preview .company {
    color: #374366;
    font-size: 0.96em;
    margin-left: 8px;
}
.candidate-preview .badge {
    margin-left: 7px;
    vertical-align: middle;
    font-size: 0.91em;
    padding: 3px 8px 3px 8px;
}
.candidate-preview .bio {
    color: #444f68;
    font-size: 0.96em;
    margin-top: 2px;
    opacity: 0.93;
}
.candidate-vote-count {
    font-weight: 600;
    color: #205fa4;
    background: #e8f2ff;
    border-radius: 5px;
    padding: 2px 7px;
    margin-left: 7px;
    font-size: 0.97em;
}
@media (max-width: 600px) {
    .candidate-preview { padding: 10px 9px; font-size: 1em; }
}

/* ===== Alerts and Info ===== */
.alert {
    border-radius: 8px;
    padding: 13px 18px;
    font-size: 1.02em;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
}
.alert-info {
    background: #e9f6ff;
    color: #18789e;
    border: 1.4px solid #bce8f1;
}
.alert-secondary {
    background: #f7f7fa;
    color: #7e8190;
    border: 1.2px solid #d6d7df;
}

/* ====== Buttons ====== */
.btn-outline-primary {
    border-color: #b7002d;
    color: #b7002d;
    background: #fff;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: #b7002d;
    color: #fff;
    border-color: #b7002d;
}
.btn-outline-success {
    border-color: #13884c;
    color: #13884c;
    background: #fff;
}
.btn-outline-success:hover, .btn-outline-success:focus {
    background: #13884c;
    color: #fff;
}
.btn-outline-warning {
    border-color: #fcb900;
    color: #947600;
    background: #fffbe6;
}
.btn-outline-warning:hover, .btn-outline-warning:focus {
    background: #fcb900;
    color: #fff;
}
.btn-outline-danger {
    border-color: #c8102e;
    color: #c8102e;
    background: #fff;
}
.btn-outline-danger:hover, .btn-outline-danger:focus {
    background: #c8102e;
    color: #fff;
}

/* ===== Modal Improvements ===== */
.modal-content { border-radius: 16px; }
.modal-header { border-radius: 16px 16px 0 0; }
.btn-close-white { filter: invert(1) brightness(2); }

/* Responsive tweaks for modals and voting cards */
@media (max-width: 700px) {
    .voting-card, .modal-content { border-radius: 0; }
    .modal-content { margin: 0; }
}

/* ===== Accessibility & Misc ===== */
.btn[disabled], .btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}
::-webkit-scrollbar {
    width: 9px; background: #e8e9ee;
}
::-webkit-scrollbar-thumb {
    background: #b7002d19; border-radius: 8px;
}
