/* style.css - CSS GLOBAL DÙNG CHUNG CHO TOÀN BỘ WEBSITE */

/* =================================
   CSS GLOBAL - BIẾN VÀ THIẾT LẬP CHUNG
   ================================= */
:root {
    --primary-color: #F04527;
    --secondary-color: #17879b;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --bg-color: #007f95;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

a {

    text-decoration: none;
}



h1, h2, h3, h4, h5 {
    font-weight: 700;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary-custom:hover {
    background-color: #d93e23;
    border-color: #d93e23;
    color: white;
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary-custom:hover {
    background-color: #147083;
    border-color: #147083;
    color: white;
}

/* =================================
   HEADER STYLES - DÙNG CHUNG
   ================================= */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1030;
}

.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {transform: translateY(-100%);}
    to {transform: translateY(0);}
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    height: 60px;
    margin-right: 10px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.5rem;
}

.navbar-nav .dropdown-item:hover {
    background-color: rgba(240, 69, 39, 0.1);
    color: var(--primary-color);
}

.header-contact {
    display: flex;
    align-items: center;
}

.header-contact .phone {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-right: 15px;
}

/* =================================
   FOOTER STYLES - DÙNG CHUNG
   ================================= */
.main-footer {
    background-color: #222;
    color: #ddd;
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.footer-logo {
    height: 70px;
    margin-bottom: 15px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.footer-legal {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 15px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-info {
    list-style: none;
    padding-left: 0;
}

.footer-contact-info li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}
/* =================================
   SOCIAL MEDIA LINKS
   ================================= */
.footer-social {
    margin-top: 1.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #333;
    color: #ddd;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 120px;
}

.social-link i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

/* Màu sắc riêng cho từng nền tảng khi hover */
.social-link.facebook:hover {
    background-color: #1877f2;
    color: white;
}

.social-link.youtube:hover {
    background-color: #ff0000;
    color: white;
}

.social-link.tiktok:hover {
    background-color: #000000;
    color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.social-link:hover i {
    color: white;
    transform: scale(1.1);
}

/* Responsive cho mobile */
@media (max-width: 576px) {
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        padding: 8px 12px;
        min-width: auto;
        flex: 1;
        justify-content: center;
    }
    
    .social-link span {
        font-size: 0.9rem;
    }
}

/* =================================
   UTILITY CLASSES - LỚP TIỆN ÍCH
   ================================= */
.section-title {
    color: var(--dark-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-title.center:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    /*max-width: 700px;*/
}

/* Responsive cho header/footer */
@media (max-width: 768px) {
    .header-contact {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1rem;
    }
    
    .header-contact .phone {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    .footer-logo {
        height: 60px;
    }
}