/* =========================================================
   VOLUNTEERS PAGE
========================================================= */

.volunteers-page {
    padding: 20px 0 40px;
    background: #fff;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.volunteer-header {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 22px;
    padding: 17px 20px;

    background: linear-gradient(
        135deg,
        #f2fbf6 0%,
        #e5f6ed 100%
    );

    border: 1px solid #dcece5;
    border-radius: 10px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}


.volunteer-header-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0a9b5c;
    color: #fff;

    border-radius: 8px;

    font-size: 18px;

    box-shadow: 0 4px 10px rgba(10, 155, 92, 0.20);
}


.volunteer-header-content {
    min-width: 0;
}


.volunteer-header h1 {
    display: block;

    position: static;

    margin: 0 !important;
    padding: 0;

    color: #006d46;

    font-size: 26px;
    font-weight: 700;

    line-height: 1.3;
}


/* Remove global h1 underline */

.volunteer-header h1:after {
    display: none !important;
    content: none !important;
}


.volunteer-header p {
    margin: 4px 0 0;

    color: #7d8f89;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   TABLE BOX
========================================================= */

.volunteer-table-box {
    background: #fff;

    border: 1px solid #e1eee9;
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.045);
}


/* =========================================================
   TABLE
========================================================= */

.volunteer-table {
    width: 100%;

    margin: 0;

    border-collapse: separate;
    border-spacing: 0;
}


/* Table Header */

.volunteer-table thead th {
    padding: 14px 15px;

    background: #f2faf6;

    border: 0;
    border-bottom: 1px solid #dcece5;

    color: #006d46;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.3px;

    white-space: nowrap;
}


/* Table Body */

.volunteer-table tbody td {
    padding: 13px 15px;

    border-top: 0;
    border-bottom: 1px solid #edf2ef;

    color: #687875;

    font-size: 11px;

    vertical-align: middle;
}


/* Last Row */

.volunteer-table tbody tr:last-child td {
    border-bottom: 0;
}


/* Hover */

.volunteer-table tbody tr {
    transition: background 0.2s ease;
}


.volunteer-table tbody tr:hover {
    background: #f9fdfb;
}


/* =========================================================
   NAME
========================================================= */

.name-wrapper {
    display: flex;
    align-items: center;

    gap: 9px;
}


.volunteer-avatar {
    width: 31px;
    height: 31px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf9f3;

    color: #0a9b5c;

    border-radius: 50%;

    font-size: 12px;
}


.volunteer-name span {
    color: #006d46;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   EMAIL
========================================================= */

.volunteer-email a {
    color: #687875;

    text-decoration: none;

    transition: color 0.2s ease;
}


.volunteer-email a i {
    margin-right: 5px;

    color: #0a9b5c;
}


.volunteer-email a:hover {
    color: #0a9b5c;

    text-decoration: none;
}


/* =========================================================
   BATCH BADGE
========================================================= */

.volunteer-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    background: #f3faf6;

    border: 1px solid #dcece5;
    border-radius: 5px;

    color: #0a9b5c;

    font-size: 9px;
    font-weight: 600;
}


.volunteer-badge i {
    margin-right: 4px;

    font-size: 9px;
}


/* =========================================================
   PROFESSION BADGE
========================================================= */

.profession-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    background: #f8faf9;

    border: 1px solid #e1eae6;
    border-radius: 5px;

    color: #687875;

    font-size: 9px;
    font-weight: 600;
}


.profession-badge i {
    margin-right: 4px;

    color: #0a9b5c;

    font-size: 9px;
}


/* =========================================================
   EMPTY VALUE
========================================================= */

.empty-value {
    color: #b3c1bc;

    font-size: 12px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.volunteer-empty {
    padding: 50px 20px;

    text-align: center;
}


.empty-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf9f3;

    color: #0a9b5c;

    border-radius: 50%;

    font-size: 20px;
}


.volunteer-empty h3 {
    margin: 0 0 5px;

    color: #006d46;

    font-size: 16px;
    font-weight: 700;
}


.volunteer-empty p {
    margin: 0;

    color: #8a9994;

    font-size: 11px;
}


