/* =========================================================
   SUTRUMAATHIL PAGE
========================================================= */

.sutrumaathil-page {

    --maroon: #760f0b;
    --deep-maroon: #580705;

    --gold: #d39a09;
    --gold-light: #edbb28;
    --gold-dark: #b57d00;

    --cream: #f8f0df;

    --text: #695950;

    background: var(--cream);

    min-height: 100vh;

    color: var(--text);

}


.sutrumaathil-page *,
.sutrumaathil-page *::before,
.sutrumaathil-page *::after {

    box-sizing: border-box;

}



/* =========================================================
   HERO
========================================================= */

.sutrumaathil-hero {

    position: relative;

    overflow: hidden;

    padding: 85px 25px 75px;

    text-align: center;

    color: white;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(172,45,24,.55),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #680906,
            #8b120c,
            #620604
        );

}


.hero-inner {

    max-width: 1100px;

    margin: auto;

}


.hero-label {

    display: block;

    margin-bottom: 20px;

    color: var(--gold-light);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 6px;

}


.sutrumaathil-hero h1 {

    margin: 0;

    font-size: clamp(42px,5vw,70px);

    line-height: 1.15;

    font-weight: 800;

}


.sutrumaathil-hero h1 span {

    display: block;

    margin-top: 7px;

    font-family: Georgia, serif;

    font-size: clamp(28px,3vw,45px);

}


.hero-line {

    width: 145px;

    height: 5px;

    margin: 28px auto;

    background: var(--gold-light);

}


.sutrumaathil-hero p {

    max-width: 900px;

    margin: auto;

    color: #f5e5d7;

    font-size: 18px;

    line-height: 1.8;

}



/* =========================================================
   SECTION
========================================================= */

.contributors-section {

    max-width: 1580px;

    margin: auto;

    padding: 45px 30px 90px;

}



/* =========================================================
   BACK BUTTON
========================================================= */

.back-wrapper {

    margin-bottom: 35px;

}


.back-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 11px 23px;

    border: 1px solid var(--gold);

    border-radius: 50px;

    background: rgba(255,255,255,.6);

    color: var(--maroon);

    text-decoration: none;

    font-size: 16px;

    font-weight: 700;

    transition: .3s ease;

}


.back-button span:first-child {

    font-size: 22px;

}


.back-button:hover {

    background: var(--maroon);

    color: white;

    transform: translateX(-4px);

}



/* =========================================================
   HEADING
========================================================= */

.page-heading {

    max-width: 1050px;

    margin: 0 auto 32px;

    text-align: center;

}


.page-heading > span {

    display: block;

    margin-bottom: 10px;

    color: var(--gold);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 5px;

}


.page-heading h2 {

    margin: 0;

    color: var(--maroon);

    font-size: clamp(34px,4vw,56px);

    line-height: 1.3;

}


.page-heading p {

    max-width: 850px;

    margin: 13px auto 0;

    color: #806e62;

    font-size: 17px;

    line-height: 1.8;

}



/* =========================================================
   SEARCH
========================================================= */

.search-wrapper {

    position: relative;

    max-width: 830px;

    margin: 35px auto 45px;

}


.search-wrapper input {

    width: 100%;

    height: 68px;

    padding: 0 60px;

    border: 1px solid #dfc99f;

    border-radius: 50px;

    outline: none;

    background: white;

    color: var(--maroon);

    font-family: inherit;

    font-size: 17px;

    box-shadow:
        0 12px 30px rgba(90,30,10,.08);

    transition: .3s ease;

}


.search-wrapper input::placeholder {

    color: #a18e82;

}


.search-wrapper input:focus {

    border-color: var(--gold);

    box-shadow:
        0 0 0 4px rgba(211,154,9,.09),
        0 15px 35px rgba(90,30,10,.10);

}


.search-icon {

    position: absolute;

    left: 23px;

    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    color: var(--gold-dark);

    font-size: 31px;

    line-height: 1;

    pointer-events: none;

}


.clear-search {

    position: absolute;

    right: 17px;

    top: 50%;

    width: 36px;

    height: 36px;

    transform: translateY(-50%);

    border: none;

    border-radius: 50%;

    background: #f2e7d2;

    color: var(--maroon);

    font-size: 23px;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transition: .2s ease;

}


.clear-search.visible {

    opacity: 1;

    visibility: visible;

}


.clear-search:hover {

    background: var(--maroon);

    color: white;

}



/* =========================================================
   CARD
========================================================= */

.contributors-card {

    overflow: hidden;

    border: 1px solid #ead8b7;

    border-radius: 30px;

    background: white;

    box-shadow:
        0 20px 55px rgba(84,32,10,.10);

}



