
/* 
   PANNALA PRADESHIYA SABHA
   BUDGET PAGE - COMPLETE CSS
 */

:root {
    --budget-dark: #202636;
    --budget-gold: #dda66c;
    --budget-border: #dce3eb;
    --budget-blue: #18518c;
}

/* BANNER SECTION */

.community-section7 {
    position: relative;
    width: 100%;
    height: 420px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    overflow: hidden;
    isolation: isolate;
}

.community-section7 .banner-background {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.18),
            rgba(0, 0, 0, 0.18)
        ),
        url("../images/2.png")
        center / cover no-repeat;

    animation: budgetBannerZoom 12s ease-in-out
        infinite alternate;
}

.community-section7 .banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.community-section7 .banner-content h2 {
    color: #ffffff;
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: clamp(35px, 5vw, 65px);
    font-weight: 700;
    line-height: 1.5;
    margin: 0;

    animation: budgetFadeUp 1s ease both;
}

/* BREADCRUMB */

.community-section7 .factory-breadcrumb {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    font-size: 15px;
    font-family: 'Noto Sans Sinhala', sans-serif;
}

.community-section7 .factory-breadcrumb a,
.community-section7 .factory-breadcrumb .arrow {
    color: #ffffff;
    text-decoration: none;
}

.community-section7 .factory-breadcrumb .current-page {
    color: var(--budget-gold);
}

/* BUDGET TABLE SECTION */

.budget-section {
    width: 100%;
    padding: 30px 3% 65px;
    background: #ffffff;
}

.budget-table-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;

    background: #ffffff;
    border: 1px solid var(--budget-border);
    border-radius: 12px;
    overflow: hidden;
}

/* TABLE CONTROLS */

.budget-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;

    padding: 10px;
    min-height: 65px;
}

.budget-length,
.budget-search {
    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 14px;
    color: #111827;
}

.budget-length select {
    height: 43px;
    padding: 0 10px;

    border: 1px solid var(--budget-border);
    border-radius: 7px;
    background: white;
}

.budget-search input {
    width: 215px;
    height: 43px;
    padding: 8px 12px;

    border: 1px solid var(--budget-border);
    border-radius: 6px;
    outline: none;
}

.budget-search input:focus {
    border-color: #4886f5;
    box-shadow: 0 0 0 2px
        rgba(72, 134, 245, 0.12);
}

/* BUDGET TABLE */

.budget-table-scroll {
    width: 100%;
    overflow-x: auto;
}

.budget-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;

    font-family:
        Arial, 'Noto Sans Sinhala', sans-serif;

    font-size: 13px;
}

.budget-table th,
.budget-table td {
    border: 1px solid #dce3eb;
    padding: 7px 10px;
    vertical-align: middle;
}

.budget-table thead th {
    position: relative;
    background: #f5f5f5;
    color: #0c2040;

    text-align: center;
    font-size: 12px;
    font-weight: 700;
    height: 38px;
}

.budget-table th[data-sort] {
    cursor: pointer;
}

.budget-table th i {
    position: absolute;
    right: 8px;
    top: 50%;

    transform: translateY(-50%);
    color: #c9ced3;
}

.budget-table tbody tr {
    transition: background 0.2s ease;
}

.budget-table tbody tr:nth-child(odd) {
    background: #f5f5f5;
}

.budget-table tbody tr:hover {
    background: #edf4ff;
}

.budget-table td:first-child {
    width: 40%;
}

.budget-table td:nth-child(2) {
    width: 23%;
}

.budget-table td:nth-child(3) {
    width: 23%;
}

.budget-table td:last-child {
    width: 14%;
    text-align: center;
}

/* PDF FILE ICON */

.budget-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-file-icon {
    width: 32px;
    min-width: 32px;
    height: 38px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #e04444;
    background: #ffffff;
    font-size: 22px;
}

.pdf-file-icon span {
    background: #d94242;
    color: white;
    font-size: 9px;
    padding: 1px 4px;
}