/* =========================================================
   PAGINATION
========================================================= */

.volunteer-pagination {
    margin-top: 18px;

    text-align: center;
}


.volunteer-pagination .pagination {
    margin: 0;
}


.volunteer-pagination .pagination li a,
.volunteer-pagination .pagination li span {
    color: #006d46;
}


.volunteer-pagination .pagination li.active a,
.volunteer-pagination .pagination li.active span {
    background: #0a9b5c;

    border-color: #0a9b5c;

    color: #fff;
}


/* =========================================================
   SIDEBAR
========================================================= */

.volunteer-sidebar {
    background: #fff;

    border: 1px solid #dfece6;
    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}


/* Sidebar Header */

.volunteer-sidebar .sidebar-header {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 16px;

    background: linear-gradient(
        135deg,
        #f2fbf6 0%,
        #e3f5ec 100%
    );

    border-bottom: 1px solid #dcece5;
}


.sidebar-header-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0a9b5c;

    color: #fff;

    border-radius: 7px;

    font-size: 15px;
}


.sidebar-header h2 {
    margin: 0;

    color: #006d46;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.3;
}


.sidebar-header span {
    display: block;

    margin-top: 3px;

    color: #82958f;

    font-size: 10px;
}


/* =========================================================
   SIDEBAR STORIES
========================================================= */

.sidebar-stories {
    padding: 8px;

    background: #fbfdfc;
}


.sidebar-story {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 75px;

    margin-bottom: 7px;
    padding: 10px 9px;

    background: #fff;

    border: 1px solid #e7efeb;
    border-radius: 7px;

    transition: all 0.2s ease;
}


.sidebar-story:last-child {
    margin-bottom: 0;
}


.sidebar-story:hover {
    background: #f9fdfb;

    border-color: #bfe4d2;

    transform: translateX(2px);
}


/* Story Number */

.story-number {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf9f3;

    color: #0a9b5c;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 700;
}


/* Story Info */

.story-info {
    flex: 1;
    min-width: 0;
}


.story-date {
    margin-bottom: 4px;

    color: #8a9994;

    font-size: 9px;
}


.story-date i {
    margin-right: 4px;

    color: #0a9b5c;
}


.story-info a {
    display: block;

    color: #006d46;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.45;

    text-decoration: none;

    word-break: break-word;
}


.story-info a:hover {
    color: #0a9b5c;

    text-decoration: none;
}


/* Arrow */

.story-arrow {
    color: #b4c5be;

    font-size: 14px;

    transition: color 0.2s ease;
}


.sidebar-story:hover .story-arrow {
    color: #0a9b5c;
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 767px) {

    .volunteers-page {
        padding: 15px 0 30px;
    }


    .volunteer-header {
        padding: 14px;

        margin-bottom: 18px;

        gap: 11px;
    }


    .volunteer-header-icon {
        width: 40px;
        height: 40px;

        font-size: 16px;
    }


    .volunteer-header h1 {
        font-size: 22px;
    }


    .volunteer-header p {
        font-size: 10px;
    }


    /* Table */

    .volunteer-table thead th {
        padding: 11px 10px;

        font-size: 9px;
    }


    .volunteer-table tbody td {
        padding: 11px 10px;

        font-size: 10px;
    }


    .volunteer-name span {
        font-size: 11px;
    }


    .volunteer-avatar {
        width: 28px;
        height: 28px;
    }


    /* Sidebar */

    .volunteer-sidebar {
        margin-top: 20px;
    }


    .sidebar-header h2 {
        font-size: 17px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .volunteers-page {
        padding-top: 10px;
    }


    .volunteer-header h1 {
        font-size: 20px;
    }


    .volunteer-header p {
        display: none;
    }


    .volunteer-table {
        min-width: 620px;
    }


    .volunteer-table-box {
        overflow-x: auto;
    }


    .volunteer-table thead th {
        font-size: 8px;
    }


    .volunteer-table tbody td {
        font-size: 9px;
    }


    .volunteer-badge,
    .profession-badge {
        font-size: 8px;
    }


    .story-info a {
        font-size: 11px;
    }

}