/* =========================================================
   CARD HEADER
========================================================= */

.card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 38px 38px 30px;

    border-bottom: 1px solid #eadfcb;

}


.card-label {

    display: block;

    margin-bottom: 10px;

    color: var(--gold-dark);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 4px;

}


.card-header h3 {

    margin: 0;

    color: var(--maroon);

    font-size: 30px;

    line-height: 1.4;

}


.count-badge {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 58px;

    height: 58px;

    border-radius: 50%;

    background: var(--maroon);

    color: white;

    font-size: 19px;

    font-weight: 800;

}



/* =========================================================
   TABLE
========================================================= */

.table-scroll {

    width: 100%;

    overflow-x: auto;

}


.contributors-table {

    width: 100%;

    min-width: 1100px;

    border-collapse: collapse;

}


.contributors-table thead {

    background: var(--maroon);

    color: white;

}


.contributors-table th {

    padding: 18px 16px;

    text-align: left;

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

}


.contributors-table th:first-child {

    width: 70px;

    text-align: center;

}


.contributors-table th:nth-child(2) {

    width: 22%;

}


.contributors-table th:nth-child(3) {

    width: 18%;

}


.contributors-table th:nth-child(4) {

    width: 28%;

}


.contributors-table th:nth-child(5) {

    width: 17%;

}


.contributors-table th:last-child {

    width: 90px;

    text-align: center;

}



/* =========================================================
   ROW
========================================================= */

.contributor-row {

    border-bottom: 1px solid #eee3d1;

    transition: background .25s ease;

}


.contributor-row:hover {

    background: #fffaf0;

}


.contributor-row:last-child {

    border-bottom: none;

}


.contributor-row td {

    padding: 19px 16px;

    vertical-align: middle;

    color: #675950;

    font-size: 15px;

    line-height: 1.6;

}


.number-cell {

    text-align: center;

    color: #a98c60 !important;

    font-size: 14px !important;

}


.name-cell {

    color: var(--maroon) !important;

    font-size: 16px !important;

    font-weight: 700;

}


.place-cell {

    color: #76665c !important;

}


.contribution-cell {

    color: #695950 !important;

}


.amount-cell {

    color: var(--maroon) !important;

    font-size: 16px !important;

    font-weight: 800;

    white-space: nowrap;

}


.rupee {

    color: var(--gold-dark);

    margin-right: 4px;

}


.dash-value {

    color: #a18e82;

    font-weight: 600;

}


.material-value {

    display: inline-block;

    padding: 6px 11px;

    border-radius: 9px;

    background: #f8edda;

    color: var(--maroon);

    font-size: 14px;

    font-weight: 700;

    line-height: 1.5;

    white-space: normal;

}



/* =========================================================
   PHOTO
========================================================= */

.photo-cell {

    text-align: center;

}


.photo-cell img,
.photo-placeholder {

    width: 52px;

    height: 52px;

    margin: auto;

    border-radius: 50%;

}


.photo-cell img {

    display: block;

    object-fit: cover;

    border: 2px solid var(--gold);

}


.photo-placeholder {

    display: flex;

    align-items: center;

    justify-content: center;

    border: 2px solid var(--gold);

    background: #fffaf0;

    color: var(--gold);

    font-size: 20px;

}



/* =========================================================
   NO RESULTS
========================================================= */

.no-results {

    display: none;

    padding: 70px 20px;

    text-align: center;

}


.no-results.show {

    display: block;

}


.no-result-icon {

    color: var(--gold);

    font-size: 42px;

}


.no-results h3 {

    margin: 10px 0;

    color: var(--maroon);

    font-size: 25px;

}


.no-results p {

    margin: 0;

    color: #806e62;

}



/* =========================================================
   HIDDEN ROW
========================================================= */

.contributor-row.hidden-row {

    display: none;

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .sutrumaathil-hero {

        padding: 60px 20px;

    }


    .contributors-section {

        padding: 35px 16px 60px;

    }


    .card-header {

        padding: 28px 22px;

    }


    .card-header h3 {

        font-size: 24px;

    }


    .search-wrapper input {

        height: 60px;

        font-size: 15px;

    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 550px) {

    .sutrumaathil-hero h1 {

        font-size: 36px;

    }


    .sutrumaathil-hero h1 span {

        font-size: 24px;

    }


    .page-heading h2 {

        font-size: 30px;

    }


    .card-header {

        flex-direction: column;

        align-items: flex-start;

    }


    .count-badge {

        width: 48px;

        height: 48px;

    }

}