:root {
    --navy: #010066;
    --navy2: #071b75;
    --yellow: #ffc404;
    --blue-border: #b8d0f4;
    --light-blue: #edf5ff;
}

* {
    box-sizing: border-box;
}
table{border:none}
.yf-directory {
    
    background: linear-gradient(135deg,#f5f9ff,#e9f3ff);
    padding: 30px;
    color: var(--navy);
    overflow: hidden;
}

/* =========================
   TOP BANNER
========================= */



/* =========================
   TABLE WRAPPER
========================= */

.yf-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding: 20px 0 25px;
}

.yf-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

/* =========================
   COLUMN HEADER
========================= */

.yf-table thead th {
    background: linear-gradient(110deg,#010066,#102c81);
    color: #fff;
    padding: 19px 13px;
    text-align: left;
    font-size: 13px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,.25);
    border-top: 1px solid rgba(255,255,255,.2);
    border-bottom: 1px solid rgba(255,255,255,.2);
}

.yf-table thead th:first-child {
    border-radius: 16px 0 0 16px;
    padding-left: 25px;
}

.yf-table thead th:last-child {
    border-radius: 0 16px 16px 0;
    border-right: none;
}

.yf-th-icon {
    display: inline-block;
    color: var(--yellow);
    font-size: 22px;
    margin-right: 9px;
    vertical-align: middle;
}

/* =========================
   DEPARTMENT SECTION HEADER
========================= */

.yf-group th {
    position: relative;
    height: 57px;
    padding: 8px 25px;
    text-align: left;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(100deg,#010066,#123a91 55%,#e8f2ff 100%);
    border-bottom: 3px solid var(--yellow);
    border-top: 3px solid #e1ecff;
    border-radius: 0 30px 0 0;
}

.yf-group th:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 100%;
    background: var(--yellow);
    clip-path: polygon(0 0,100% 0,70% 100%,0 100%);
}

