/* =========================================================
   P.T. LEE CHENGALVARAYA NAICKER TRUST
   SECRETARIES PAGE
   CHAIRMAN STYLE
========================================================= */

.secretaries-page {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #f6f8fc;
    font-family: "Poppins", sans-serif;
    color: #172033;
}


/* =========================================================
   HERO
========================================================= */

.secretaries-hero {
    position: relative;
    min-height: 100px;
    padding: 80px 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(226, 19, 79, .38),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(53, 108, 226, .40),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #11182f 0%,
            #244fae 50%,
            #356ce2 100%
        );
}


/* =========================================================
   HERO LIGHT
========================================================= */

.secretaries-hero::before {
    content: "";

    position: absolute;
    width: 80%;
    height: 180%;

    top: -40%;
    left: -100%;

    background:
        linear-gradient(
            110deg,
            transparent 35%,
            rgba(255,255,255,.08) 50%,
            transparent 65%
        );

    transform: rotate(15deg);

    animation: secretaryLight 8s linear infinite;

    pointer-events: none;
}


@keyframes secretaryLight {

    0% {
        left: -100%;
    }

    100% {
        left: 130%;
    }
}


/* =========================================================
   ANIMATED ORBS
========================================================= */

.hero-orb {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


.hero-orb-one {
    width: 330px;
    height: 330px;

    left: -120px;
    top: -120px;

    border: 1px solid rgba(255,255,255,.14);

    background:
        radial-gradient(
            circle,
            rgba(226,19,79,.25),
            transparent 68%
        );

    animation:
        secretaryOrbOne 10s ease-in-out infinite;
}


.hero-orb-two {
    width: 430px;
    height: 430px;

    right: -170px;
    bottom: -210px;

    border: 1px solid rgba(255,255,255,.12);

    background:
        radial-gradient(
            circle,
            rgba(53,108,226,.28),
            transparent 68%
        );

    animation:
        secretaryOrbTwo 12s ease-in-out infinite;
}


@keyframes secretaryOrbOne {

    0%,
    100% {
        transform:
            translate(0,0)
            scale(1);
    }

    50% {
        transform:
            translate(55px,45px)
            scale(1.12);
    }
}


@keyframes secretaryOrbTwo {

    0%,
    100% {
        transform:
            translate(0,0)
            scale(1);
    }

    50% {
        transform:
            translate(-45px,-45px)
            scale(1.10);
    }
}


/* =========================================================
   HERO CONTENT
========================================================= */

.secretaries-hero-content {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 900px;

    text-align: center;

    color: #fff;

    animation:
        secretaryHeroEnter 1s ease both;
}


@keyframes secretaryHeroEnter {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   BADGE
========================================================= */

.secretaries-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 10px 20px;

    border:
        1px solid rgba(255,255,255,.25);

    border-radius: 50px;

    background:
        rgba(255,255,255,.10);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #fff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.6px;

    animation:
        secretaryBadge 4s ease-in-out infinite;
}


@keyframes secretaryBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* =========================================================
   HERO TITLE
========================================================= */

.secretaries-hero h1 {
    margin: 25px 0 0;

    color: #fff;

    font-size:
        clamp(46px, 7vw, 82px);

    font-weight: 800;

    line-height: 1.05;

    letter-spacing: -3px;
}


/* =========================================================
   ANIMATED SECRETARIES TEXT
========================================================= */

.secretaries-hero h1 span {

display: inline-block;

    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;

    animation:
        chairmanTitleColor
        4s
        ease-in-out
        infinite;

}


@keyframes chairmanTitleColor {

    0% {

        background-position:
            0% 50%;

    }

    50% {

        background-position:
            100% 50%;

    }

    100% {

        background-position:
            0% 50%;

    }

}

/* =========================================================
   HERO DESCRIPTION
========================================================= */

.secretaries-hero p {
    max-width: 720px;

    margin:
        25px auto 0;

    color:
        rgba(255,255,255,.86);

    font-size: 15px;

    line-height: 1.9;
}


/* =========================================================
   HERO LINE
========================================================= */

.hero-line {
    width: 80px;
    height: 4px;

    margin: 28px auto 0;

    border-radius: 50px;

    background:
        linear-gradient(
            90deg,
            #f467a7,
            #fff,
            #4cc9f0
        );

    animation:
        secretaryHeroLine 3s ease-in-out infinite;
}


@keyframes secretaryHeroLine {

    0%,
    100% {
        width: 70px;
    }

    50% {
        width: 140px;
    }
}


/* =========================================================
   CONTENT
========================================================= */

.secretaries-content {
    width: 100%;

    padding:
        80px 25px 100px;

    background:
        linear-gradient(
            180deg,
            #f8fafc,
            #f2f5fa
        );
}


.secretaries-container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;
}


