/* =========================================
   1. Shared Hero Banner Base
   ========================================= */
.annual-report-banner,
.audit-report-banner {
    min-height: 250px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

.annual-report-banner::after,
.audit-report-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.04),
        rgba(0, 0, 0, 0.16)
    );
    pointer-events: none;
}

/* Annual Report Banner Theme */
.annual-report-banner {
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(232, 140, 192, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #6e1d4b 0%, #4b1233 55%, #2a071b 100%);
}

/* Audit Report Banner Theme */
.audit-report-banner {
    background:
        radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(244, 162, 208, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #932F67 0%, #6d1e4b 52%, #3e0f2a 100%);
}

.annual-report-banner .slider-height2,
.audit-report-banner .slider-height2 {
    width: 100%;
    padding: 64px 0;
    position: relative;
    z-index: 1;
}

.annual-report-banner h2,
.audit-report-banner h2 {
    font-size: 2.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.annual-report-banner hr,
.audit-report-banner hr {
    width: 84px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), #ffffff, rgba(255, 255, 255, 0.35)) !important;
    margin: 12px auto 0 !important;
    opacity: 1 !important;
}

/* =========================================
   2. Shared Section & Grid Layout
   ========================================= */
.board-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(147, 47, 103, 0.05) 0%, transparent 65%),
        #f5f6fa;
}

.board-section + .board-section {
    padding-top: 12px !important;
}

/* Keeps Annual Report aligned even without an outer .container */
.board-section > .row {
    max-width: 1240px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* Audit Report Responsive Grid */
.audit-report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 28px;
    margin-left: 0;
    margin-right: 0;
}

.audit-report-item {
    width: 100%;
    margin-bottom: 0 !important;
}

/* =========================================
   3. Cards, Thumbnails & Year Badges (Both Pages)
   ========================================= */
.annual-report-card,
.audit-report-item .card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(147, 47, 103, 0.08) !important;
    box-shadow:
        0 2px 6px rgba(24, 24, 37, 0.04),
        0 10px 24px rgba(24, 24, 37, 0.05) !important;
    padding: 14px 14px 18px !important;
    height: 100%;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.annual-report-card::before,
.audit-report-item .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #932F67, #c84b92);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

a:hover .annual-report-card,
.audit-report-item a:hover .card {
    transform: translateY(-7px);
    box-shadow:
        0 8px 18px rgba(147, 47, 103, 0.10),
        0 20px 38px rgba(32, 14, 26, 0.12) !important;
    border-color: rgba(147, 47, 103, 0.28) !important;
}

a:hover .annual-report-card::before,
.audit-report-item a:hover .card::before {
    transform: scaleX(1);
}

/* Thumbnails for both Annual (.annual-report-img) and Audit (.report-thumbnail) */
.annual-report-img,
.report-thumbnail {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(145deg, #f1f3f8, #e6e9f0);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

a:hover .annual-report-img,
.audit-report-item a:hover .report-thumbnail {
    transform: scale(1.025);
    filter: saturate(1.05);
}

/* Card Body & Year Pill Badge for Annual Report */
.annual-report-card .card-body {
    padding: 14px 4px 2px !important;
}

.annual-report-card .card-body h4,
.audit-report-item h6 {
    font-size: 1rem;
    font-weight: 700;
    color: #23202a !important;
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    padding: 6px 14px;
    border-radius: 999px;
    background-color: #f7f4f8;
    display: inline-block;
    letter-spacing: 0.02em;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.annual-report-card .card-body h4 {
    margin-top: 0 !important;
}

a:hover .annual-report-card .card-body h4,
.audit-report-item a:hover h6 {
    background-color: rgba(147, 47, 103, 0.12);
    color: #932F67 !important;
}

/* =========================================
   4. Visitor Details Modal Popup (Audit Page)
   ========================================= */
.report-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(17, 12, 20, 0.68);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.report-modal.show {
    opacity: 1;
    visibility: visible;
}

.report-modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #fcfafd 100%);
    width: 100%;
    max-width: 465px;
    border-radius: 20px;
    border: 1px solid rgba(147, 47, 103, 0.12);
    padding: 34px 30px 30px;
    position: relative;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.14),
        0 28px 64px rgba(26, 7, 18, 0.28);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 92vh;
    overflow-y: auto;
}

.report-modal.show .report-modal-content {
    transform: translateY(0) scale(1);
}

.report-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f4f5f7;
    color: #495057;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.report-modal-close:hover {
    background: #932F67;
    color: #ffffff;
    transform: rotate(90deg);
}

#selectedReportYear {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 16px;
    background: linear-gradient(135deg, rgba(147, 47, 103, 0.12), rgba(147, 47, 103, 0.06));
    border: 1px solid rgba(147, 47, 103, 0.2);
    color: #932F67;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* =========================================
   5. Modal Form Styling
   ========================================= */
#reportFormMessage {
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    border: none;
    background-color: #fde8ef;
    color: #8e183e;
    padding: 10px 14px;
}

#reportVisitorForm label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #2d2a32;
    margin-bottom: 6px;
}

#reportVisitorForm .form-control {
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid #e1e3ea;
    background-color: #ffffff;
    padding: 10px 14px;
    font-size: 0.94rem;
    color: #1f1d24;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

#reportVisitorForm .form-control::placeholder {
    color: #9fa4b2;
}

#reportVisitorForm .form-control:focus {
    border-color: #932F67;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(147, 47, 103, 0.14);
    outline: none;
}

