/**
 * ============================================================================
 * Biharikalyanmanch NGO - Universal Inner Pages Theme System
 * Strictly additive to homepage-theme.css — never overrides index.php cards.
 *   Navy:    #012255 / #0b2c68 / #011638
 *   Saffron: #f26005 / #fa8e1c / #ff7800
 *   Green:   #0e7325 / #1c9335 / #2e8540
 *   Surface: #ffffff / #f8fbff / #f8fafc
 *   Borders: #e2e8f0 / #cbd5e1
 * ============================================================================
 */

/* ============================================================================
   1. UNIVERSAL BREADCRUMB HERO BANNER (MATCHES INDEX.PHP LIGHT THEME)
   ============================================================================ */
.bkm-bc-area,
.tp-breadcrumb__area {
    position: relative;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #f4f9ff 100%) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    color: #012255 !important;
    font-family: 'Plus Jakarta Sans', 'Manrope', 'Noto Sans Devanagari', sans-serif !important;
    border-bottom: 1px solid #eef2f6;
}

.tp-breadcrumb__shape-1,
.tp-breadcrumb__shape-2 {
    display: none !important;
}

.tp-breadcrumb__content {
    position: relative;
    z-index: 3;
}

.tp-breadcrumb__list {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 18px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50px !important;
    margin-bottom: 18px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(1, 34, 85, 0.05) !important;
}

.tp-breadcrumb__list a {
    color: #012255 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.tp-breadcrumb__list a:hover {
    color: #f26005 !important;
}

.tp-breadcrumb__list span {
    color: #f26005 !important;
    font-size: 13.5px !important;
    opacity: 1 !important;
}

.tp-breadcrumb__list .dvdr,
.tp-breadcrumb__list span.dvdr i {
    color: #94a3b8 !important;
    font-size: 11px !important;
    opacity: 1 !important;
}

.tp-breadcrumb__title {
    font-family: 'Plus Jakarta Sans', 'Manrope', 'Noto Sans Devanagari', sans-serif !important;
    font-size: clamp(26px, 3.4vw, 44px) !important;
    font-weight: 800 !important;
    line-height: 1.22 !important;
    letter-spacing: -0.02em !important;
    color: #012255 !important;
    margin-bottom: 12px !important;
}

/* ============================================================================
   2. CATEGORY FILTER TABS & SEARCH INPUTS
   ============================================================================ */
.bkm-filter-tabs,
.tp-event-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.bkm-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    color: #012255;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.bkm-filter-btn:hover {
    color: #f26005;
    border-color: #f26005;
    background: #fff8f3;
    transform: translateY(-1px);
}

