/* ==========================================================================
   Custom Theme Enhancements for BEP Rohtas
   Modern, Clean, and Government Portal Standard Design
   ========================================================================== */

:root {
    --primary-color: #17375e;
    --primary-dark: #0f233d;
    --primary-light: #204c82;
    --accent-color: #d4891d;
    --accent-hover: #b87414;
    --accent-light: #fff8ee;
    --text-main: #2c3e50;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: var(--text-main);
    background-color: #f8fafc;
    line-height: 1.6;
}

/* Header & Navigation */
.header-top.header-top-white {
    background: #0f233d !important;
    color: #f1f5f9;
    padding: 8px 0;
    border-bottom: 2px solid var(--accent-color);
    font-size: 13px;
}

.header-top .contact ul li {
    color: #e2e8f0;
    margin-right: 20px;
}

.header-top .contact ul li a {
    color: #f8fafc !important;
    text-decoration: none;
    transition: var(--transition);
}

.header-top .contact ul li a:hover {
    color: var(--accent-color) !important;
}

.header-top .contact ul li i {
    color: var(--accent-color);
    margin-right: 6px;
}

.lgx-header-bottom {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
}

.lgx-logo img {
    max-height: 65px;
    width: auto;
    transition: var(--transition);
}

.lgx-nav > li > a {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    padding: 10px 14px !important;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lgx-nav > li > a:hover,
.lgx-nav > li > a:focus {
    color: var(--accent-color) !important;
    background-color: var(--accent-light) !important;
}

.lgx-nav > li > a.nav-active {
    color: #ffffff !important;
    background-color: var(--accent-color) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(212, 137, 29, 0.35);
}

/* Page Banner */
.page-title-banner {
    background: linear-gradient(135deg, #17375e 0%, #204c82 100%);
    color: #ffffff;
    padding: 28px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-title-banner h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-title-banner .breadcrumb {
    background: transparent;
    padding: 6px 0 0 0;
    margin: 0;
    font-size: 13px;
}

.page-title-banner .breadcrumb a {
    color: #fed7aa;
    text-decoration: none;
}

.page-title-banner .breadcrumb .active {
    color: #ffffff;
}

/* Section Headings */
.lgx-heading {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.lgx-heading .heading-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.lgx-heading .heading-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 8px auto 0;
    border-radius: 2px;
}

.lgx-heading .heading-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
}

/* About Section Card */
.about-card-wrap {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    margin-bottom: 35px;
}

.about-image-card {
    text-align: center;
    position: relative;
    padding: 10px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 2px solid #f1f5f9;
}

.about-image-card img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.about-image-card:hover img {
    transform: scale(1.02);
}

.about-caption {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Notice & Marquee Cards */
.bep-notice-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    transition: var(--transition);
}

.bep-notice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.bep-notice-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    padding: 14px 18px;
    border-bottom: 3px solid var(--accent-color);
    text-align: left;
}

.bep-notice-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bep-notice-header.accent-header {
    background: linear-gradient(135deg, #c2780e 0%, var(--accent-color) 100%);
}

.bep-notice-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bep-notice-header h3 a {
    color: #ffffff;
    text-decoration: none;
}

.bep-notice-body {
    padding: 10px 14px;
    background: #ffffff;
}

.marquee-container {
    height: 280px;
    padding: 5px 0;
}

.marquee-item {
    display: block;
    padding: 10px 8px;
    border-bottom: 1px dashed #e2e8f0;
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: var(--transition);
    font-size: 13.5px;
    line-height: 1.5;
}

.marquee-item:last-child {
    border-bottom: none;
}

.marquee-item:hover {
    background: var(--accent-light);
    color: var(--accent-color) !important;
    padding-left: 12px;
}

.marquee-item i {
    color: var(--accent-color);
    margin-right: 6px;
}

.badge-new {
    display: inline-block;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    text-transform: uppercase;
    animation: bep-pulse 1.5s infinite;
}

@keyframes bep-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.06); }
}

.bep-notice-footer {
    padding: 10px 16px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    text-align: right;
}

.bep-notice-footer a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.bep-notice-footer a:hover {
    color: var(--accent-color);
}