#reportVisitorForm .form-check {
    padding-left: 1.65em;
}

#reportVisitorForm .form-check-input {
    width: 1.05em;
    height: 1.05em;
    margin-top: 0.2em;
    border-radius: 4px;
    border: 1.5px solid #c5c9d6;
    cursor: pointer;
}

#reportVisitorForm .form-check-label {
    font-weight: 400;
    font-size: 0.83rem;
    color: #676b78;
    line-height: 1.48;
    cursor: pointer;
}

#reportVisitorForm .form-check-input:checked {
    background-color: #932F67;
    border-color: #932F67;
}

#reportSubmitBtn {
    width: 100%;
    border: none;
    border-radius: 11px;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #a33674 0%, #932F67 55%, #752050 100%) !important;
    box-shadow: 0 6px 18px rgba(147, 47, 103, 0.28);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

#reportSubmitBtn:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 10px 24px rgba(147, 47, 103, 0.36);
    transform: translateY(-2px);
}

#reportSubmitBtn:active:not(:disabled) {
    transform: translateY(0);
}

#reportSubmitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

/* =========================================
   6. Responsive Adjustments
   ========================================= */
@media (max-width: 768px) {
    .annual-report-banner,
    .audit-report-banner {
        min-height: 190px;
    }

    .annual-report-banner .slider-height2,
    .audit-report-banner .slider-height2 {
        padding: 44px 0;
    }

    .annual-report-banner h2,
    .audit-report-banner h2 {
        font-size: 2rem;
    }

    .audit-report-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
        gap: 16px;
    }

    .annual-report-card,
    .audit-report-item .card {
        border-radius: 14px;
        padding: 10px 10px 14px !important;
    }

    .annual-report-card .card-body h4,
    .audit-report-item h6 {
        font-size: 0.9rem;
        margin-top: 10px !important;
        padding: 4px 10px;
    }

    .report-modal-content {
        border-radius: 16px;
        padding: 28px 20px 24px;
    }
}

/*pop up css */
/* =========================================
   Modal Backdrop Overlay
   ========================================= */
#reportVisitorModal.report-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(18, 12, 22, 0.68);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

#reportVisitorModal.report-modal.show {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   Modal Dialog Card
   ========================================= */
#reportVisitorModal .report-modal-content {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 34px 30px 30px;
    border-radius: 20px;
    border: 1px solid rgba(147, 47, 103, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #fdf9fb 100%);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.14),
        0 28px 64px rgba(28, 8, 20, 0.28);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

#reportVisitorModal.report-modal.show .report-modal-content {
    transform: translateY(0) scale(1);
}

/* =========================================
   Close Button
   ========================================= */
#reportVisitorModal .report-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

#reportVisitorModal .report-modal-close:hover {
    background-color: #932F67;
    color: #ffffff;
    transform: rotate(90deg);
}

/* =========================================
   Modal Header & Selected Year Badge
   ========================================= */
#reportVisitorModal h4 {
    color: #932F67;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

#reportVisitorModal p {
    color: #5f6370;
    font-size: 0.92rem;
}

#reportVisitorModal #selectedReportYear {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(147, 47, 103, 0.13), rgba(147, 47, 103, 0.06));
    border: 1px solid rgba(147, 47, 103, 0.22);
    color: #932F67;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* =========================================
   Error / Status Message Box
   ========================================= */
#reportVisitorModal #reportFormMessage {
    border: none;
    border-left: 4px solid #be123c;
    border-radius: 10px;
    background-color: #ffe4e6;
    color: #9f1239;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 11px 14px;
    margin-bottom: 16px;
}

/* =========================================
   Form Fields & Labels
   ========================================= */
#reportVisitorModal #reportVisitorForm label {
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
    color: #26232c;
    margin-bottom: 6px;
}

#reportVisitorModal #reportVisitorForm .form-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #dfe2ea;
    background-color: #ffffff;
    color: #1e1b24;
    font-size: 0.94rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#reportVisitorModal #reportVisitorForm .form-control::placeholder {
    color: #9ca3af;
}

#reportVisitorModal #reportVisitorForm .form-control:focus {
    outline: none;
    border-color: #932F67;
    box-shadow: 0 0 0 4px rgba(147, 47, 103, 0.14);
}

/* =========================================
   Consent Checkbox
   ========================================= */
#reportVisitorModal #reportVisitorForm .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
}

#reportVisitorModal #reportVisitorForm .form-check-input {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    border-radius: 4px;
    border: 1.5px solid #b8becb;
    accent-color: #932F67;
    cursor: pointer;
}

#reportVisitorModal #reportVisitorForm .form-check-label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.83rem;
    line-height: 1.48;
    color: #646875;
    cursor: pointer;
}

/* =========================================
   Submit Button
   ========================================= */
#reportVisitorModal #reportSubmitBtn {
    width: 100%;
    padding: 12px 18px !important;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #a63776 0%, #932F67 55%, #731f4e 100%) !important;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(147, 47, 103, 0.28);
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

#reportVisitorModal #reportSubmitBtn:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(147, 47, 103, 0.36);
    transform: translateY(-2px);
}

#reportVisitorModal #reportSubmitBtn:active:not(:disabled) {
    transform: translateY(0);
}

#reportVisitorModal #reportSubmitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 576px) {
    #reportVisitorModal .report-modal-content {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }

    #reportVisitorModal h4 {
        font-size: 1.25rem;
    }
}