﻿body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: #b40000; /* đỏ đậm */
}

/* ======= Navbar ======= */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.navbar-brand strong {
    font-size: 1.25rem;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease-in-out;
}

    .navbar-nav .nav-link:hover {
        color: #ffeaea;
    }

/* ======= Footer ======= */
footer {
    font-size: 0.95rem;
}

/* ======= Tin tức trang chủ ======= */
.news-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    border: 1px solid #eee;
}

    .news-card:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .news-card img {
        width: 100%;
        height: auto;
    }

.news-card-body {
    padding: 15px;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #b40000;
}

.news-card-summary {
    color: #666;
    font-size: 0.95rem;
}

/* ======= Back to top ======= */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #b40000;
    color: white;
    padding: 10px 12px;
    border-radius: 50%;
    font-size: 18px;
    display: none;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s;
}

    #backToTop:hover {
        background-color: #8e0000;
    }
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 48px;
    height: 48px;
    background-color: #dc3545; /* đỏ bootstrap */
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 48px;
    font-size: 22px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: shake 2s infinite;
    transition: transform 0.3s;
}

    .floating-btn:hover {
        transform: scale(1.1);
    }

    .floating-btn img {
        width: 28px;
        height: 28px;
        margin-top: 10px;
    }

    .floating-btn.phone {
        background-color: #28a745;
    }
    /* Xanh lá */
    .floating-btn.zalo {
        background-color: #028fe1;
    }
    /* Màu Zalo */
    .floating-btn.facebook {
        background-color: #3b5998;
    }
/* Màu Facebook */

/* Rung rung animation */
@keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0);
    }

    20% {
        transform: translate(-2px, 2px) rotate(-2deg);
    }

    40% {
        transform: translate(2px, -2px) rotate(2deg);
    }

    60% {
        transform: translate(-1px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    100% {
        transform: translate(0, 0) rotate(0);
    }
}
