/* =========================================================
   TSCN PREMIUM TOPBAR
   Tadikela Subbaiah College of Nursing
   IMPORTANT:
   All selectors are uniquely prefixed with .tscn-topbar-
   so existing website CSS is not affected.
   ========================================================= */


/* ---------------------------------------------------------
   MAIN TOPBAR
   --------------------------------------------------------- */

.tscn-topbar {
    position: relative;
    width: 100%;
    min-height: 44px;

    background:
        linear-gradient(
            90deg,
            #651526 0%,
            #7c1d32 45%,
            #651526 100%
        );

    color: #ffffff;

    font-family: "Poppins", sans-serif;

    z-index: 9999;

    border-bottom: 1px solid rgba(218, 177, 91, 0.45);

    box-shadow:
        0 2px 12px rgba(50, 10, 20, 0.12);
}


/* subtle premium gold line */

.tscn-topbar::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(221, 181, 99, 0.9),
            transparent
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   CONTAINER
   --------------------------------------------------------- */

.tscn-topbar-container {
    width: 100%;
    max-width: 1440px;

    min-height: 44px;

    margin: 0 auto;

    padding: 0 34px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* ---------------------------------------------------------
   LEFT SECTION
   --------------------------------------------------------- */

.tscn-topbar-left {
    display: flex;

    align-items: center;

    gap: 18px;

    min-width: 0;
}


/* individual item */

.tscn-topbar-item {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: rgba(255, 255, 255, 0.94);

    text-decoration: none;

    font-size: 12px;

    font-weight: 400;

    letter-spacing: 0.1px;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}


/* hover */

.tscn-topbar-item:hover {
    color: #f0ce83;

    text-decoration: none;

    transform: translateY(-1px);
}


/* icon */

.tscn-topbar-icon {
    width: 25px;
    height: 25px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #e7c276;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(226, 190, 111, 0.28);

    font-size: 10px;

    flex-shrink: 0;
}


/* divider */

.tscn-topbar-divider {
    width: 1px;

    height: 18px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255,255,255,0.28),
            transparent
        );
}


/* ---------------------------------------------------------
   RIGHT SECTION
   --------------------------------------------------------- */

.tscn-topbar-right {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    white-space: nowrap;
}


/* links */

.tscn-topbar-link {
    position: relative;

    color: rgba(255, 255, 255, 0.91);

    text-decoration: none;

    font-size: 11px;

    font-weight: 400;

    transition:
        color 0.25s ease;
}


/* animated underline */

.tscn-topbar-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -5px;

    width: 0;

    height: 1px;

    background: #e4bd70;

    transition: width 0.25s ease;
}


.tscn-topbar-link:hover {
    color: #f0ce83;

    text-decoration: none;
}


.tscn-topbar-link:hover::after {
    width: 100%;
}


/* separators */

.tscn-topbar-separator {
    color: rgba(255, 255, 255, 0.25);

    font-size: 10px;

    user-select: none;
}


/* ---------------------------------------------------------
   SOCIAL ICONS
   --------------------------------------------------------- */

.tscn-topbar-social {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-left: 10px;

    padding-left: 14px;

    border-left: 1px solid rgba(255, 255, 255, 0.20);
}


.tscn-topbar-social a {
    width: 27px;
    height: 27px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: rgba(255,255,255,0.90);

    background: rgba(255,255,255,0.06);

    border: 1px solid rgba(255,255,255,0.13);

    text-decoration: none;

    font-size: 10px;

    transition:
        all 0.25s ease;
}


.tscn-topbar-social a:hover {
    color: #6b1729;

    background: #e8c477;

    border-color: #e8c477;

    transform: translateY(-2px);

    box-shadow:
        0 5px 14px rgba(0,0,0,0.18);
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .tscn-topbar-container {
        padding-left: 45px;
        padding-right: 45px;
    }

}


/* =========================================================
   LAPTOP / TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .tscn-topbar-container {
        padding-left: 22px;
        padding-right: 22px;

        gap: 15px;
    }

    .tscn-topbar-left {
        gap: 12px;
    }

    .tscn-topbar-item {
        font-size: 11px;
    }

    .tscn-topbar-right {
        gap: 7px;
    }

    .tscn-topbar-link {
        font-size: 10px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .tscn-topbar {
        min-height: auto;
    }

    .tscn-topbar-container {
        min-height: 42px;

        padding: 7px 18px;

        flex-wrap: wrap;

        justify-content: center;

        row-gap: 5px;
    }

    .tscn-topbar-left,
    .tscn-topbar-right {
        justify-content: center;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .tscn-topbar-container {

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 5px;

        padding: 8px 14px;
    }


    /* left */

    .tscn-topbar-left {
        width: 100%;

        justify-content: center;

        gap: 10px;
    }


    .tscn-topbar-item {

        font-size: 9.5px;

        gap: 5px;
    }


    .tscn-topbar-icon {

        width: 21px;
        height: 21px;

        font-size: 8px;
    }


    .tscn-topbar-divider {
        height: 15px;
    }


    /* right */

    .tscn-topbar-right {

        width: 100%;

        justify-content: center;

        gap: 7px;
    }


    .tscn-topbar-link {

        font-size: 9px;
    }


    .tscn-topbar-separator {
        font-size: 8px;
    }


    /* social */

    .tscn-topbar-social {

        margin-left: 4px;

        padding-left: 7px;

        gap: 4px;
    }


    .tscn-topbar-social a {

        width: 22px;
        height: 22px;

        font-size: 8px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .tscn-topbar-container {

        padding: 7px 10px;

        gap: 6px;
    }


    .tscn-topbar-left {

        gap: 7px;
    }


    .tscn-topbar-item {

        font-size: 8.5px;
    }


    /* Hide divider on very small screens */

    .tscn-topbar-divider {

        display: none;
    }


    .tscn-topbar-right {

        gap: 5px;
    }


    .tscn-topbar-link {

        font-size: 8px;
    }


    .tscn-topbar-social a {

        width: 20px;
        height: 20px;

        font-size: 7px;
    }

}


