/* =========================================================
   P.T. LEE CHENGALVARAYA NAICKER TRUST
   TOP BAR + FLASH NEWS
   MATCHING NAVY & GOLD THEME
========================================================= */


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    width: 100%;

    background:
        linear-gradient(
            135deg,
            #08002d 0%,
            #08002d 50%,
            #08002d 100%
        );

    color: #ffffff;

    font-family: "Poppins", Arial, sans-serif;

    border-bottom:
        1px solid rgba(255, 216, 77, 0.35);

    position: relative;

    z-index: 10001;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.18);
}


/* TOP GOLD LINE */

.topbar::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ffd84d,
            #fff2a6,
            #ffd84d,
            transparent
        );
}


/* =========================================================
   TOPBAR CONTAINER
========================================================= */

.topbar-container {
    width: 100%;

    max-width: 1500px;

    min-height: 44px;

    margin: 0 auto;

    padding: 0 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   LEFT
========================================================= */

.topbar-left {
    display: flex;

    align-items: center;

    min-width: 0;
}


.topbar-motto-tamil {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;
}


.topbar-motto-tamil i {
    width: 25px;

    height: 25px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #08002d;

    background:
        linear-gradient(
            135deg,
            #ffe98a,
            #ffd43b
        );

    border-radius: 50%;

    font-size: 12px;

    box-shadow:
        0 2px 8px
        rgba(255, 216, 77, 0.35);
}


/* =========================================================
   RIGHT
========================================================= */

.topbar-right {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    min-width: 0;
}


/* =========================================================
   EMAIL / PHONE
========================================================= */

.topbar-contact {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #ffffff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 500;

    white-space: nowrap;

    padding: 5px 7px;

    border-radius: 5px;

    transition:
        color 0.3s ease,
        background 0.3s ease;
}


.topbar-contact:hover {
    color: #ffd84d;

    background:
        rgba(255, 255, 255, 0.07);
}


.topbar-contact i {
    color: #ffd84d;

    font-size: 12px;
}


/* =========================================================
   DIVIDER
========================================================= */

.topbar-divider {
    width: 1px;

    height: 18px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255, 216, 77, 0.45),
            transparent
        );

    flex-shrink: 0;
}


/* =========================================================
   SOCIAL ICONS
========================================================= */

.topbar-social {
    width: 28px;

    height: 28px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    text-decoration: none;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 216, 77, 0.20);

    font-size: 13px;

    flex-shrink: 0;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.topbar-social:hover {
    color: #ffffff;

    transform:
        translateY(-2px)
        scale(1.08);

    background:
        rgba(255, 216, 77, 0.18);

    border-color:
        #ffd84d;

    box-shadow:
        0 4px 12px
        rgba(255, 216, 77, 0.25);
}


.topbar-social.facebook:hover {
    background: #1877f2;

    border-color: #1877f2;
}


.topbar-social.instagram:hover {
    background:
        linear-gradient(
            135deg,
            #833ab4,
            #fd1d1d,
            #fcb045
        );

    border-color: #fd1d1d;
}


.topbar-social.youtube:hover {
    background: #ff0000;

    border-color: #ff0000;
}


/* =========================================================
   ENGLISH MOTTO
========================================================= */
.topbar-motto {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;
}


.topbar-motto i {
    width: 25px;

    height: 25px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #08002d;

    background:
        linear-gradient(
            135deg,
            #ffe98a,
            #ffd43b
        );

    border-radius: 50%;

    font-size: 12px;

    box-shadow:
        0 2px 8px
        rgba(255, 216, 77, 0.35);
}

/* =========================================================
   FLASH NEWS CONTAINER
========================================================= */

.flash-news-container {
    width: 100%;

    max-width: 1500px;

    height: 43px;

    margin: 0 auto;

    display: flex;

    align-items: stretch;
}


/* =========================================================
   FLASH NEWS LABEL
========================================================= */

.flash-news-label {
    flex:
        0 0 auto;

    min-width: 145px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding: 0 20px;

    background:
        linear-gradient(
            135deg,
            #ffd84d 0%,
            #f4bd19 50%,
            #dca400 100%
        );

    color: #08002d;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.5px;

    white-space: nowrap;

    position: relative;

    z-index: 5;

    box-shadow:
        5px 0 14px
        rgba(0, 0, 0, 0.25);
}


/* GOLD LABEL DECORATION */

.flash-news-label::before {
    content: "";

    width: 4px;

    height: 24px;

    background: #8b0000;

    border-radius: 3px;

    position: absolute;

    left: 8px;
}


/* ICON */

.flash-news-label i {
    width: 23px;

    height: 23px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    background: #8b0000;

    border-radius: 50%;

    font-size: 11px;

    box-shadow:
        0 2px 7px
        rgba(0, 0, 0, 0.30);

    animation:
        newsBell 1.8s ease-in-out infinite;
}


/* =========================================================
   BELL
========================================================= */

@keyframes newsBell {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-12deg);
    }

    20% {
        transform: rotate(12deg);
    }

    30% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(8deg);
    }

    50% {
        transform: rotate(0deg);
    }
}


