/* =========================================================
   P.T. LEE CHENGALVARAYA NAICKER TRUST
   FORMER TRUSTEES PAGE
   CHAIRMAN / FORMER CHAIRMEN STYLE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.trustees-page {
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #f7f9fc 0%,
            #ffffff 100%
        );

    font-family:
        "Poppins",
        sans-serif;
}


/* =========================================================
   HERO
========================================================= */

.trustees-hero {
    position: relative;

    padding:
        65px 20px
        60px;

    text-align: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #082b5c 0%,
            #075ca8 48%,
            #0b86a5 100%
        );
}


/* =========================================================
   HERO FLOATING CIRCLES
========================================================= */

.trustees-hero::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    top: -300px;
    left: -120px;

    background:
        rgba(255,255,255,0.08);

    animation:
        formerTrusteesFloatOne
        7s
        ease-in-out
        infinite;
}


.trustees-hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    right: -180px;
    bottom: -350px;

    background:
        rgba(255,145,0,0.15);

    animation:
        formerTrusteesFloatTwo
        8s
        ease-in-out
        infinite;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.trustees-hero-content {
    position: relative;

    z-index: 2;

    max-width: 1000px;

    margin:
        auto;
}


/* =========================================================
   HERO ICON
========================================================= */

.trustees-hero-icon {
    width: 58px;
    height: 58px;

    margin:
        0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: #ffffff;

    font-size: 23px;

    background:
        linear-gradient(
            135deg,
            #ff9800,
            #e91e63,
            #1565c0
        );

    box-shadow:
        0 10px 30px
        rgba(0,0,0,0.20);

    animation:
        formerIconPulse
        3s
        ease-in-out
        infinite;
}


/* =========================================================
   EYEBROW
========================================================= */

.trustees-hero-content > span {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 12px;

    padding:
        7px 18px;

    border:
        1px solid
        rgba(255,255,255,0.45);

    border-radius: 50px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;

    background:
        rgba(255,255,255,0.08);

    backdrop-filter:
        blur(8px);
}


/* =========================================================
   HERO TITLE
========================================================= */

.trustees-hero-content h1 {
    margin: 0;

    color: #ffffff;

    font-size:
        clamp(32px, 5vw, 58px);

    font-weight: 800;

    line-height: 1.15;

    text-shadow:
        0 5px 20px
        rgba(0,0,0,0.25);
}


/* =========================================================
   ANIMATED FORMER TRUSTEES TITLE
========================================================= */

.trustees-hero-content h1 strong {
    display: inline-block;

    font-weight: 800;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #ffd1e1,
            #f467a7,
            #e2134f,
            #ff8a65,
            #ffd54f,
            #ffffff
        );

    background-size:
        400% 100%;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color:
        transparent;

    color: transparent;

    animation:
        formerTrusteesTitleGradient
        4s
        ease-in-out
        infinite;
}


/* =========================================================
   HERO DESCRIPTION
========================================================= */

.trustees-hero-content p {
    max-width: 760px;

    margin:
        18px auto 0;

    color:
        rgba(255,255,255,0.9);

    font-size: 17px;

    line-height: 1.8;
}


/* =========================================================
   INTRODUCTION
========================================================= */

.trustees-intro {
    max-width: 1150px;

    margin:
        auto;

    padding:
        70px 20px
        25px;
}


.trustees-intro-title {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 18px;
}


.trustees-intro-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: #ffffff;

    font-size: 22px;

    background:
        linear-gradient(
            135deg,
            #ff9800,
            #e91e63,
            #1565c0
        );

    box-shadow:
        0 10px 25px
        rgba(21,101,192,0.18);
}


.trustees-intro h2 {
    margin: 0;

    color: #102a43;

    font-size:
        clamp(26px, 3vw, 36px);

    font-weight: 800;

    line-height: 1.2;
}


.trustees-intro p {
    max-width: 900px;

    margin:
        0 0 10px 76px;

    color: #718096;

    font-size: 15px;

    line-height: 1.8;
}


/* =========================================================
   YEAR SUMMARY
========================================================= */

