.btn:hover,
.btn:hover a {
    color: var(--primary) !important;
}
#newsList,
#notificationList {
    list-style: none;
    margin: 0;
    padding: 0;
}
#newsPopup,
#overlay,
.back-to-top {
    display: none;
    position: fixed;
}
#notificationList,
.news-scroller {
    max-height: 200px;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f1f1f1;
}
.news-item a:hover,
.read-more:hover {
    text-decoration: underline;
}
.btn a,
.news-item a,
.shining-link {
    text-decoration: none;
}
.nav-link:hover i,
.team-item:hover img {
    transform: scale(1.1);
}
:root {
    --primary: #f69050;
    --light: #f0fbfc;
    --light: #f0e4de;
    --dark: #181d38;
}
.btn {
    background-color: #fb873f;
    border: none;
}
.btn a {
    color: #fff;
}
.btn:hover {
    background: 0 0;
    border: 1px solid var(--primary);
}
.btn-light {
    background-color: var(--light);
}
.btn-light:hover {
    background: 0 0;
    color: var(--light) !important;
    border: 1px solid var(--light);
}
.fw-medium {
    font-weight: 600 !important;
}
.fw-semi-bold {
    font-weight: 700 !important;
}
.back-to-top {
    left: 45px;
    bottom: 45px;
    z-index: 99;
}
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity 0.5s ease-out, visibility linear;
    visibility: visible;
    opacity: 1;
}
.btn {
    font-family: Nunito, sans-serif;
    font-weight: 600;
    transition: 0.5s;
}
.btn.btn-primary,
.btn.btn-secondary {
    color: #fff;
}
.btn-square {
    width: 38px;
    height: 38px;
}
.btn-sm-square {
    width: 32px;
    height: 32px;
}
.btn-lg-square {
    width: 48px;
    height: 48px;
}
.btn-lg-square,
.btn-sm-square,
.btn-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    border-radius: 0;
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}
.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    outline: 0;
    color: var(--dark);
    font-weight: 500;
}
.footer .btn.btn-social:hover,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover,
.service-item i {
    color: var(--primary);
}
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
    .navbar-light .navbar-nav {
        border-top: 1px solid #eee;
    }
}
.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}
.navbar-light.sticky-top {
    top: -100px;
    transition: 0.5s;
}
.navbar-toggler-icon {
    color: #fb873f;
}
.navbar-toggler {
    border: 2px solid #fb873f;
}
.header-carousel .owl-carousel-item {
    position: relative;
    height: 100vh;
}
.header-carousel p {
    margin-top: 20px;
    font-size: 20px;
    line-height: 30px;
}
@media (max-width: 1300px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 80vh;
    }
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
@media (max-width: 430px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        height: 500px;
    }
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .header-carousel h1 {
        font-size: 30px;
        line-height: 30px;
    }
    .header-carousel p {
        margin-top: 20px;
        font-size: 15px;
        line-height: 20px;
    }
}
.section-title::after,
.section-title::before {
    height: 2px;
    z-index: -1;
    position: absolute;
    content: "";
}
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}
.header-carousel .owl-nav .owl-next,
.header-carousel .owl-nav .owl-prev {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: 0 0;
    border: 1px solid #fff;
    font-size: 22px;
    transition: 0.5s;
}
.header-carousel .owl-nav .owl-next:hover,
.header-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}
.page-header {
    background: linear-gradient(rgba(24, 29, 56, 0.7), rgba(24, 29, 56, 0.7)) center center/cover no-repeat, url(../img/carousel-1.jpg) center center/cover no-repeat;
}
.page-header-inner {
    background: rgba(15, 23, 43, 0.7);
}
.breadcrumb-item + .breadcrumb-item::before,
.footer .copyright a {
    color: var(--light);
}
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}
.section-title::before {
    width: calc(100% + 80px);
    top: 4px;
    left: -40px;
    background: var(--primary);
}
.section-title::after {
    width: calc(100% + 120px);
    bottom: 5px;
    left: -60px;
    background: var(--primary);
}
.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}
.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}
.category img,
.course-item img,
.service-item,
.team-item img,
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    transition: 0.5s;
}
.category .content h5 a,
.service-item * {
    transition: 0.3s ease-in-out;
}
.service-item:hover {
    margin-top: -10px;
    background: var(--primary);
}
.category .content:hover h5 a,
.service-item:hover *,
.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #fff !important;
}
.course-item img {
    width: 100%;
    height: 200px;
    border-radius: 5px;
}
.category .content {
    cursor: pointer;
    transition: 0.5s;
}
.category .content:hover {
    background-color: var(--primary);
    color: #fff;
}
.category .content h5 a {
    text-decoration: none;
    color: var(--dark);
}
.category img {
    width: 50px;
    height: 50px;
}
.category a:hover img,
.course-item:hover img {
    transform: scale(1.1);
    margin-top: -10px;
}
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #fff 0, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}
.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, #fff 0, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}
@media (min-width: 768px) {
    .testimonial-carousel::after,
    .testimonial-carousel::before {
        width: 200px;
    }
}
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: 0.5s;
    }
    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0);
        visibility: visible;
        transition: 0.5s;
        opacity: 1;
    }
    .testimonial-carousel::after,
    .testimonial-carousel::before {
        width: 300px;
    }
}
.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    transition: 0.5s;
}
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 400;
    border: 1px solid #fff;
    border-radius: 35px;
    transition: 0.3s;
}
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    text-transform: capitalize;
    transition: 0.3s;
}
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}
.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}
.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, 0.1);
}
.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
.career-option p {
    transition: background-color 0.3s, color 0.3s;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
}
.career-option p:hover {
    background-color: #f0f0f0;
    color: #000;
}
.row-boxes {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 30px;
}
.news-box,
.notification-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    width: 100%;
    padding: 25px;
    font-family: "Segoe UI", sans-serif;
    height: 340px;
    overflow: hidden;
}
.notification-box {
    border-left: 5px solid #007bff;
}
.news-box {
    border-left: 5px solid #dc143c;
}
.news-box h5,
.notification-box h5 {
    font-weight: 600;
    color: #343a40;
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}
#notificationList {
    overflow-y: scroll;
}
#notificationList::-webkit-scrollbar {
    width: 10px;
}
#notificationList::-webkit-scrollbar-track {
    background: #f1f1f1;
}
#notificationList::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}
#notificationList::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}
.notification-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
    color: #495057;
    position: relative;
    transition: background-color 0.3s;
    animation: 3s infinite softBlink;
}
.notification-item:hover {
    background-color: #f1f9ff;
}
.notification-item[data-clickable="true"] {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}
#newsList {
    height: 200px;
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
    padding-right: 8px; /* prevent scrollbar overlaying content */
}

