/* This is all global styles. */
body {
    font-family: Arial, sans-serif;
    background-color: #cecbcb;
    margin: 0px 70px;
}

header {
    background-color: #00A3DD;
    padding: 10px 20px;
    color: white;
}

.second-header {
    background-color: #f8f9fa;
    padding: 20px;
    color: black;
    justify-content: space-between;
}

.second-header img {
    height: 100px;
    width: 120px;
}

.justify-text {
    text-align: justify;
}

.heritages {
    background-color: #f8f9fa;
}
.core-functions h3,
.heritages h3 {
    margin-bottom: 20px;
}

.core-functions img,
.heritages img {
    max-height: 250px;
    margin-bottom: 10px;
}

.news-item img {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}

footer {
    background-color: #00A3DD;
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
}
.vl {
    border-left: 2px solid #ffffff;
    height: auto;
    margin: 0 20px;
}
.footer-row {
    display: flex;
    justify-content: space-between;
}

.news-img-fluid {
    height: 170px;
}

.core-function-img-fluid {
    height: 150px;
    width: 150px;
}

.menu:hover {
    background-color: #E3E3E3;
    border-radius: 10px 10px 0 0;
}

.menu-active {
    font-size: 100px;
    background-color: #E3E3E3;
    border-radius: 10px 10px 0 0;
    border-bottom: #0b2e13 2px solid;
}

.related-list {
    color: #ffffff;
}

.related-list:hover{
    text-decoration: none;
    color: #f1de18 !important;
}

@media (max-width: 767.98px) {
    body {
        background-color: unset;
        margin: 0px;
    }

    .second-header h1, .second-header h2 {
        font-size: 1.2rem;
    }

    .second-header img {
        height: 80px;
        width: 100px;
    }

    .latest-news .news-item .col-12 {
        text-align: center;
    }

    .latest-news .news-item .col-12 .btn {
        float: none;
    }

    .social-media img {
        max-width: 100%;
    }
}

/*Card hover*/
.card {
    transition: background-color 0.3s ease, color 0.3s ease;
}
.card:hover {
    background-color: #f8f9fa; /* Light background color on hover */
    color: rgb(54, 54, 54); /* Primary color for text on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    flex-grow: 1;
    object-fit:contain;
}


/*New sticker at home page*/
.ticker-container {
    height: 40px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(to right, #003366, #004080, #003366);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ticker-wrapper {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    display: flex;
    animation: scroll 20s linear infinite;
    align-items: center;
    height: 100%;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.95);
    padding: 0 20px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 500;
    letter-spacing: 0.2px;
    flex-shrink: 0;
    height: 40px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

.star {
    display: inline-flex;
    align-items: center;
    color: #ffd700;
    padding: 0 15px;
    font-size: 18px;
    height: 40px;
    animation: blink 1.5s ease-in-out infinite;
    flex-shrink: 0;
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* Add fade effects on the edges */
.ticker-container::before,
.ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ticker-container::before {
    left: 0;
    background: linear-gradient(to right, #003366, transparent);
}

.ticker-container::after {
    right: 0;
    background: linear-gradient(to left, #003366, transparent);
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}