.year-summary {
    max-width: 1150px;

    margin:
        0 auto;

    padding:
        20px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.year-card {
    position: relative;

    padding:
        25px 20px;

    text-align: center;

    border:
        1px solid #e3eaf3;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #f7faff,
            #fff9f2
        );

    box-shadow:
        0 10px 30px
        rgba(15,50,90,0.07);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.year-card:hover {
    transform:
        translateY(-7px);

    box-shadow:
        0 20px 45px
        rgba(15,50,90,0.13);
}


.year-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            #ff9800,
            #e91e63,
            #1565c0
        );

    background-size:
        200% 100%;

    animation:
        yearCardGradient
        4s
        linear
        infinite;
}


.year-card i {
    display: block;

    margin-bottom: 10px;

    color: #356ce2;

    font-size: 22px;
}


.year-card strong {
    display: block;

    color: #183b56;

    font-size: 18px;

    font-weight: 800;
}


.year-card span {
    display: block;

    margin-top: 4px;

    color: #8a96a6;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================================
   TABLE CARD
========================================================= */

.trustees-table-card {
    max-width: 1150px;

    margin:
        40px auto
        90px;

    overflow: hidden;

    border:
        1px solid #e3eaf3;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 20px 60px
        rgba(15,50,90,0.10);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.trustees-table-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 28px 70px
        rgba(15,50,90,0.15);
}


/* =========================================================
   TABLE HEADING
========================================================= */

.table-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        28px 32px;

    background:
        linear-gradient(
            135deg,
            #f6f9ff,
            #fff8f3
        );

    border-bottom:
        1px solid #e7edf5;
}


.table-heading-left {
    display: flex;

    align-items: center;

    gap: 18px;
}


.table-heading-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: #ffffff;

    font-size: 22px;

    background:
        linear-gradient(
            135deg,
            #ff9800,
            #e91e63,
            #1565c0
        );
}


.table-heading h2 {
    margin:
        0 0 4px;

    color: #183b56;

    font-size: 21px;

    font-weight: 800;
}


.table-heading p {
    margin: 0;

    color: #718096;

    font-size: 13px;
}


/* =========================================================
   COUNT
========================================================= */

.trustee-count {
    min-width: 110px;

    padding:
        12px 18px;

    text-align: center;

    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #082b5c,
            #356ce2
        );

    box-shadow:
        0 8px 20px
        rgba(53,108,226,0.18);

    font-size: 12px;

    font-weight: 700;
}


.trustee-count i {
    margin-right: 5px;

    color: #ffd54f;
}


/* =========================================================
   TABLE WRAPPER
========================================================= */

.table-responsive {
    width: 100%;

    overflow-x: auto;
}


/* =========================================================
   TABLE
========================================================= */

.trustees-table {
    width: 100%;

    border-collapse: collapse;

    border-spacing: 0;
}


/* =========================================================
   TABLE HEADER
========================================================= */

.trustees-table thead {
    background:
        linear-gradient(
            90deg,
            #082b5c,
            #075ca8
        );
}


.trustees-table th {
    padding:
        18px 22px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.7px;

    text-align: left;

    white-space: nowrap;
}


.trustees-table th:first-child {
    width: 90px;

    text-align: center;
}


.trustees-table th:last-child {
    width: 240px;
}


/* =========================================================
   NORMAL ROW
========================================================= */

.trustees-table tbody tr:not(.year-group) {
    border-bottom:
        1px solid #edf1f6;

    transition:
        background 0.3s ease;
}


.trustees-table tbody tr:not(.year-group):hover {
    background:
        linear-gradient(
            90deg,
            #f7faff,
            #fffaf5
        );
}


/* =========================================================
   TABLE CELLS
========================================================= */

.trustees-table td {
    padding:
        20px 22px;

    color: #5d6878;

    font-size: 14px;

    vertical-align: middle;
}


.trustees-table td:first-child {
    text-align: center;

    color: #356ce2;

    font-weight: 800;
}


/* =========================================================
   YEAR GROUP
========================================================= */

.trustees-table .year-group td {
    padding:
        15px 22px;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #082b5c,
            #075ca8,
            #0b86a5
        );

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.4px;
}


.trustees-table .year-group i {
    margin-right: 8px;

    color: #ffd54f;
}


/* =========================================================
   TRUSTEE NAME
========================================================= */

.trustee-name {
    color: #183b56 !important;

    font-weight: 700 !important;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.trustees-table tbody tr:not(.year-group):hover .trustee-name {
    color: #075ca8 !important;

    transform:
        translateX(4px);
}


/* =========================================================
   PERIOD BADGE
========================================================= */

.period-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 135px;

    padding:
        9px 15px;

    border:
        1px solid #dfe8f5;

    border-radius: 50px;

    color: #075ca8;

    background:
        linear-gradient(
            90deg,
            #edf5ff,
            #fff4f7
        );

    font-size: 12px;

    font-weight: 700;

    transition:
        transform 0.3s ease;
}