/* Spinner placeholder style */
#newsSpinner {
    text-align: center;
    padding: 20px;
}

/* Each news item */
.news-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated news item on appearance */
.news-item.new-animated {
    transform: translateY(-20px);
    opacity: 0;
    animation: pushDown 0.5s ease forwards;
}

/* New badge animation */
.new-badge {
    background-color: #dc143c;
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    margin-left: 10px;
    border-radius: 4px;
    animation: pulse 1s infinite alternate;
}

/* Pulse animation for NEW badge */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Push down animation for news item */
@keyframes pushDown {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Title link styles */
.news-item a {
    color: #007bff;
    font-weight: 700;
    transition: color 0.3s;
    text-decoration: none;
}
.news-item a:hover {
    color: #0056b3;
}

/* News card hover */
.news-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Description text (truncated by default) */
.news-description {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: 0.3s;
    margin-bottom: 0;
}

/* Expand full description */
.news-description.expanded {
    white-space: normal;
}

/* Read more link */
.read-more {
    display: inline-block;
    margin-top: 5px;
    color: #007bff;
    cursor: pointer;
    font-weight: 700;
}

/* News container (for layout support) */
.news-container {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

/* Popup styling */
#newsPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    max-height: 90vh;
    box-sizing: border-box;
    transition: opacity 0.3s;
    opacity: 1;
}

/* Overlay for popup */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.bell-icon,
.career-option,
.custom-tooltip b,
.news-icon {
    display: inline-block;
}
@keyframes shine {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}
.career-option {
    position: relative;
    cursor: pointer;
    margin-bottom: 15px;
}
.career-option .custom-tooltip {
    visibility: hidden;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #fff;
    text-align: left;
    padding: 12px 16px;
    border-radius: 10px;
    position: absolute;
    z-index: 10;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    opacity: 0;
    transition: 0.3s;
    font-size: 14px;
    width: 270px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    line-height: 1.4;
}
.career-option:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.career-option .custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent;
}
.custom-tooltip b {
    color: #ffc107;
    margin-bottom: 4px;
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.navbar-brand .fw-bold {
    font-size: 20px;
}
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .row-boxes {
        flex-direction: column;
        gap: 15px;
        margin: 20px;
    }
    .navbar-brand .fw-bold {
        font-size: 18px;
    }
}
@media (max-width: 576px) {
    .career-option .custom-tooltip {
        width: 90vw;
        left: 5%;
        transform: translateX(0) scale(0.95);
        bottom: auto;
        top: 110%;
    }
    .career-option:hover .custom-tooltip {
        transform: translateX(0) scale(1);
    }
    .career-option .custom-tooltip::after {
        top: -8px;
        border-color: transparent transparent #1a1a1a;
    }
    .navbar-brand .fw-bold {
        font-size: 14px;
    }
}
.shining-link {
    color: #1e90ff;
    font-weight: 700;
    transition: 0.3s ease-in-out;
    animation: 3s ease-in-out infinite alternate soft-glow;
}
@keyframes soft-glow {
    0% {
        text-shadow: 0 0 4px rgba(30, 144, 255, 0.6);
    }
    100% {
        text-shadow: 0 0 12px rgba(30, 144, 255, 0.9);
    }
}
.shining-link:hover {
    color: #fff;
    background-color: #1e90ff;
    padding: 2px 6px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.8);
}
#popupImage {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 5px;
    margin: 10px 0;
}
#popupDescription {
    overflow-y: auto;
    max-height: 7em;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.4em;
}
button:hover {
    background-color: #ece9e9;
}
.bell-icon {
    margin-right: 10px;
    animation: 2s ease-in-out infinite swing-bell;
    transform-origin: top center;
    color: #f39c12;
}
@keyframes swing-bell {
    0%,
    100%,
    70% {
        transform: rotate(0);
    }
    10% {
        transform: rotate(15deg);
    }
    20% {
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(7deg);
    }
    40% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(3deg);
    }
    60% {
        transform: rotate(-2deg);
    }
}
.news-icon {
    margin-right: 10px;
    color: #007bff;
    animation: 1.8s infinite pulse-news;
}
@keyframes pulse-news {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}
.nav-link i {
    transition: transform 0.2s, color 0.2s;
}
.nav-link:hover i {
    color: #0d6efd;
} /*======== Shame on you why ? why you're strugling to steal my code go and ask to AI=========*/
.navbar-toggler-icon {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.navbar-toggler:not(.collapsed) .navbar-toggler-icon {
    transform: rotate(90deg) scale(1.2);
    opacity: 0.8;
}


#notificationMain {
  overflow-y: auto;
  max-height: 270px; 
  scroll-behavior: smooth;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}


#notificationMain::-webkit-scrollbar {
  width: 10px;
}

#notificationMain::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#notificationMain::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

#notificationMain::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}


.notification-item {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
  color: hwb(210 28% 1%);
  position: relative;
  transition: background-color 0.3s ease;
 /
}

.notification-item:hover {
  background-color: #f1f9ff;
}

.notification-item[data-clickable="true"] {
  color: #7700ff;
  cursor: pointer;
  text-decoration: underline;
}

