/* Theme variables are defined in theme.css */

/* Header Styles */
/* Header Styles */
.top-header {
    background-color: var(--primary-dark-color);
    color: var(--light-color);
    padding: 8px 0;
    font-size: 14px;
}

.main-header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--primary-color);
}
.nav-item:.active {
    background-color: var(--primary-dark-color);
}
.nav-link {
    font-weight: 700;
    margin: 0 10px;
    transition: color 0.3s;
}
.nav-item .nav-link.active {
    background-color: var(--tertiary-color);
    color: white;
    border-radius: 5px;
    padding: 8px 15px;
}
    .nav-link:hover {
        color: var(--primary-dark-color) !important;
    }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: var(--primary-dark-color);
        border-color: var(--primary-dark-color);
    }

#navbarNav .btn-primary{
    background-color: var(--tertiary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: var(--light-color);
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/onavi/main-banner.jpg') center/cover no-repeat;
    padding: 100px 0;
    color: var(--light-color);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Services Section */
.services-box {
    background-color: var(--surface-bg);
    padding: 30px;
    border-radius: 5px;
    height: 100%;
    transition: transform 0.3s;
    border-bottom: 3px solid var(--primary-color);
    color: var(--text-color);
}

    .services-box:hover {
        transform: translateY(-10px);
    }

.icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Exchange Rate Section */
.exchange-rate-section {
    background-color: var(--section-bg);
    padding: 50px 0;
}

.rate-card {
    background-color: var(--surface-bg);
    border-radius: 5px;
    padding: 20px;
    height: 100%;
    border-left: 3px solid var(--primary-color);
    color: var(--text-color);
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    padding: 50px 0;
}

.counter-box {
    text-align: center;
    color: var(--light-color);
}

    .counter-box h2 {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 10px;
    }

/* Testimonial Section */
.testimonial-section {
    background-color: var(--section-bg);
    padding: 80px 0;
    color: var(--text-color);
}

.testimonial-card {
    background-color: var(--surface-bg);
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    color: var(--text-color);
}

    .testimonial-card::after {
        content: """; position: absolute;
        top: 20px;
        right: 30px;
        font-size: 60px;
        color: var(--primary-color);
        opacity: 0.3;
    }

/* Country Section */
.country-section {
    background-color: var(--section-bg);
    padding: 80px 0;
}

.country-item {
    text-align: center;
    margin-bottom: 30px;
}

.country-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--surface-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: background-color 0.3s;
}

.country-item:hover .country-icon {
    background-color: var(--primary-color);
}
.country-item:hover i {
    color: var(--light-color) !important;
}
.country-icon i {
    transition: color 0.3s ease;
}


/* Team Section */
.team-section {
    background-color: var(--section-bg);
    padding: 80px 0;
}

.team-card {
    background-color: var(--surface-bg);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    color: var(--text-color);
}

.team-info {
    padding: 20px;
}

.team-social {
    position: absolute;
    bottom: 20px;
    right: 20px;
}


.social-icon {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    margin-left: 5px;
    transition: background-color 0.3s;
}

    .social-icon:hover {
        background-color: var(--primary-dark-color);
    }

/* Contact Section */
.contact-section {
    background: linear-gradient(rgba(0, 128, 128, 0.9), rgba(0, 128, 128, 0.9)), url('/images/onavi/contact-us.jpg') center/cover no-repeat;
    padding: 80px 0;
    color: var(--light-color);
}

.form-control {
    background-color: var(--surface-bg);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

/*    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }*/

/* Blog Section */
.blog-section {
    background-color: var(--section-bg);
    padding: 80px 0;
}

.blog-card {
    background-color: var(--surface-bg);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
    color: var(--text-color);
}

.blog-info {
    padding: 20px;
}

.blog-date {
    background-color: var(--primary-color);
    display: inline-block;
    padding: 5px 10px;
    color: var(--light-color);
    font-size: 12px;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* Footer Section */
.footer {
    background-color: var(--primary-dark-color);
    padding: 60px 0 0;
    color: var(--light-color);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    width: 40px;
    height: 40px;
    background-color: var(--section-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

/*.footer-links li {
    margin-bottom: 12px;
}
*/
.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-links a:hover {
        color: var(--primary-color);
        text-decoration: none;
    }

.footer-bottom {
    background-color: var(--primary-color);
    padding: 20px 0;
    margin-top: 50px;
    color: var(--light-color);
}

.currency-box {
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 20px;
}

/* Exchange Rates Table Styles */
.table {
    color: var(--text-color);
}

.table-primary {
    background-color: var(--primary-color) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 128, 128, 0.1);
}

/* Carousel Customization */
.carousel-caption {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .carousel-caption {
        padding: 10px;
    }

    .services-box,
    .team-card,
    .blog-card {
        margin-bottom: 20px;
    }
}

/* Overrides for Bootstrap Dark Mode */
.card {
    background-color: var(--surface-bg);
    color: var(--text-color);
    border: none;
}

.form-select {
    background-color: var(--surface-bg);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
}

.back-to-top {
    display: none;
}

/* Floating chat buttons (Zalo, Line, Telegram) */
.chat-float-container {
    position: fixed;
    right: 16px;
    bottom: 96px; /* above back-to-top */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1030; /* above navbar */
}

.chat-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: transform .15s ease, box-shadow .15s ease;
}

.chat-float-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
    color: #fff;
}

.chat-zalo { background-color: #0068ff; }
.chat-line { background-color: #00c300; }
.chat-telegram { background-color: #229ED9; }

/* Utility Classes */
.bg-black {
    background-color: var(--primary-dark-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.text-cover {
    white-space: normal;
    line-height: 1.2;
}

label:has(input[required])::after,
label:has(textarea[required])::after,
label:has(select[required])::after {
    content: " *"; /* Add a space before the asterisk for better spacing */
    color: red;
    font-weight: bold; /* Optional: make it stand out more */
}

.fs-7 {
    font-size: 0.9rem !important;
}


.btn-square-24 {
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-sm {
    font-size: 12px;
}