.bkm-filter-btn.active,
.bkm-filter-btn--active {
    background: linear-gradient(135deg, #fa8e1c 0%, #f26005 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(242, 96, 5, 0.35) !important;
}

/* ============================================================================
   3. GLOBAL FORM FOCUS, CHECKBOX & NICE-SELECT OVERRIDES (NO BOOTSTRAP BLUE)
   ============================================================================ */
.form-control:focus,
.form-select:focus,
textarea.form-control:focus,
input.form-control:focus {
    background-color: #ffffff !important;
    border-color: #f26005 !important;
    box-shadow: 0 0 0 4px rgba(242, 96, 5, 0.14) !important;
    outline: none !important;
}

.form-check-input:checked {
    background-color: #f26005 !important;
    border-color: #f26005 !important;
}

.form-check-input:focus {
    border-color: #f26005 !important;
    box-shadow: 0 0 0 3px rgba(242, 96, 5, 0.2) !important;
}

.nice-select.form-select,
.bkm-select.nice-select {
    width: 100% !important;
    float: none !important;
    display: flex !important;
    align-items: center !important;
    height: 49px !important;
    line-height: 1.4 !important;
    padding: 0 38px 0 16px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #012255 !important;
}

.nice-select.form-select.open,
.nice-select.form-select:focus,
.bkm-select.nice-select.open,
.bkm-select.nice-select:focus {
    background-color: #ffffff !important;
    border-color: #f26005 !important;
    box-shadow: 0 0 0 4px rgba(242, 96, 5, 0.14) !important;
}

.nice-select.form-select::after {
    border-bottom: 2px solid #012255 !important;
    border-right: 2px solid #012255 !important;
    right: 16px !important;
}

.nice-select .list {
    width: 100% !important;
    border-radius: 12px !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 14px 32px rgba(1, 34, 85, 0.14) !important;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
    background-color: #fff5ed !important;
    color: #f26005 !important;
}

.nice-select .option.selected {
    color: #f26005 !important;
    font-weight: 700 !important;
}

/* Override legacy blue CSS from responsive-fixes.css */
.category-link-item:hover {
    background-color: #fff5ed !important;
}

.category-link-item:hover .category-name {
    color: #f26005 !important;
}

.tpoffcanvas__contact-info ul li {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

/* ============================================================================
   4. GALLERY ITEM CARDS (FULL-BLEED THUMBNAILS + HOVER ZOOM)
   ============================================================================ */
.bkm-gallery-item-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(1, 34, 85, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.bkm-gallery-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(1, 34, 85, 0.12);
    border-color: #f26005;
}

.bkm-gallery-item-thumb {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #011638;
}

.bkm-gallery-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.bkm-gallery-item-card:hover .bkm-gallery-item-thumb img {
    transform: scale(1.06);
}

.bkm-gallery-zoom-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(1, 34, 85, 0.88);
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: all 0.28s ease;
    box-shadow: 0 8px 22px rgba(1, 34, 85, 0.32);
    z-index: 3;
}

.bkm-gallery-item-card:hover .bkm-gallery-zoom-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.bkm-gallery-zoom-btn:hover {
    background: #f26005 !important;
}

/* ============================================================================
   5. INNER CARD ENHANCEMENTS (TEAM PORTRAITS, URGENT PILLS, CTA BANNERS)
   ============================================================================ */
.bkm-urgent-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
}

.bkm-category-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(1, 34, 85, 0.9);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.bkm-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.bkm-cta-banner {
    background: linear-gradient(135deg, #011638 0%, #012255 100%);
    border-radius: 24px;
    padding: 48px 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(1, 34, 85, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

@media (max-width: 767px) {
    .bkm-cta-banner {
        padding: 36px 22px;
    }
}

/* ============================================================================
   6. DETAILS PAGE SIDEBAR WIDGETS & DONATION CHIPS
   ============================================================================ */
.bkm-sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    padding: 26px 24px;
    box-shadow: 0 8px 24px rgba(1, 34, 85, 0.05);
    margin-bottom: 26px;
}

.bkm-widget-title {
    font-size: 18px;
    font-weight: 800;
    color: #012255;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.bkm-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 44px;
    height: 2.5px;
    background: linear-gradient(90deg, #f26005, #fa8e1c);
}

.bkm-donation-chip {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    color: #012255;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.bkm-donation-chip:hover {
    border-color: #f26005;
    color: #f26005;
    background: #fff5ed;
}

.bkm-donation-chip.active {
    background: linear-gradient(135deg, #fa8e1c 0%, #f26005 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(242, 96, 5, 0.35) !important;
}

/* Responsive divider helper (desktop only right divider) */
@media (min-width: 768px) {
    .bkm-border-end-md {
        border-right: 1px solid #e2e8f0 !important;
    }
}

/* Accordion polish (no blue Bootstrap focus) */
.accordion-button:focus {
    border-color: #f26005 !important;
    box-shadow: 0 0 0 3px rgba(242, 96, 5, 0.14) !important;
}

.accordion-button:not(.collapsed) {
    background-color: #fff8f3 !important;
    color: #f26005 !important;
    box-shadow: none !important;
}

/* Event & Blog Details Category list item hover */
.bkm-cat-list-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #012255;
    transition: all 0.2s ease;
}

.bkm-cat-list-link:hover {
    background: #fff5ed;
    border-color: #f26005;
    color: #f26005 !important;
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .bkm-bc-area,
    .tp-breadcrumb__area {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}