/* =========================================================
   MARQUEE AREA
========================================================= */

.flash-news-content {
    flex: 1;

    min-width: 0;

    height: 43px;

    overflow: hidden;

    display: flex;

    align-items: center;

    position: relative;

    background:
        rgba(0, 0, 0, 0.12);
}


/* =========================================================
   FADE LEFT
========================================================= */

.flash-news-content::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 50px;
    height: 100%;

    z-index: 3;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            #0a0338,
            transparent
        );
}


/* =========================================================
   FADE RIGHT
========================================================= */

.flash-news-content::after {
    content: "";

    position: absolute;

    right: 0;
    top: 0;

    width: 50px;
    height: 100%;

    z-index: 3;

    pointer-events: none;

    background:
        linear-gradient(
            270deg,
            #0a2d73,
            transparent
        );
}


/* =========================================================
   MOVING TRACK
========================================================= */

.flash-news-track {
    display: inline-flex;

    align-items: center;

    width: max-content;

    min-width: max-content;

    height: 43px;

    white-space: nowrap;

    will-change: transform;

    animation:
        flashNewsMarquee
        32s
        linear
        infinite;
}


/* PAUSE */

.flash-news-content:hover
.flash-news-track {
    animation-play-state: paused;
}


/* =========================================================
   NEWS LINKS
========================================================= */

.flash-news-track a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #ffffff;

    text-decoration: none;

    font-size: 12px;

    font-weight: 500;

    padding: 0 22px;

    white-space: nowrap;

    transition:
        color 0.3s ease;
}


.flash-news-track a:hover {
    color: #ffd84d;

    text-decoration: none;
}


/* =========================================================
   NEW IMAGE
========================================================= */

.flash-news-track a img {
    width: auto;

    height: 15px;

    display: inline-block;

    vertical-align: middle;

    filter:
        drop-shadow(
            0 1px 4px
            rgba(255, 0, 0, 0.55)
        );
}


/* =========================================================
   SEPARATOR
========================================================= */

.flash-news-separator {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    color: #ffd84d;

    font-size: 13px;

    font-weight: 700;

    padding: 0 8px;

    flex-shrink: 0;

    text-shadow:
        0 0 7px
        rgba(255, 216, 77, 0.65);
}


/* =========================================================
   MARQUEE
========================================================= */

@keyframes flashNewsMarquee {

    0% {
        transform:
            translateX(0);
    }

    100% {
        transform:
            translateX(-50%);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .topbar-container {
        padding:
            0 15px;
    }


    .topbar-right {
        gap: 7px;
    }


    .topbar-motto {
        display: none;
    }


    .flash-news-label {
        min-width: 125px;

        padding:
            0 15px;
    }

}


/* =========================================================
   900px
========================================================= */

@media (max-width: 900px) {

    .topbar-container {
        min-height: 42px;

        padding:
            5px 15px;

        flex-wrap: wrap;

        justify-content: center;

        gap: 5px;
    }


    .topbar-left,
    .topbar-right {
        justify-content: center;

        width: 100%;
    }


    .flash-news,
    .flash-news-container,
    .flash-news-content,
    .flash-news-track {
        height: 40px;
    }


    .flash-news-label {
        min-width: 115px;

        font-size: 10px;

        padding:
            0 12px;
    }


    .flash-news-track a {
        font-size: 11px;

        padding:
            0 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .topbar-container {
        min-height: 40px;

        padding:
            6px 10px;
    }


    .topbar-contact span {
        display: none;
    }


    .topbar-divider {
        height: 15px;
    }


    .topbar-social {
        width: 25px;

        height: 25px;

        font-size: 11px;
    }


    .topbar-motto-tamil {
        font-size: 11px;
    }


    .topbar-motto-tamil i {
        width: 22px;

        height: 22px;

        font-size: 10px;
    }


    .flash-news,
    .flash-news-container,
    .flash-news-content,
    .flash-news-track {
        height: 38px;
    }


    .flash-news-label {
        min-width: 100px;

        padding:
            0 10px;

        font-size: 9px;

        gap: 5px;
    }


    .flash-news-label::before {
        left: 5px;

        height: 20px;
    }


    .flash-news-label i {
        width: 20px;

        height: 20px;

        font-size: 9px;
    }


    .flash-news-track a {
        font-size: 10px;

        padding:
            0 13px;

        gap: 6px;
    }


    .flash-news-track a img {
        height: 12px;
    }


    .flash-news-separator {
        font-size: 10px;

        padding:
            0 5px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 450px) {

    .topbar-motto-tamil {
        font-size: 10px;
    }


    .topbar-social {
        width: 23px;

        height: 23px;

        font-size: 10px;
    }


    .flash-news-label {
        min-width: 45px;

        width: 45px;

        padding: 0;
    }


    .flash-news-label span {
        display: none;
    }


    .flash-news-label i {
        width: 21px;

        height: 21px;
    }


    .flash-news-track {
        animation-duration:
            27s;
    }


    .flash-news-track a {
        font-size: 10px;

        padding:
            0 12px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .flash-news-track,
    .flash-news-label i {
        animation: none;
    }

}