﻿/* Variables */
:root {
    --primary-color: #0f75bc; /* Logo blue */
    --primary-light: #2792dd;
    --primary-dark: #0b5e95;
    --secondary-color: #e6f2ff;
    --accent-color: #ed1c24;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --medium-gray: #dddddd;
    --dark-gray: #555555;
    --success: #28a745;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    background-color: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-dark);
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    max-height: 50px;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    color: var(--primary-color);
    text-transform: lowercase;
}

.brand-accent {
    color: var(--accent-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 500;
    padding: 5px;
    position: relative;
}

nav ul li a:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

nav ul li a:hover:before {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 117, 188, 0.82), rgba(15, 117, 188, 0.82)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 60px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background-color: var(--accent-color);
    padding: 12px 30px;
    font-size: 1.1rem;
}

.hero .btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Accreditation Highlight */
.accreditation-highlight {
    background-color: var(--white);
    padding: 70px 0;
}

.accreditation-content {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 35px;
    align-items: center;
}

.accreditation-image-wrap {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 12px;
    box-shadow: var(--box-shadow);
}

.accreditation-image {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.accreditation-text h2 {
    text-align: left;
    margin-bottom: 18px;
}

.accreditation-text h2:after {
    left: 0;
    transform: none;
}

.accreditation-text p {
    margin-bottom: 16px;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card .btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
}

.service-card .btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Certifications Section */
.certifications {
    background-color: var(--white);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.certification-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.certification-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.certification-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.certification-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.certification-proof-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--medium-gray);
    margin-bottom: 16px;
}

.certification-card .btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
}

.certification-card .btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* About Section */
.about {
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.about-text strong {
    color: var(--primary-color);
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    width: 100%;
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.3rem;
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h4 {
    color: var(--white);
    margin-bottom: 5px;
}

/* Contact Form Styles */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .col {
    flex: 1;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(15, 117, 188, 0.2);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo-img {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--secondary-color);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h4:after,
.footer-services h4:after,
.footer-contact h4:after,
.footer-social h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.footer-contact p i {
    margin-right: 10px;
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.bct-logo img {
    max-height: 40px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Success Message */
.success-message {
    background-color: var(--success);
    color: var(--white);
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.success-message i {
    margin-right: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }

    .accreditation-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        grid-row: 1;
        margin-bottom: 30px;
    }
    
    .about-text {
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        padding: 130px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .info-item {
        flex-direction: column;
    }
    
    .info-item i {
        margin-bottom: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* 
All Zalo custom styles have been removed.
We are now using the default Zalo widget without customization.
*/

/* Add pulse effect to standard Zalo button */
div[data-tooltip-id="zalo-mesh-tooltip"] {
    position: relative !important;
    overflow: visible !important;
    animation: zalo-shake 3s infinite ease-in-out !important;
    transition: transform 0.3s ease !important;
}

div[data-tooltip-id="zalo-mesh-tooltip"]:hover {
    transform: scale(1.1) !important;
}

div[data-tooltip-id="zalo-mesh-tooltip"]::before,
div[data-tooltip-id="zalo-mesh-tooltip"]::after {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    background-color: rgba(15, 117, 188, 0.6) !important;
    z-index: -1 !important;
    animation: zalo-pulse 2s infinite !important;
    left: 0 !important;
    top: 0 !important;
}

div[data-tooltip-id="zalo-mesh-tooltip"]::after {
    animation-delay: 0.5s !important;
    background-color: rgba(15, 117, 188, 0.4) !important;
}

div[data-tooltip-id="zalo-mesh-tooltip"] > div {
    background-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(15, 117, 188, 0.7) !important;
}

/* Make the Zalo button a bit larger and more attractive */
div[data-tooltip-id="zalo-mesh-tooltip"] {
    transform: scale(1.15) !important;
    bottom: 24px !important;
    right: 24px !important;
}

@keyframes zalo-pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes zalo-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-5deg);
    }
    20% {
        transform: rotate(5deg);
    }
    30% {
        transform: rotate(-3deg);
    }
    40% {
        transform: rotate(3deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

/* Zalo Widget Styles */
.zalo-chat-widget {
    bottom: 100px !important;
    right: 25px !important;
}

/* Ẩn iframe mặc định của Zalo */
iframe[id^="zalo-vapp"] {
    bottom: 100px !important;
    right: 25px !important;
}