/* =========================================================
   SECTION
========================================================= */

.secretary-section {
    margin-bottom: 80px;
}


.secretary-section:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 32px;
}


.section-icon {
    position: relative;

    width: 62px;
    height: 62px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 18px;

    color: #fff;

    font-size: 23px;

    background:
        linear-gradient(
            135deg,
            #06023d,
            #161836
        );

    box-shadow:
        0 12px 30px
        rgba(53,108,226,.20);

    overflow: hidden;
}


.section-icon::after {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    border:
        1px solid rgba(255,255,255,.30);

    border-radius: 50%;

    animation:
        sectionIconRotate 7s linear infinite;
}


@keyframes sectionIconRotate {

    to {
        transform: rotate(360deg);
    }
}


.section-heading span {
    display: block;

    margin-bottom: 4px;

    color: #E2134F;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;
}


.section-heading h2 {
    margin: 0;

    color: #172033;

    font-size:
        clamp(25px, 3vw, 36px);

    font-weight: 800;

    line-height: 1.2;
}


/* =========================================================
   CURRENT SECRETARY CARD
========================================================= */

.current-secretary-card {
    position: relative;

    display: grid;

    grid-template-columns:
        250px 1fr;

    align-items: center;

    gap: 45px;

    min-height: 330px;

    padding:
        55px 60px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8faff
        );

    border:
        1px solid #e5e9f0;

    box-shadow:
        0 22px 60px
        rgba(23,32,51,.10);

    overflow: hidden;

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}


.current-secretary-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 30px 75px
        rgba(23,32,51,.15);
}


/* =========================================================
   PROFILE DECORATIONS
========================================================= */

.profile-glow {
    position: absolute;

    width: 500px;
    height: 500px;

    left: -280px;
    top: -270px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(226,19,79,.14),
            transparent 68%
        );
}


.profile-circle {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


.profile-circle-one {
    width: 240px;
    height: 240px;

    right: -110px;
    top: -130px;

    border:
        30px solid
        rgba(53,108,226,.06);

    animation:
        profileCircleOne 9s ease-in-out infinite;
}


.profile-circle-two {
    width: 160px;
    height: 160px;

    right: 50px;
    bottom: -90px;

    border:
        20px solid
        rgba(226,19,79,.06);

    animation:
        profileCircleTwo 8s ease-in-out infinite;
}


@keyframes profileCircleOne {

    0%,
    100% {
        transform: rotate(0);
    }

    50% {
        transform: rotate(25deg);
    }
}


@keyframes profileCircleTwo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}


/* =========================================================
   NUMBER
========================================================= */

.current-secretary-number {
    position: absolute;

    top: 25px;
    right: 35px;

    color:
        rgba(53,108,226,.055);

    font-size: 70px;

    line-height: 1;

    font-weight: 800;
}


/* =========================================================
   PHOTO
========================================================= */

.secretary-photo-wrap {
    position: relative;

    width: 215px;
    height: 215px;

    margin: auto;

    display: flex;

    align-items: center;
    justify-content: center;
}


.secretary-photo-ring {
    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(#020617,
    #0047ff,
    #00c6ff,
    #e100ff,
    #ff2d75,
    #0047ff,
    #020617
        );

    animation:
        secretaryPhotoRing 8s linear infinite;
}


@keyframes secretaryPhotoRing {

    to {
        transform: rotate(360deg);
    }
}


.secretary-photo-ring::after {
    content: "";

    position: absolute;

    inset: 5px;

    border-radius: 50%;

    background: #fff;
}


.secretary-photo {
    position: relative;

    z-index: 2;

    width: 183px;
    height: 183px;

    border-radius: 50%;

    overflow: hidden;

    background: #eef2f8;

    box-shadow:
        0 15px 40px
        rgba(23,32,51,.17);
}


.secretary-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .6s ease;
}