.yf-group th:after {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 320px;
    background: linear-gradient(90deg,#010066,#071c71);
    border-radius: 0 50px 0 0;
    z-index: 0;
}

.yf-group-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.yf-group-icon {
    width: 42px;
    height: 42px;
    color: var(--yellow);
    font-size: 30px;margin-left:10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   EMPLOYEE ROWS
========================= */

.yf-row td {
    padding: 12px 15px;
    background: rgba(255,255,255,.94);
    color: #101c52;
    font-size: 14px;
    border-right: 1px solid var(--blue-border);
    border-bottom: 1px solid var(--blue-border);
    vertical-align: middle;
    line-height: 1.5;
}

.yf-row td:first-child {
    border-left: 1px solid var(--blue-border);
}

.yf-row:nth-child(even) td {
    background: #eaf2ff;
}

.yf-row:hover td {
    background: #dceaff;
}

.yf-row:last-child td:first-child {
    border-radius: 0 0 0 18px;
}

.yf-row:last-child td:last-child {
    border-radius: 0 0 18px 0;
}

/* Employee name */

.yf-name {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-weight: 600;
}

.yf-person-icon {
    width: 31px;
    height: 31px;
    min-width: 31px;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Room */

.yf-room {
    font-weight: 600;
}

/* Phone */

.yf-phone {
    white-space: nowrap;
}

/* Email */

.yf-email {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-wrap: anywhere;
}

.yf-email-icon {
    min-width: 30px;
    height: 27px;
    background: var(--navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 17px;
}

/* =========================
   BOTTOM DECORATION
========================= */

.yf-bottom {
    position: relative;
    height: 75px;
    overflow: hidden;
    margin-top: 0;
    background:
        linear-gradient(180deg,#dcecff,#b7d8ff);
    border-bottom: 6px solid var(--navy);
}

.yf-bottom:before {
    content: "✚     ✚             ✈                 ✚";
    position: absolute;
    left: 20px;
    top: 5px;
    color: rgba(1,0,102,.15);
    font-size: 45px;
    letter-spacing: 50px;
}

.yf-bottom:after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -60px;
    width: 420px;
    height: 100px;
    background: var(--navy);
    border-top: 8px solid var(--yellow);
    transform: rotate(-12deg);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px) {

    .yf-directory {
        padding: 12px;
    }

    .yf-banner {
        padding: 20px;
        min-height: 125px;
    }

    .yf-logo {
        width: 65px;
        height: 65px;
        font-size: 32px;
    }

    .yf-banner-divider {
        height: 65px;
        margin: 0 15px;
    }

    .yf-banner-content h1 {
        font-size: 23px;
    }

    .yf-banner-content p {
        font-size: 14px;
    }

    .yf-banner-art {
        display: none;
    }

    .yf-table {
        min-width: 1050px;
    }

    .yf-row td {
        font-size: 15px;
    }
}


/* HEADER */
.yf-directory-table thead th {
    position: relative;
    overflow: hidden;
    background: #010066;
    color: #ffffff;
}

/* ICON + TEXT ANIMATION */
.yf-directory-table thead th {
    animation: headerGlow 5s ease-in-out infinite;
}

/* Golden shine on complete text and icon */
.yf-directory-table thead th {
    background-image: linear-gradient(
        110deg,
        #010066 0%,
        #010066 35%,
        #253b91 48%,
        #ffc404 50%,
        #253b91 52%,
        #010066 65%,
        #010066 100%
    );
    background-size: 250% 100%;
    animation: completeHeaderShine 7s linear infinite;
}

@keyframes completeHeaderShine {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -150% 0;
    }
}

/* ICON */
.yf-th-icon {
    display: inline-block;
    color: #ffc404;
    font-size: 21px;
    margin-right: 9px;
    animation: iconFloat 3s ease-in-out infinite;
    transition: transform .3s ease;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* TEXT + ICON HOVER */
.yf-directory-table thead th:hover {
    color: #ffc404;
}

.yf-directory-table thead th:hover .yf-th-icon {
    color: #ffffff;
    transform: scale(1.2);
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .yf-directory-table thead th,
    .yf-th-icon {
        animation: none !important;
    }
}





/* ==================================
   CREATIVE DEPARTMENT HEADER
================================== */

.yf-group th {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        110deg,
        #010066,
        #171679,
        #010066
    );
    background-size: 200% 100%;
    color: #fff;
    padding: 17px 25px;
    border-left: 5px solid #ffc404;
    border-bottom: 3px solid #ffc404;
    border-radius: 0 25px 0 0;
    animation: departmentGradient 8s ease infinite;
}

/* Moving Golden Light */
.yf-group th:before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255,255,255,.18),
        rgba(255,196,4,.35),
        transparent
    );
    transform: skewX(-25deg);
    animation: departmentShine 6s ease-in-out infinite;
    pointer-events: none;
}

/* Decorative Golden Circle */
.yf-group th:after {
    content: "";
    position: absolute;
    right: 35px;
    top: 50%;
    width: 65px;
    height: 65px;
    border: 2px solid rgba(255,196,4,.35);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 8px rgba(255,255,255,.04);
    animation: departmentCircle 5s ease-in-out infinite;
    pointer-events: none;
}

/* Department Content */
.yf-group-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .5px;
    animation: departmentText 1s ease both;
}

/* Department Icon */
.yf-group-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #010066;
    background: #ffc404;
    border-radius: 12px;
    font-size: 24px;
    box-shadow: 0 0 0 4px rgba(255,196,4,.15);
    animation: departmentIcon 3s ease-in-out infinite;
    transition: all .35s ease;
}

/* Background Gradient */
@keyframes departmentGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Golden Shine */
@keyframes departmentShine {
    0%, 65% {
        left: -120%;
    }
    100% {
        left: 150%;
    }
}

/* Circle Animation */
@keyframes departmentCircle {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: .4;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: .9;
    }
}

/* Icon Animation */
@keyframes departmentIcon {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-4px) rotate(4deg);
    }
}

/* Text Animation */
@keyframes departmentText {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover Effect */
.yf-group th:hover .yf-group-icon {
    color: #fff;
    background: #171679;
    box-shadow: 0 0 0 5px rgba(255,196,4,.25);
    transform: scale(1.12);
    animation: none;
}

.yf-group th:hover .yf-group-content {
    color: #ffc404;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .yf-group th,
    .yf-group th:before,
    .yf-group th:after,
    .yf-group-content,
    .yf-group-icon {
        animation: none !important;
        transition: none !important;
    }
}