/* Modern Tables */
.bep-table-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid #e2e8f0;
    padding: 22px;
    margin-bottom: 35px;
}

.table.bep-custom-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.table.bep-custom-table thead th,
.table.bep-custom-table > tbody > tr > th.th-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 13px 15px;
    border: none !important;
    text-align: left;
    letter-spacing: 0.3px;
}

.table.bep-custom-table tbody tr {
    transition: var(--transition);
}

.table.bep-custom-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.table.bep-custom-table tbody tr:hover {
    background-color: #fff9f0 !important;
}

.table.bep-custom-table tbody td,
.table.bep-custom-table tbody th:not(.th-header) {
    padding: 13px 15px;
    font-size: 13.5px;
    color: #334155;
    border-top: 1px solid #e2e8f0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    vertical-align: middle;
    font-weight: 400;
}

.badge-sno {
    display: inline-block;
    min-width: 26px;
    padding: 3px 7px;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ef4444;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-download-pdf:hover {
    background: #dc2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

.badge-date {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Pagination */
.custom-pagination {
    display: inline-flex;
    padding-left: 0;
    margin: 25px 0 10px;
    border-radius: 6px;
    gap: 5px;
}

.custom-pagination > li > a,
.custom-pagination > li > span {
    border: 1px solid #cbd5e1 !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 15px;
    border-radius: 6px !important;
    background: #ffffff;
    transition: var(--transition);
    text-decoration: none;
}

.custom-pagination > li > a:hover {
    background-color: var(--accent-light) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.custom-pagination > .active > a,
.custom-pagination > .active > span {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(212, 137, 29, 0.35);
}

.custom-pagination > .disabled > span,
.custom-pagination > .disabled > a {
    color: #94a3b8 !important;
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}

/* Gallery Grid */
.bep-gallery-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    position: relative;
}

.bep-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

.bep-gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bep-gallery-card:hover img {
    transform: scale(1.05);
}

/* Accordion Styling */
.accordion-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.accordion-header {
    background: #f8fafc;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 18px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover,
.accordion-header.active {
    background: var(--primary-color);
    color: #ffffff;
}

.accordion-content {
    padding: 16px 20px;
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    background: #ffffff;
}

/* Footer */
#footer {
    position: relative !important;
    width: 100%;
    margin-top: 50px;
    clear: both;
}

.lgx-footer-middle-white {
    background: #0f233d !important;
    color: #94a3b8;
    padding: 20px 0;
    border-top: 3px solid var(--accent-color);
    text-align: center;
}

.lgx-copyright p {
    margin: 0;
    font-size: 13.5px;
    color: #cbd5e1 !important;
}

.lgx-copyright a {
    color: var(--accent-color) !important;
    font-weight: 600;
    text-decoration: none;
}

.lgx-copyright a:hover {
    text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .lgx-logo img {
        max-height: 50px;
    }
    .page-title-banner {
        padding: 20px 0;
    }
    .page-title-banner h1 {
        font-size: 22px;
    }
    .about-image-card {
        margin-top: 20px;
    }
}


/* ==========================================================================
   Lightbox Gallery Modal with Left & Right Navigation
   ========================================================================== */
.bep-gallery-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.bep-gallery-card .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 55, 94, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.bep-gallery-card .gallery-overlay i {
    color: #ffffff;
    font-size: 28px;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.bep-gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.bep-gallery-card:hover .gallery-overlay i {
    transform: scale(1);
}

/* Modal Lightbox Popup */
.bep-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 25, 0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    user-select: none;
}

.bep-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bep-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bep-lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.bep-lightbox-modal.active .bep-lightbox-img {
    transform: scale(1);
}

.bep-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000000;
    line-height: 1;
}

.bep-lightbox-close:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(90deg);
}

.bep-lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000000;
    backdrop-filter: blur(4px);
}

.bep-lightbox-btn:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.bep-lightbox-prev {
    left: 25px;
}

.bep-lightbox-next {
    right: 25px;
}

.bep-lightbox-counter {
    margin-top: 14px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 14px;
    border-radius: 20px;
}