.current-secretary-card:hover
.secretary-photo img {
    transform: scale(1.08);
}


/* =========================================================
   DETAILS
========================================================= */

.current-secretary-details {
    position: relative;
    z-index: 3;
}


.designation {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        8px 15px;

    border-radius: 50px;

    background:
        rgba(25,135,84,.09);

    color: #198754;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}


.current-secretary-details h3 {
    margin:
        18px 0 10px;

    color: #172033;

    font-size:
        clamp(25px, 4vw, 40px);

    line-height: 1.25;

    font-weight: 800;
}


.current-secretary-details p {
    margin: 0;

    color: #5d6878;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   PROFILE BOTTOM LINE
========================================================= */

.secretary-profile-line {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #E2134F,
            #8b5cf6,
            #356ce2,
            #4cc9f0,
            #E2134F
        );

    background-size: 300% auto;

    animation:
        profileLineMove 5s linear infinite;
}


@keyframes profileLineMove {

    0% {
        background-position: 0 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}


/* =========================================================
   STATUS
========================================================= */

.profile-status {
    position: absolute;

    right: 38px;
    bottom: 25px;

    display: flex;

    align-items: center;

    gap: 7px;

    color: #7a8494;

    font-size: 10px;

    font-weight: 600;
}


.profile-status i {
    color: #356ce2;
}


/* =========================================================
   HISTORY CARD
========================================================= */

.history-card {
    position: relative;

    background: #fff;

    border:
        1px solid #e5e9f0;

    border-radius: 30px;

    overflow: hidden;

    box-shadow:
        0 22px 60px
        rgba(23,32,51,.08);
}


/* =========================================================
   HISTORY HEADER
========================================================= */

.history-card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding:
        32px 38px;

    background:
        linear-gradient(
            135deg,
            #f9fbff,
            #f2f6ff
        );

    border-bottom:
        1px solid #e5e9f0;
}


.history-title {
    display: flex;

    align-items: center;

    gap: 15px;
}


.history-title-icon {
    width: 54px;
    height: 54px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #090029,
            #356ce2
        );
}


.history-title h3 {
    margin: 0 0 5px;

    color: #172033;

    font-size: 17px;

    font-weight: 700;
}


.history-title p {
    margin: 0;

    color: #7a8494;

    font-size: 11px;
}


.history-count {
    min-width: 70px;

    text-align: center;
}


.history-count strong {
    display: block;

    font-size: 30px;

    line-height: 1;

    font-weight: 800;

    background:
        linear-gradient(
            90deg,
            #090029,
            #356ce2
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}


.history-count span {
    display: block;

    margin-top: 5px;

    color: #7a8494;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   TIMELINE
========================================================= */

.secretaries-timeline {
    position: relative;

    padding:
        25px 38px 40px;
}


.secretaries-timeline::before {
    content: "";

    position: absolute;

    left: 64px;

    top: 28px;
    bottom: 40px;

    width: 2px;

    background:
        linear-gradient(
            to bottom,
           #090029,
            #356ce2
        );

    opacity: .25;
}


/* =========================================================
   HISTORY ITEM
========================================================= */

.secretary-history-item {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        55px 1fr auto;

    align-items: center;

    gap: 20px;

    padding:
        17px 0;

    transition:
        transform .3s ease;
}


.secretary-history-item:hover {
    transform: translateX(7px);
}


/* =========================================================
   MARKER
========================================================= */

.timeline-marker {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;

    border:
        2px solid #e5e9f0;

    box-shadow:
        0 6px 20px
        rgba(23,32,51,.08);

    transition:
        all .35s ease;
}


.timeline-marker span {
    color: #356ce2;

    font-size: 11px;

    font-weight: 800;
}


.secretary-history-item:hover
.timeline-marker {
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            #090029,
            #356ce2
        );

    transform: scale(1.08);

    box-shadow:
        0 10px 25px
        rgba(53,108,226,.25);
}


.secretary-history-item:hover
.timeline-marker span {
    color: #fff;
}


/* =========================================================
   PERSON
========================================================= */

.history-person {
    display: flex;

    align-items: center;

    gap: 14px;
}


.history-person-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    color: #356ce2;

    background: #f1f5ff;

    transition: .3s ease;
}


.secretary-history-item:hover
.history-person-icon {
    color: #E2134F;

    background: #fff0f4;
}


