/* ==============================
   Global Typography & Layout
   ============================== */
body {
    font-family: "Cachet", Verdana, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #fff;
}

/* ==============================
   Navbar
   ============================== */
.navbar {
    position: relative;
    z-index: 3000; /* higher than ticker & carousel */
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand img {
    height: 80px;        /* force a fixed height */
    max-height: none;    /* remove the cap */
}

.navbar-brand span {
    font-size: 1.5rem;   /* increase or decrease as needed */
    font-weight: 700;    /* keeps it bold and strong */
}

/* ==============================
   Navbar dropdown fix
   ============================== */
.navbar .dropdown-menu {
    position: absolute;    /* relative to navbar */
    z-index: 5000;         /* above ticker/carousel */
    min-width: 12rem;      /* optional */
    background-color: #fff;
}

/* ==============================
   News Ticker
   ============================== */
.ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-scroll 15s linear infinite;
}

.ticker-item {
    padding: 0 3rem; /* spacing between items */
    font-weight: 500;
}

/* Keyframes for scrolling */
@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Pause on hover */
.ticker:hover {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ticker-item {
        padding: 0 2rem;
        font-size: 0.875rem;
    }
}

/* ==============================
   Hero Carousel
   ============================== */
.carousel-item {
    max-height: 800px; /* taller */
    height: 90vh;      /* optional: 90% of viewport height */
    overflow: visible; /* critical for dropdown visibility */
    position: relative;
}

.carousel-item img,
.carousel-item video {
    object-fit: contain;
    width: 100%;
    height: 100%;
    background: #000; /* fill empty space with black */
}

.carousel video {
    background: #000; /* fallback color */
}

/* Optional: overlay text container */
.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.carousel-caption h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.carousel-caption p {
    font-size: 1.25rem;
}

/* ==============================
   Featured Program Cards
   ============================== */
.card {
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ==============================
   Buttons & Links
   ============================== */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-link {
    color: #007bff;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ==============================
   Footer Icon Buttons Enhancement
   ============================== */
footer .btn {
    border-radius: 6px;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 66%;
    justify-content: center;
    margin-bottom: 0.5rem;
}

footer .btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.85;
    transition: opacity 0.2s ease-in-out;
}

/* Hover effect for icon */
footer .btn:hover svg {
    opacity: 1;
}

/* Make the volunteer heart icon look extra vibrant */
footer .btn svg path[fill="red"] {
    opacity: 0.95;
}

footer .btn:hover svg path[fill="red"] {
    opacity: 1;
}

/* Button colors for the donate button */
footer .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

footer .btn-primary:hover {
    background-color: #0069d9;
}

/* Makes black SVG icons white */
.icon-white {
  filter: brightness(0) invert(1);
}

/* Optional: ensure button text and icon vertically centered */
.btn-sm {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

/* ==============================
   Admin Dashboard Sidebar
   ============================== */
.sidebar {
    min-height: 100vh;                 /* Full-height sidebar */
    background-color: #f8f9fa;         /* Light grey (Bootstrap bg-light) */
    border-right: 1px solid #dee2e6;   /* Subtle separator */
}

.sidebar .nav-link {
    color: #212529;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #000;
}

.sidebar .nav-link.active {
    background-color: #dee2e6;
    font-weight: 600;
}

.sidebar .text-muted {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar .nav-link.ps-4 {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    main {
        margin-left: 0;
    }
}