.budget-file-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.budget-file-text strong {
    color: var(--budget-blue);
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.budget-file-text small {
    color: #253b5a;
    font-size: 11px;
}

.budget-category {
    color: #e4a16b;
}

/*  DOWNLOAD BUTTON */

.budget-download-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-height: 38px;
    padding: 8px 12px;

    color: #ffffff;
    font-size: 11px;
    text-decoration: none;

    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.15);

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.budget-download-btn.gold {
    background: #dda66c;
}

.budget-download-btn.pink {
    background: #ff8795;
}

.budget-download-btn:hover {
    transform: translateY(-3px);
    filter: brightness(0.95);
}

/* PAGINATION */

.budget-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;

    padding: 10px;
    font-size: 14px;
}

.budget-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.budget-pagination button {
    min-height: 37px;
    padding: 8px 12px;

    border: 1px solid var(--budget-border);
    border-radius: 7px;
    background: white;
    color: #8091aa;
    cursor: pointer;
}

.budget-pagination button.active {
    background: #4886f5;
    color: white;
    border-color: #4886f5;
}

.budget-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#budgetPageNumbers {
    display: flex;
    gap: 5px;
}

/* 
   CONTACT SECTION
   SMALL HEIGHT - NO BLACK RECTANGLE
 */

.budget-contact {
    position: relative;
    width: 100%;
    min-height: 240px;
    padding: 45px 25px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        linear-gradient(
            rgba(32, 38, 54, 0.75),
            rgba(32, 38, 54, 0.75)
        ),
        url("../images/community-bg.jpg")
        center / cover no-repeat;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* REMOVE INNER RECTANGLE */

.budget-contact .community-content {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    text-align: center;
}

/* REMOVE PSEUDO ELEMENT BORDERS */

.budget-contact .community-content::before,
.budget-contact .community-content::after {
    content: none !important;
    display: none !important;
}

/* CONTACT HEADING */

.budget-contact h2 {
    width: 100%;
    margin: 0 0 25px;
    padding: 0;

    color: #ffffff;
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: clamp(20px, 2.5vw, 32px);
    font-weight: 700;
    line-height: 1.6;
    text-align: center;

    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* CONTACT BUTTON */

.budget-contact .contact-btn {
    display: inline-block;
    padding: 12px 25px;

    background: #dda66c;
    color: #ffffff;

    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    border: none;
    border-radius: 3px;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.budget-contact .contact-btn:hover {
    background: #c68b4e;
    transform: translateY(-3px);
}

/* BACK TO TOP */

#budgetBackToTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 999;

    width: 48px;
    height: 48px;

    border: none;
    background: var(--budget-dark);
    color: white;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: all 0.3s ease;
}

#budgetBackToTop.show {
    opacity: 1;
    visibility: visible;
}

#budgetBackToTop:hover {
    background: var(--budget-gold);
    transform: translateY(-5px);
}

/* ANIMATIONS */

@keyframes budgetBannerZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

@keyframes budgetFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.budget-reveal {
    opacity: 0;
    transform: translateY(40px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.budget-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 992px) {
    .budget-contact {
        min-height: 230px;
        padding: 40px 20px;
    }

    .budget-contact h2 {
        font-size: 25px;
    }
}

/* MOBILE */

@media (max-width: 768px) {
    .community-section7 {
        height: 300px;
    }

    .community-section7 .banner-content h2 {
        font-size: 38px;
    }

    .budget-section {
        padding: 25px 12px 45px;
    }

    .budget-controls,
    .budget-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .budget-search input {
        width: min(215px, 55vw);
    }

    .budget-contact {
        min-height: 220px;
        padding: 35px 15px;
    }

    .budget-contact h2 {
        font-size: 21px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .budget-contact .contact-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    #budgetBackToTop {
        right: 15px;
        bottom: 15px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .budget-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .community-section7 .banner-background {
        animation: none;
    }

    .community-section7 .banner-content h2 {
        animation: none;
    }
}