.history-person h4 {
    margin: 0 0 4px;

    color: #172033;

    font-size: 14px;

    font-weight: 700;
}


.history-person span {
    color: #7a8494;

    font-size: 11px;
}


/* =========================================================
   PERIOD
========================================================= */

.history-period {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        9px 14px;

    border-radius: 50px;

    background: #f7f9fc;

    color: #5d6878;

    font-size: 10px;

    font-weight: 600;

    white-space: nowrap;

    transition: .3s ease;
}


.history-period i {
    color: #E2134F;
}


.secretary-history-item:hover
.history-period {
    background: #eef3ff;

    color: #356ce2;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.secretaries-top-button {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 9999;

    width: 50px;
    height: 50px;

    border: none;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #090029,
            #356ce2
        );

    box-shadow:
        0 12px 30px
        rgba(53,108,226,.30);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(20px);

    transition:
        .3s ease;
}


.secretaries-top-button.show {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.secretaries-top-button:hover {
    transform:
        translateY(-6px);

    box-shadow:
        0 18px 38px
        rgba(226,19,79,.30);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .secretaries-hero {
        min-height: 450px;
    }

    .current-secretary-card {
        grid-template-columns: 1fr;

        text-align: center;

        gap: 30px;

        padding:
            50px 35px 65px;
    }

    .secretary-photo-wrap {
        margin: 0 auto;
    }

    .current-secretary-details {
        text-align: center;
    }

    .designation {
        justify-content: center;
    }

    .profile-status {
        left: 0;
        right: 0;

        justify-content: center;
    }

    .secretary-history-item {
        grid-template-columns:
            55px 1fr;
    }

    .history-period {
        grid-column: 2;

        width: fit-content;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .secretaries-hero {
        min-height: 420px;

        padding:
            70px 20px;
    }

    .secretaries-hero h1 {
        font-size: 45px;

        letter-spacing: -1.5px;
    }

    .secretaries-hero p {
        font-size: 13px;

        line-height: 1.8;
    }

    .secretaries-content {
        padding:
            60px 16px 80px;
    }

    .secretary-section {
        margin-bottom: 60px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-icon {
        width: 54px;
        height: 54px;

        border-radius: 15px;

        font-size: 20px;
    }

    .section-heading h2 {
        font-size: 26px;
    }

    .current-secretary-card {
        border-radius: 24px;

        padding:
            40px 20px 65px;
    }

    .secretary-photo-wrap {
        width: 185px;
        height: 185px;
    }

    .secretary-photo {
        width: 155px;
        height: 155px;
    }

    .current-secretary-details h3 {
        font-size: 25px;
    }

    .history-card {
        border-radius: 23px;
    }

    .history-card-header {
        align-items: flex-start;

        padding:
            25px 20px;
    }

    .history-title h3 {
        font-size: 13px;
    }

    .secretaries-timeline {
        padding:
            20px 18px 30px;
    }

    .secretaries-timeline::before {
        left: 40px;
    }

    .secretary-history-item {
        grid-template-columns:
            43px 1fr;

        gap: 14px;
    }

    .timeline-marker {
        width: 42px;
        height: 42px;
    }

    .history-person-icon {
        display: none;
    }

    .history-person h4 {
        font-size: 12px;

        line-height: 1.5;
    }

    .history-person span {
        font-size: 10px;
    }

    .history-period {
        font-size: 9px;

        padding:
            8px 11px;
    }

    .secretaries-top-button {
        right: 16px;
        bottom: 16px;

        width: 45px;
        height: 45px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .secretaries-badge {
        font-size: 9px;

        padding:
            8px 13px;
    }

    .secretaries-hero h1 {
        font-size: 39px;
    }

    .secretaries-hero p {
        font-size: 12px;
    }

    .current-secretary-card {
        padding:
            35px 15px 62px;
    }

    .secretary-photo-wrap {
        width: 165px;
        height: 165px;
    }

    .secretary-photo {
        width: 138px;
        height: 138px;
    }

    .current-secretary-details h3 {
        font-size: 22px;
    }

    .history-card-header {
        flex-direction: column;

        gap: 18px;
    }

    .history-count {
        display: flex;

        align-items: center;

        gap: 8px;
    }

    .history-count span {
        margin-top: 0;
    }
}