/* =====================================================
   BARDOLI COLLEGE - USEFUL LINKS
   style1.css
===================================================== */

/* Reset only for useful links */
.useful-links-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Main bar */
.useful-links-wrapper {
    width: 100% !important;
    height: 72px;

    display: flex !important;
    align-items: center;

    margin: 0 !important;
    padding: 0 !important;

    background: #8ed3e5;

    border-top: 3px solid #0b3557;
    border-bottom: 3px solid #0b3557;

    box-sizing: border-box;

    overflow: hidden !important;
}


/* =====================================================
   FIXED TITLE
===================================================== */

.useful-links-title {
    flex: 0 0 195px !important;

    width: 195px !important;
    min-width: 195px !important;
    max-width: 195px !important;

    height: 72px;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #0b3557 !important;
    color: #ffffff !important;

    font-size: 17px !important;
    font-weight: 700 !important;

    white-space: nowrap !important;

    box-sizing: border-box;

    position: relative;
    z-index: 100;

    margin: 0 !important;
    padding: 0 !important;
}


/* =====================================================
   MOVING AREA
===================================================== */

.useful-links-slider {
    flex: 1 1 auto;

    width: calc(100% - 195px);

    height: 72px;

    display: block;

    overflow: hidden !important;

    position: relative;

    box-sizing: border-box;

    margin: 0;
    padding: 0;
}


/* =====================================================
   MOVING TRACK
===================================================== */

.useful-links-track {
    display: flex !important;
    align-items: center !important;

    flex-wrap: nowrap !important;

    width: max-content !important;
    min-width: max-content !important;

    height: 72px;

    gap: 16px;

    margin: 0 !important;
    padding: 0 0 0 15px !important;

    box-sizing: border-box;

    animation: bardoliUsefulLinks 30s linear infinite;

    will-change: transform;
}


/* =====================================================
   LINK BUTTONS
===================================================== */

.useful-links-track a {
    display: inline-flex !important;

    flex: 0 0 auto !important;

    align-items: center !important;
    justify-content: center !important;

    height: 48px !important;
    min-height: 48px !important;

    width: auto !important;

    padding: 0 24px !important;

    margin: 0 !important;

    background: #ffffff !important;
    color: #7d1725 !important;

    border-radius: 30px !important;

    border: none !important;

    text-decoration: none !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    white-space: nowrap !important;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);

    box-sizing: border-box;

    transition: all 0.25s ease;
}


/* Hover */
.useful-links-track a:hover {
    background: #7d1725 !important;
    color: #ffffff !important;

    transform: translateY(-2px);
}


/* =====================================================
   CONTINUOUS MOVEMENT
===================================================== */

@keyframes bardoliUsefulLinks {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

}


/* Pause on mouse hover */
.useful-links-slider:hover .useful-links-track {
    animation-play-state: paused;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .useful-links-title {
        flex-basis: 165px !important;
        width: 165px !important;
        min-width: 165px !important;
        max-width: 165px !important;

        font-size: 15px !important;
    }

    .useful-links-slider {
        width: calc(100% - 165px);
    }

    .useful-links-track a {
        height: 44px !important;
        min-height: 44px !important;

        padding: 0 20px !important;

        font-size: 15px !important;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .useful-links-wrapper {
        height: 62px;
    }

    .useful-links-title {
        flex-basis: 125px !important;
        width: 125px !important;
        min-width: 125px !important;
        max-width: 125px !important;

        height: 62px;

        font-size: 13px !important;
    }

    .useful-links-slider {
        width: calc(100% - 125px);
        height: 62px;
    }

    .useful-links-track {
        height: 62px;

        gap: 10px;

        padding-left: 10px !important;

        animation-duration: 25s;
    }

    .useful-links-track a {
        height: 40px !important;
        min-height: 40px !important;

        padding: 0 17px !important;

        font-size: 13px !important;
    }
}