﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* Navbar / Sidebar */
.navbar-toggler {
    margin: 0.5rem;
}

.navbar-brand {
    font-weight: 600;
    color: #004085 !important;
}

.offcanvas-header {
    border-bottom: 1px solid #ddd;
}

@media (min-width: 768px) {
    #sidebarMenu {
        position: sticky;
        top: 0;
        height: 100vh;
        border-right: 1px solid #ddd;
    }
}

/* ===== Fixed Footer Section (Refined Vertical Spacing) ===== */
footer.fixed-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #fff !important;
    border-top: 1px solid #ddd !important;
    z-index: 2000 !important;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.25rem 1.75rem; /* ⬆️ extra bottom padding for button clearance */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-direction: column;
}

    /* Inner alignment and consistency */
    footer.fixed-footer .container-fluid {
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        width: 100%;
        line-height: normal;
        padding-bottom: 0.5rem;
    }

/* Buttons: centered row with proper spacing */
.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 3rem; /* ⬆️ lifted buttons further above the bottom */
}

    .footer-buttons .btn {
        background-color: #007bff !important;
        color: white !important;
        border: none !important;
        border-radius: 6px !important;
        font-family: inherit !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        padding: 0.6rem 1.4rem !important; /* ⬆️ taller padding for readability */
        line-height: 1.4 !important; /* natural text height */
        box-shadow: none;
        transition: all 0.2s ease-in-out;
        white-space: nowrap; /* prevent text wrapping */
    }

        .footer-buttons .btn:hover,
        .footer-buttons .btn:focus {
            background-color: #0056d2 !important;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
        }

        .footer-buttons .btn:active {
            background-color: #0041a8 !important;
            transform: translateY(0);
            box-shadow: 0 1px 3px rgba(0, 123, 255, 0.2);
        }

/* Left and right items */
.footer-left,
.footer-right {
    position: relative;
    top: -3px; /* minor vertical tweak */
    z-index: 1;
    font-size: 0.9rem;
}

/* Keep content clear of the footer */
main {
    padding-bottom: 120px !important; /* extra space for dynamic height */
}

/* ===== Global Button Defaults ===== */
button,
.btn {
    background-color: #007bff !important; /* bright blue */
    color: #fff !important; /* white text */
    border: none !important; /* remove outlines */
    border-radius: 6px !important; /* subtle round corners */
    font-family: inherit !important; /* match site font */
    font-size: 1rem !important; /* consistent text size */
    font-weight: 500 !important; /* medium weight */
    padding: 0.45rem 1.2rem !important; /* proportional shape */
    height: auto !important; /* flexible for text size */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: none;
}

    /* Hover / focus / active states */
    button:hover,
    .btn:hover,
    button:focus,
    .btn:focus {
        background-color: #0056d2 !important; /* darker blue hover */
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
        color: #fff !important;
        text-decoration: none;
    }

    button:active,
    .btn:active {
        background-color: #0041a8 !important; /* deeper blue on click */
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0, 123, 255, 0.2);
    }

    /* Optional: Disabled buttons */
    button:disabled,
    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    /* Optional: Consistent spacing in flex or grid layouts */
    button + button,
    .btn + .btn {
        margin-left: 0.5rem;
    }

/* Keep buttons visually balanced across contexts */
button,
.btn {
    min-height: 42px !important; /* ⬆️ ensures text never looks squished */
    line-height: 1.4 !important; /* consistent text alignment */
}

/* ===== Branding Palette ===== */
:root {
    --brand-blue: #007bff;
    --brand-blue-hover: #0056d2;
    --brand-blue-active: #0041a8;
}

button,
.btn {
    background-color: var(--brand-blue) !important;
}

    button:hover,
    .btn:hover {
        background-color: var(--brand-blue-hover) !important;
    }

    button:active,
    .btn:active {
        background-color: var(--brand-blue-active) !important;
    }
/* Banner styling */
.banner-container {
    position: relative;
    width: 100%;
    padding: 4rem 1rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
}

.banner-content {
    max-width: 960px;
    margin: 0 auto;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
}

.banner-tagline {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.banner-button {
    position: relative;
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .banner-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        background-color: #0069d9;
    }

.bulletin-board {
    margin-top: 3rem;
}

.bulletin-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.bulletin-card {
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 300px; /* ensures readability on narrow screens */
}

.bulletin-card {
    scroll-snap-align: start;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background-color: #fff;
    transition: transform 0.2s;
}

    .bulletin-card:hover {
        transform: scale(1.02);
    }

/* === Bulletin Wrapper === */
.bulletin-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

/* === Scroll Container === */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    padding: 0 1rem;
    gap: 1.5rem;
}

/* === Bulletin Cards === */
.bulletin-card {
    scroll-snap-align: start;
    flex: 0 0 30%;
    max-width: 30%;
    min-width: 300px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

    .bulletin-card:hover {
        transform: scale(1.02);
    }

/* === Fixed Fade Overlays === */
.fade {
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* === Scroll Indicator Dots === */
.scroll-indicator {
    text-align: center;
    margin-top: 0.75rem;
}

    .scroll-indicator .dot {
        height: 8px;
        width: 8px;
        margin: 0 4px;
        background-color: #ccc;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.3s ease;
    }

        .scroll-indicator .dot.active {
            background-color: #007bff;
        }
.blogpost-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

    .blogpost-card h2 {
        font-size: 1.8rem;
        color: var(--brand-blue);
    }

    .blogpost-card h5 {
        font-weight: 500;
        color: #555;
    }

    .blogpost-card p {
        font-size: 1.05rem;
        line-height: 1.7;
        color: #444;
    }
/* === Blog Post Styling === */
.blogpost-wrapper {
    padding: 2rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blogpost-body p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #444;
}

    .blogpost-body p + p {
        margin-top: 1rem;
    }

.blogpost-wrapper h2 {
    font-size: 2rem;
    color: #004085;
}

.blogpost-wrapper .lead {
    color: #555;
    font-style: italic;
}