.trustees-table tbody tr:not(.year-group):hover .period-badge {
    transform:
        scale(1.04);
}


/* =========================================================
   INFORMATION NOTE
========================================================= */

.trustees-note {
    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        0;

    padding:
        22px 30px;

    border-top:
        1px solid #e7edf5;

    background:
        linear-gradient(
            135deg,
            #f7faff,
            #fff9f2
        );

    color: #718096;

    font-size: 13px;

    line-height: 1.7;
}


.trustees-note i {
    color: #356ce2;

    font-size: 18px;

    flex-shrink: 0;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes formerTrusteesFloatOne {

    0%,
    100% {
        transform:
            translate(0,0);
    }

    50% {
        transform:
            translate(80px,40px);
    }
}


@keyframes formerTrusteesFloatTwo {

    0%,
    100% {
        transform:
            translate(0,0);
    }

    50% {
        transform:
            translate(-60px,-30px);
    }
}


@keyframes formerTrusteesTitleGradient {

    0% {
        background-position:
            0% 50%;
    }

    50% {
        background-position:
            100% 50%;
    }

    100% {
        background-position:
            0% 50%;
    }
}


@keyframes formerIconPulse {

    0%,
    100% {
        transform:
            scale(1);
    }

    50% {
        transform:
            scale(1.08);
    }
}


@keyframes yearCardGradient {

    0% {
        background-position:
            0% 50%;
    }

    50% {
        background-position:
            100% 50%;
    }

    100% {
        background-position:
            0% 50%;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .year-summary {
        grid-template-columns:
            repeat(2, 1fr);

        padding:
            20px 18px;
    }


    .trustees-table-card {
        margin:
            35px 18px
            70px;
    }


    .trustees-intro {
        padding:
            55px 18px
            20px;
    }


    .trustees-intro p {
        margin-left: 76px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .trustees-hero {
        padding:
            45px 15px;
    }


    .trustees-hero-icon {
        width: 52px;
        height: 52px;

        font-size: 20px;
    }


    .trustees-hero-content > span {
        font-size: 10px;

        letter-spacing: 1.3px;

        padding:
            7px 13px;
    }


    .trustees-hero-content p {
        font-size: 14px;
    }


    .trustees-intro {
        padding:
            45px 15px
            15px;
    }


    .trustees-intro-title {
        align-items:
            flex-start;

        gap: 12px;
    }


    .trustees-intro-icon {
        width: 50px;
        height: 50px;

        font-size: 19px;
    }


    .trustees-intro h2 {
        font-size: 24px;
    }


    .trustees-intro p {
        margin:
            15px 0 0;

        font-size: 14px;
    }


    .year-summary {
        grid-template-columns:
            1fr;

        padding:
            15px;

        gap: 14px;
    }


    .year-card {
        padding:
            20px;
    }


    .trustees-table-card {
        margin:
            30px 15px
            55px;

        border-radius: 18px;
    }


    .table-heading {
        align-items:
            flex-start;

        padding:
            22px 20px;
    }


    .table-heading-left {
        gap: 12px;
    }


    .table-heading-icon {
        width: 50px;
        height: 50px;

        font-size: 19px;
    }


    .table-heading h2 {
        font-size: 18px;
    }


    .trustee-count {
        min-width: auto;

        padding:
            9px 11px;

        font-size: 10px;
    }


    /* =====================================================
       MOBILE TABLE → CARDS
    ====================================================== */

    .trustees-table,
    .trustees-table tbody,
    .trustees-table tr,
    .trustees-table td {
        display: block;

        width: 100%;

        box-sizing: border-box;
    }


    .trustees-table thead {
        display: none;
    }


    .trustees-table .year-group {
        margin-top: 0;
    }


    .trustees-table .year-group td {
        padding:
            14px 18px;

        font-size: 12px;
    }


    .trustees-table tbody tr:not(.year-group) {
        padding:
            18px 20px;
    }


    .trustees-table td {
        padding: 0;

        text-align: left !important;
    }


    .trustees-table td:first-child {
        margin-bottom:
            8px;

        color: #356ce2;
    }


    .trustee-name {
        margin-bottom:
            12px;

        font-size: 14px;
    }


    .period-badge {
        min-width: 0;

        padding:
            8px 13px;

        font-size: 11px;
    }


    .trustees-note {
        align-items:
            flex-start;

        padding:
            20px;

        font-size: 12px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .trustees-hero-content h1 {
        font-size: 30px;
    }


    .trustees-hero-content p {
        font-size: 13px;
    }


    .trustees-intro h2 {
        font-size: 21px;
    }


    .table-heading h2 {
        font-size: 16px;
    }


    .trustee-count {
        display: none;
    }
}
/* =========================================================
   CURRENT TRUSTEES NAVIGATION CARD
========================================================= */

.current-trustee-nav {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 20px 30px 70px;

    box-sizing: border-box;
}


.current-trustee-card {
    width: 100%;

    min-height: 150px;

    display: flex;
    align-items: center;

    gap: 25px;

    padding: 28px 32px;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 18px;

    border: 1px solid #dbe7f5;

    border-left: 5px solid #1565c0;

    box-shadow:
        0 10px 30px rgba(21, 101, 192, 0.12);

    position: relative;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Decorative background */

.current-trustee-card::before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -80px;
    top: -90px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            rgba(21, 101, 192, 0.08),
            rgba(233, 30, 99, 0.05)
        );

    pointer-events: none;
}


.current-trustee-card:hover {

    transform: translateY(-5px);

    border-left-color: #e91e63;

    box-shadow:
        0 18px 40px rgba(21, 101, 192, 0.18);
}


/* =========================================================
   ICON
========================================================= */

.current-trustee-icon {

    width: 68px;
    height: 68px;

    min-width: 68px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #1565c0,
            #1976d2
        );

    color: #ffffff;

    font-size: 25px;

    box-shadow:
        0 8px 20px rgba(21, 101, 192, 0.25);

    position: relative;

    z-index: 1;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.current-trustee-card:hover
.current-trustee-icon {

    transform:
        scale(1.05)
        rotate(-3deg);

    background:
        linear-gradient(
            135deg,
            #e91e63,
            #ff9800
        );
}


/* =========================================================
   CONTENT
========================================================= */

.current-trustee-content {

    flex: 1;

    position: relative;

    z-index: 1;
}


.current-trustee-content h3 {

    margin: 0 0 8px;

    padding: 0;

    color: #123b70;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 21px;

    font-weight: 700;

    line-height: 1.3;
}


.current-trustee-content p {

    margin: 0;

    max-width: 650px;

    color: #64748b;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.7;
}


/* =========================================================
   BUTTON
========================================================= */

.current-trustee-button {

    position: relative;

    z-index: 1;

    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 13px 22px;

    min-width: 150px;

    box-sizing: border-box;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #1565c0,
            #1976d2
        );

    color: #ffffff;

    text-decoration: none;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    box-shadow:
        0 7px 18px rgba(21, 101, 192, 0.22);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.current-trustee-button:hover {

    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #e91e63,
            #ff9800
        );

    color: #ffffff;

    box-shadow:
        0 10px 22px rgba(233, 30, 99, 0.25);
}


.current-trustee-button i {

    font-size: 11px;

    transition:
        transform 0.3s ease;
}


.current-trustee-button:hover i {

    transform: translateX(5px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .current-trustee-nav {

        padding:
            15px 25px 55px;
    }


    .current-trustee-card {

        gap: 20px;

        padding:
            25px;
    }


    .current-trustee-icon {

        width: 60px;
        height: 60px;

        min-width: 60px;

        font-size: 22px;
    }


    .current-trustee-content h3 {

        font-size: 18px;
    }


    .current-trustee-button {

        min-width: 135px;

        padding:
            11px 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .current-trustee-nav {

        padding:
            10px 18px 45px;
    }


    .current-trustee-card {

        flex-direction: column;

        text-align: center;

        gap: 16px;

        padding:
            28px 20px;
    }


    .current-trustee-icon {

        width: 64px;
        height: 64px;

        min-width: 64px;
    }


    .current-trustee-content {

        width: 100%;
    }


    .current-trustee-content h3 {

        font-size: 18px;
    }


    .current-trustee-content p {

        font-size: 12.5px;
    }


    .current-trustee-button {

        width: 100%;

        max-width: 220px;
    }

}