/* =========================================================
   HỆ THỐNG CSS DÙNG CHUNG - WEBSITE IN & BAO BÌ CHÂU THÁI SƠN
   ========================================================= */

/* 1. GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* 2. BIẾN THEME TOÀN CỤC */
:root {
    --brand-blue: #298a63;     
    --brand-primary: #298a63;    
    --brand-dark: #002e27;
    --brand-accent: #a17e5d; 
    --brand-yellow: #ffc107;   
    --brand-yellow-hover: #e0a800;
    --brand-red: #ed1c24;       
    --overlay-color: rgba(0, 0, 0, 0.75); 
    --glass-bg: rgba(255, 255, 255, 0.88);
    --text-dark: #404040;
    --soft-bg: #f4f8f6;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 45px rgba(0, 46, 39, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 3. CORE ELEMENTS & TYPOGRAPHY */
html, body { 
    overflow-x: hidden; 
    width: 100%; 
    scroll-behavior: smooth;
}

body {
    font-size: clamp(14px, 1rem, 16px);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    padding-top: 85px; 
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

p, .product-desc, .card-text, .fs-5, .fluid-p { 
    font-size: clamp(14px, 1vw, 16px) !important; 
}

/* UTILITIES */
.text-brand { color: var(--brand-blue) !important; }
.text-brand-primary { color: var(--brand-blue) !important; }
.text-brand-blue { color: var(--brand-blue) !important; }
.text-brand-dark { color: var(--brand-dark) !important; }
.text-brand-yellow { color: var(--brand-yellow) !important; }
.text-brand-accent { color: var(--brand-accent) !important; }
.text-logo-red { color: var(--brand-red) !important; }

.bg-brand { background-color: var(--brand-blue) !important; }
.bg-brand-primary { background-color: var(--brand-blue) !important; }
.bg-brand-blue { background-color: var(--brand-blue) !important; }
.bg-brand-dark { background-color: var(--brand-dark) !important; }
.bg-brand-accent { background-color: var(--brand-accent) !important; }
.bg-brand-yellow { background-color: var(--brand-yellow) !important; }

.text-shadow { text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.tracking-wider { letter-spacing: 2px; font-size: 0.85rem; }
.text-justify { text-align: justify; }
.fw-black { font-weight: 900 !important; }
.w-fit-content { width: fit-content; }
.object-fit-cover { object-fit: cover; }
.mix-blend-multiply { mix-blend-mode: multiply; }

.display-4 { font-size: clamp(2rem, 3.5vw, 3rem) !important; }
.display-5 { font-size: clamp(1.8rem, 2.5vw, 2.5rem) !important; }
.display-6 { font-size: clamp(1.5rem, 2vw, 2rem) !important; }
.fluid-h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important; line-height: 1.3 !important; }

/* Micro-interactions: fadeInUp for entries */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. NAVBAR & MENU STYLING */
.navbar { 
    padding: 12px 0; 
    background-color: rgba(255, 255, 255, 0.98); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.08); 
}
.px-nav {
    padding-left: 5% !important;
    padding-right: 5% !important;
}
.navbar-brand { 
    display: flex !important; 
    align-items: center !important; 
}
.navbar-brand img { 
    max-height: 50px; 
    width: auto; 
    margin-right: 15px !important; 
    vertical-align: middle !important; 
    padding: 0 !important; 
    transition: var(--transition-smooth); 
}
.brand-text-wrapper { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.nav-link { 
    color: #333; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 17px; 
    padding-left: 15px !important; 
    padding-right: 15px !important; 
    white-space: nowrap; 
    transition: color 0.3s; 
}
.nav-link:hover, .nav-link.active { 
    color: var(--brand-primary) !important; 
}

.dropdown-menu { 
    border-radius: 8px; 
    margin-top: 10px; 
    border: 1px solid rgba(41, 138, 99, 0.1) !important; 
}

.brand-name-text { 
    font-size: 1.75rem !important; 
    letter-spacing: 0.5px !important; 
    margin: 0 !important; 
    line-height: 1.1 !important; 
    font-weight: 900; 
    text-transform: uppercase; 
    white-space: nowrap; 
}
.brand-slogan-text { 
    font-size: 15px; 
    font-weight: 700; 
    margin-top: 4px; 
    letter-spacing: 0.5px; 
    margin-bottom: 0; 
    white-space: nowrap; 
}

@media (max-width: 1600px) {
    .brand-name-text { font-size: 1.35rem !important; }
    .brand-slogan-text { font-size: 12px !important; margin-top: 2px; }
    .navbar-brand img { max-height: 40px !important; margin-right: 10px !important; }
    .nav-link { font-size: 14px !important; padding-left: 8px !important; padding-right: 8px !important; }
    .px-nav { padding-left: 2% !important; padding-right: 2% !important; }
}

/* Khi menu collapse (dưới 1400px) - hamburger */
@media (max-width: 1399.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        margin-top: 15px;
        border: 1px solid rgba(41, 138, 99, 0.05);
    }
    .navbar-collapse .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f1f1f1;
    }
}

@media (max-width: 767.98px) {
    .brand-name-text { font-size: 1.15rem !important; }
    .brand-slogan-text { font-size: 10px !important; }
    .navbar-brand img { max-height: 35px !important; margin-right: 8px !important;}
}

@media (min-width: 1400px) {
    #mainMenu .dropdown-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        top: 100% !important;
    }
}

.btn-outline-brand { color: var(--brand-primary); border: 2px solid var(--brand-primary); transition: all 0.3s ease; }
.btn-outline-brand:hover { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* 5. HOMEPAGE SPECIFIC STYLES (index.php) */
#hero { 
    height: 100vh; 
    overflow: hidden; 
}
.hero-title { 
    font-size: clamp(3rem, 6vw, 5.5rem) !important; 
    letter-spacing: clamp(3px, 0.6vw, 8px); 
    color: var(--brand-yellow) !important; 
    line-height: 1.2; 
    animation: fadeInUp 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}
.hero-subtitle-text { 
    font-size: clamp(1.1rem, 1.5vw, 1.3rem) !important; 
    animation: fadeInUp 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s both;
}
.hero-custom-btn { 
    font-size: 1.1rem !important; 
    padding: 12px 35px !important; 
    background-color: #fff; 
    color: var(--brand-blue); 
    border: none; 
    transition: var(--transition-smooth); 
    animation: fadeInUp 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s both;
}
.hero-custom-btn:hover,
.btn-brand-custom:hover {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-blue) !important;
    border-color: var(--brand-yellow) !important;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.35) !important;
}

/* MARQUEE */
.marquee-wrapper { white-space: nowrap; display: flex; }
.marquee-track { animation: marquee 25s linear infinite; display: inline-flex; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ABOUT SECTION */
.about-floating-img { transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
#about:hover .about-floating-img { transform: translateY(-20px); }

/* NUMBER COUNTERS */
.counter-box { transition: var(--transition-smooth); }
.counter-box:hover { transform: translateY(-8px); }

/* BENTO BOX GRID (SẢN PHẨM) */
.bento-card { 
    cursor: pointer; 
    border: 1px solid rgba(41, 138, 99, 0.05); 
    border-radius: 24px !important;
    transition: var(--transition-smooth); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.03) !important;
}
.product-img { transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); object-fit: cover; }
.product-overlay { background: linear-gradient(to top, rgba(0, 46, 39, 0.95) 0%, rgba(41, 138, 99, 0.4) 60%, transparent 100%); transition: all 0.4s ease; }
.product-desc { max-height: 0; opacity: 0; overflow: hidden; transition: var(--transition-smooth); }

.bento-card:hover { 
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 46, 39, 0.16) !important; 
    border-color: rgba(41, 138, 99, 0.2);
}
.bento-card:hover .product-img { transform: scale(1.08); }
.bento-card:hover .product-desc { max-height: 50px; opacity: 1; margin-top: 10px; color: #ffffff !important; }

@media (min-width: 992px) {
    .bento-large { height: calc(100% - 0px); min-height: 480px; }
    .bento-horizontal { height: 230px; }
    .bento-small { height: 230px; }
    .about-text-box { margin-left: -12% !important; }
}
@media (max-width: 991.98px) {
    .bento-large, .bento-horizontal, .bento-small { aspect-ratio: 4/3; }
    .about-text-box { margin-top: -80px !important; }
}

/* STICKY SCROLL QUY TRÌNH (HOME) */
.timeline-step-card { transition: var(--transition-smooth); }
.timeline-step-card:hover { transform: translateY(-8px); border-color: var(--brand-blue) !important; box-shadow: 0 15px 35px rgba(41, 138, 99, 0.15) !important; }
.step-number { width: 70px; height: 70px; font-size: 28px; font-weight: 900; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 4px solid #ffffff; transition: all 0.4s ease; }
.timeline-step-card:hover .step-number { transform: scale(1.1); background-color: var(--brand-yellow) !important; color: var(--brand-blue) !important; border-color: var(--brand-yellow); }

/* Vòng số tỏa sáng */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.step-number-custom {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-blue) !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease-in-out; 
    cursor: pointer;
    animation: pulseGlow 2s infinite ease-in-out;
}
.step-number-custom:hover,
.timeline-step-card:hover .step-number-custom {
    background-color: var(--brand-blue) !important;
    color: #ffffff !important;
    border: none !important; 
    box-shadow: none !important; 
}
.timeline-step-card {
    border: 1px solid var(--brand-blue) !important;
    transition: all 0.3s ease-in-out;
    border-radius: 20px !important;
}
.timeline-step-card:hover {
    border: 1px solid #ffffff !important;
}

/* VIDEO TOUR PULSE BTN */
.pulse-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; z-index: -1; animation: pulse-video 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1); }
@keyframes pulse-video { 0% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; } }
.play-icon { transition: transform 0.3s ease; }
.play-btn:hover .play-icon { transform: scale(1.1); color: var(--brand-yellow) !important; }

/* GENERAL BUTTONS */
.btn-brand-custom-all { background-color: var(--brand-blue); color: #ffffff !important; border: none; transition: all 0.3s ease; }
.btn-brand-custom-all:hover { background-color: var(--brand-yellow); color: var(--brand-dark) !important; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important; }
.custom-hover-btn { background-color: var(--brand-blue); color: #ffffff !important; border: none; transition: all 0.3s ease; }
.custom-hover-btn:hover { background-color: var(--brand-yellow); color: var(--brand-dark) !important; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important; }

.partner-logo { max-height: 75px; object-fit: contain; transition: transform 0.3s ease, filter 0.3s ease; }
.partner-logo:hover { transform: scale(1.1); }
.cert-card { transition: all 0.4s ease; cursor: pointer; }
.cert-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(41, 138, 99, 0.2) !important; border-color: #298a63 !important; }
.cert-img-container { padding: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cert-img { width: 100%; height: auto; object-fit: contain; transition: transform 0.5s ease; }
.cert-card:hover .cert-img { transform: scale(1.05); }
.btn-view-all { display: inline-flex; align-items: center; background-color: #298a63; border: 2px solid #298a63; color: #ffffff; font-weight: 700; text-transform: uppercase; padding: 12px 35px; border-radius: 50px; text-decoration: none; transition: all 0.3s ease; font-size: 15px; }
.btn-view-all:hover { background-color: #ffc107; border-color: #ffc107; color: #298a63; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 46, 39, 0.3); }

/* FLOATING BUTTONS */
.floating-action-group { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.floating-action-item { position: relative; display: flex; align-items: center; flex-direction: row-reverse; }
.btn-float { position: relative; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 20; transition: transform 0.3s ease; text-decoration: none !important; }
.btn-float:hover { transform: scale(1.1) translateY(-5px); }
.btn-float img { width: 35px; height: 35px; object-fit: contain; z-index: 10; }
.btn-float i { font-size: 26px; color: #ffffff; z-index: 10; }
.btn-zalo { background-color: #0068ff; box-shadow: 0 10px 20px rgba(0, 104, 255, 0.3); }
.btn-phone { background-color: var(--brand-yellow); box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3); }
.btn-phone i { color: var(--brand-blue) !important; }
.hover-label { position: absolute; right: 30px; background-color: #ffffff; font-weight: 700; font-size: 1rem; padding: 10px 45px 10px 20px; border-radius: 50px 0 0 50px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); transition: all 0.4s; opacity: 0; transform: translateX(20px); z-index: 10; white-space: nowrap; display: none; }
@media (min-width: 768px) { .hover-label { display: block; } }
.label-zalo { color: #0068ff; } .label-phone { color: var(--brand-dark); }
.floating-action-item:hover .hover-label { opacity: 1; transform: translateX(0); }
.icon-ring { animation: ring-anim 1.5s infinite ease-in-out; }
@keyframes ring-anim { 0%, 50%, 100% { transform: rotate(0) scale(1); } 10%, 30% { transform: rotate(-20deg) scale(1.1); } 20%, 40% { transform: rotate(20deg) scale(1.1); } }
.wave-ping { position: absolute; inset: 0; border-radius: 50%; z-index: 5; }
.wave-zalo-fast { background-color: #0068ff; opacity: 0.25; animation: ping-fast 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }
.wave-zalo-slow { border: 4px solid rgba(0,104,255,0.3); opacity: 0.5; animation: ping-slow 2s linear infinite; }
.wave-phone-fast { background-color: var(--brand-yellow); opacity: 0.25; animation: ping-fast 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }
.wave-phone-slow { border: 4px solid rgba(255, 193, 7, 0.3); opacity: 0.5; animation: ping-slow 2s linear infinite; }
@keyframes ping-fast { 75%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ping-slow { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }

@media (max-width: 767.98px) {
    #hero { height: 75vh !important; min-height: 450px; }
    .hero-title { font-size: 2.2rem !important; letter-spacing: 1px !important; }
    .hero-subtitle-text { font-size: 1rem !important; }
    .hero-custom-btn { font-size: 1rem !important; padding: 12px 30px !important; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .mobile-heading { font-size: 1.6rem !important; line-height: 1.4 !important; text-align: center; }
    .partner-logo { max-height: 45px !important; margin: 0 auto; }
    .glass-panel { padding: 1.5rem !important; }
    .contact-form-wrapper { padding: 1.5rem !important; }
    .modern-contact-form .mb-3 { margin-bottom: 0.8rem !important; }
    .drop-zone-custom { padding: 1.2rem !important; }
    .text-justify { text-align: left !important; }
    .btn, .btn-view-all { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* 6. ABOUT US PAGE SPECIFIC STYLES (ve-chung-toi.php) */
.banner-split-text { background-color: var(--brand-primary); color: #ffffff; min-height: 400px; }
.banner-split-title { color: var(--brand-yellow); font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; margin-bottom: 1.5rem; line-height: 1.1; }
.banner-split-desc { font-size: 1.15rem; line-height: 1.8; color: rgba(255, 255, 255, 0.95); }

.section-dark-bg { background-color: #002e27; }

.stats-number-new { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 900; color: #fbc127; line-height: 1; margin-bottom: 0.5rem; }
.stat-text-new { color: var(--brand-accent, #f8c146); font-weight: 700; font-size: 1.1rem; }

@media (min-width: 768px) {
    .stat-item-new:not(:last-child)::after { content: ''; position: absolute; top: 20%; right: 0; height: 60%; width: 2px; background-color: rgba(255, 255, 255, 0.2); opacity: 0.85; }
}
@media (max-width: 767.98px) {
    .stat-item-new { margin-bottom: 2.5rem; }
    .stat-item-new:nth-child(odd)::after { content: ''; position: absolute; top: 20%; right: 0; height: 60%; width: 1px; background-color: rgba(255, 255, 255, 0.2); opacity: 0.5; }
}

.hover-lift { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease; }
.hover-lift:hover { transform: translateY(-8px); filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.3)); }

.vms-card { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; border-radius: 20px !important; }
.vms-card:hover { transform: translateY(-10px); }
.icon-glow-box { width: 65px; height: 65px; flex-shrink: 0; transition: all 0.4s ease; }
.vms-card:hover .icon-glow-box { transform: scale(1.1) rotate(10deg); }
.glass-tag { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s; }
.glass-tag:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-5px); }
.slogan-box { background-color: rgba(248, 193, 70, 0.1); border: 2px dashed var(--brand-accent); color: var(--brand-primary); }
.hover-bg-light:hover { background-color: rgba(0, 0, 0, 0.03); padding-left: 15px !important; }

.core-timeline-container { position: relative; padding-left: 30px; }
.timeline-line { position: absolute; left: 20px; top: 20px; bottom: 20px; width: 3px; background: linear-gradient(to bottom, var(--brand-accent), transparent); z-index: 0; opacity: 0.5; }
.core-value-row { position: relative; display: flex; align-items: center; padding: 20px; margin-bottom: 25px; border: 1px solid rgba(0,0,0,0.04); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); z-index: 1; border-radius: 16px !important; }
.core-number-box { position: absolute; left: -25px; top: 50%; transform: translateY(-50%); width: 55px; height: 55px; background: var(--brand-primary); color: #ffffff; font-size: 1.5rem; font-weight: 900; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.15); border: 4px solid #f8f9fa; transition: all 0.4s ease; }
.core-content { padding-left: 40px; }
.core-value-row:hover { transform: translateX(15px); box-shadow: 0 15px 35px rgba(41, 138, 99, 0.1) !important; border-color: rgba(248, 193, 70, 0.5); }
.core-value-row:hover .core-number-box { background: var(--brand-yellow); color: #fff; transform: translateY(-50%) scale(1.15); box-shadow: 0 0 20px rgba(248, 193, 70, 0.4); border-color: #fff; }
.core-value-row:hover .core-content h5 { color: var(--brand-yellow) !important; }

.animation-float { animation: float 4s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

@media (max-width: 767.98px) {
    .core-timeline-container { padding-left: 0; }
    .core-value-row { flex-direction: column; align-items: flex-start; padding-top: 40px; text-align: center; }
    .core-number-box { left: 50%; top: 0; transform: translate(-50%, -50%); }
    .core-content { padding-left: 0; }
    .core-value-row:hover { transform: translateY(-10px); }
    .core-value-row:hover .core-number-box { transform: translate(-50%, -50%) scale(1.15); }
    .image-backdrop { transform: translate(10px, 10px); }
}

.equip-card { background-color: #fff; border: 1px solid #eaeaea; height: 100%; transition: all 0.4s ease; border-radius: 12px; overflow: hidden; border-top: 4px solid transparent; }
.equip-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(41, 138, 99, 0.08); border-top: 4px solid var(--brand-accent); }
.equip-number { font-size: 5rem; font-weight: 900; color: rgba(41, 138, 99, 0.05); position: absolute; top: -10px; right: 15px; transition: all 0.4s ease; z-index: 0; }
.equip-card:hover .equip-number { color: rgba(161, 126, 93, 0.15); transform: scale(1.1); }
.equip-content { position: relative; z-index: 1; }

.cert-card { transition: all 0.4s ease; cursor: pointer; position: relative; }
.cert-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(41, 138, 99, 0.2) !important; border-color: var(--brand-primary) !important; }
.cert-img-container { width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.cert-img { width: 100%; height: auto; display: block; object-fit: contain; transition: transform 0.5s ease; }
.cert-card:hover .cert-img { transform: scale(1.05); }

.zoom-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(17, 17, 17, 0.4); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: all 0.3s ease; border-radius: inherit; }
.cert-card:hover .zoom-overlay { opacity: 1; }
.zoom-icon { background: rgba(255, 255, 255, 0.3); padding: 12px; border-radius: 50%; color: white; transform: scale(0.5); transition: transform 0.3s ease; }
.cert-card:hover .zoom-icon { transform: scale(1); }

#lightbox { display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 17, 17, 0.95); backdrop-filter: blur(5px); }
#lightbox.active { display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s ease; }
#lightbox img { max-width: 95%; max-height: 90vh; border-radius: 8px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* 7. PRODUCTS PAGE SPECIFIC STYLES (san-pham.php) */
.hero-products { padding: 140px 0 100px; position: relative; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0, 46, 39, 0.85) 0%, rgba(41, 138, 99, 0.6) 100%); z-index: 1; }

.product-card { border: 1px solid rgba(0,0,0,0.03); border-radius: 20px; overflow: hidden; transition: var(--transition-smooth); background-color: #fff; box-shadow: var(--shadow-soft); height: 100%; display: flex; flex-direction: column; position: relative; }
.product-img-wrapper { position: relative; width: 100%; padding-top: 75%; overflow: hidden; background-color: var(--soft-bg); }
.product-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }

.category-badge { position: absolute; top: 15px; left: 15px; background-color: var(--brand-yellow); color: #298a63; font-weight: 700; padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; z-index: 2; box-shadow: 0 4px 15px rgba(161, 126, 93, 0.3); text-transform: uppercase; letter-spacing: 0.5px; }
.category-badge.badge-primary { background-color: var(--brand-primary); color: #fff; }
.category-badge.badge-accent { background-color: var(--brand-accent); color: #fff; }

.read-more-link { transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 5px; }
.service-icon-box { width: 85px; height: 85px; background-color: rgba(41, 138, 99, 0.08); color: var(--brand-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 24px; transition: 0.4s ease; }

.btn-custom-primary {
    background-color: var(--brand-yellow) !important;
    color: var(--brand-primary) !important;
    border: none !important;
    transition: all 0.3s ease-in-out !important;
}
.btn-custom-primary:hover {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

@media (hover: hover) {
    .product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
    .product-card:hover .product-img { transform: scale(1.08); }
    .product-card:hover .read-more-link { color: var(--brand-accent) !important; gap: 10px; }
    .service-card:hover .service-icon-box { background-color: var(--brand-primary); color: #fff; transform: translateY(-5px); box-shadow: 0 15px 25px rgba(41, 138, 99, 0.2); }
}
.carousel-item img { height: 500px; object-fit: contain; background-color: #1a1a1a; }
@media (max-width: 768px) { .carousel-item img { height: 300px; } }

/* 8. PROCESS PAGE SPECIFIC STYLES (quy-trinh.php) */
.hero-process { padding: 140px 0 80px; position: relative; background: linear-gradient(135deg, var(--soft-bg) 0%, #e8f0ec 100%); }
.hero-img-wrap { position: relative; }
.hero-img-wrap::before { content: ''; position: absolute; top: 20px; left: 20px; width: 100%; height: 100%; border: 2px dashed var(--brand-accent); border-radius: 16px; transition: all 0.4s ease; z-index: -1; }
.hero-img-wrap:hover::before { transform: translate(-10px, -10px); }

.process-wrapper { padding: 90px 0; background-color: #ffffff; }
.step-card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0; 
    border-radius: 24px; 
    padding: 40px 30px;
    height: 100%; position: relative; overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 46, 39, 0.1) !important;
    border-bottom: 4px solid var(--brand-yellow);
}
.step-icon {
    width: 65px; height: 65px;
    background-color: rgba(255, 193, 7, 0.15);
    color: var(--brand-blue);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 20px;
    transition: all 0.4s ease;
}
.step-bg-num {
    position: absolute;
    bottom: -15px; right: 10px;
    font-size: 8rem; font-weight: 900;
    color: rgba(41, 138, 99, 0.05); 
    line-height: 1; z-index: 0;
    transition: all 0.4s ease;
}
.step-content { position: relative; z-index: 1; }

.qc-section { padding: 100px 0; background-color: #ffffff; }
.qc-nav-pills .nav-link {
    color: #6c757d;
    font-weight: 700; font-size: 1.1rem;
    text-align: left; padding: 16px 25px;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1.5px solid #eaeaea;
    background: #f8f9fa;
    transition: all 0.3s;
    white-space: normal; 
    line-height: 1.5;
}
.qc-nav-pills .nav-link:hover { 
    background-color: #f4f8f6; 
    border-color: rgba(41, 138, 99, 0.3); 
    color: var(--brand-blue); 
}
.qc-nav-pills .nav-link.active {
    color: var(--brand-blue) !important; 
    background-color: var(--brand-yellow) !important; 
    border-color: var(--brand-yellow) !important;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3); 
}
.qc-list-item { margin-bottom: 15px; position: relative; padding-left: 32px; font-size: 1.05rem; }
.qc-list-item i { position: absolute; left: 0; top: 5px; color: var(--brand-yellow); font-size: 1.1rem; }

.cert-grid-section { padding: 80px 0 100px; background-color: var(--soft-bg); }
.cert-card-grid {
    background: #fff; border-radius: 16px; padding: 25px;
    height: 100%; border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .hero-process { padding-top: 100px; padding-bottom: 50px; }
    .process-wrapper, .qc-section { padding: 70px 0; }
    .hero-img-wrap::before { transform: translate(10px, 10px); }
}
@media (max-width: 767px) {
    .hero-process { padding-top: 90px; padding-bottom: 40px; }
    .process-wrapper, .qc-section { padding: 50px 0; }
    .display-5 { font-size: 2rem !important; }
    .display-6 { font-size: 1.75rem !important; }
    .step-bg-num { font-size: 5rem; bottom: -5px; right: 5px; }
    .step-card { padding: 25px 20px; }
    .qc-nav-pills { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
    .qc-nav-pills .nav-link { flex: 1 1 45%; text-align: center; padding: 12px; font-size: 0.95rem; margin-bottom: 0; }
}

/* 9. CONTACT PAGE SPECIFIC STYLES (lien-he.php) */
.hero-contact { background: linear-gradient(rgba(41, 138, 99, 0.6), rgba(0, 46, 39, 0.85)), url('assets/images/chung/banner-trang-chu.jpg') center/cover no-repeat; padding: 130px 0 100px; margin-top: 60px; box-shadow: inset 0 -10px 20px rgba(0,0,0,0.05); }
.contact-info-wrap { background-color: #ffffff; padding: 45px 40px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 64, 133, 0.05); border: 1px solid #f0f0f0; height: 100%; transition: all 0.3s ease; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px dashed #eaeaea; }
.info-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.info-icon { width: 60px; height: 60px; background-color: rgba(255, 193, 7, 0.15); color: var(--brand-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; margin-right: 20px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.info-content h5 { font-weight: 800; color: var(--brand-blue); margin-bottom: 8px; font-size: 1.15rem; }
.info-content p { margin-bottom: 0; color: #555; }
.info-content a { color: #333; text-decoration: none; transition: color 0.3s; font-weight: 700; font-size: 1.05rem; }

@media (hover: hover) {
    .info-item:hover .info-icon { background-color: var(--brand-blue); color: var(--brand-yellow); transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,64,133,0.15); }
    .info-content a:hover { color: var(--brand-yellow-hover); }
    .contact-info-wrap:hover { box-shadow: 0 15px 50px rgba(0, 64, 133, 0.08); transform: translateY(-3px); }
    .contact-form-wrap:hover { box-shadow: 0 15px 50px rgba(0, 64, 133, 0.08); transform: translateY(-3px); }
    .btn-custom-yellow:hover { background-color: var(--brand-blue); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 64, 133, 0.25); }
    .map-container:hover { transform: translateY(-5px); }
    .floating-phone-solid:hover { background-color: var(--brand-blue); color: #298a63; transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0, 45, 90, 0.3); text-decoration: none; }
    .floating-phone-solid:hover .icon-wrap { color: var(--brand-blue); transform: scale(1.1); }
}

.contact-form-wrap { background-color: #ffffff; padding: 50px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 64, 133, 0.05); border: 1px solid #f0f0f0; height: 100%; transition: all 0.3s ease; }
.form-title { font-size: 2rem; font-weight: 900; color: var(--brand-blue); line-height: 1.3; margin-bottom: 15px; text-align: center; }    

/* Interactive inputs with nhấc nhẹ */
.form-control-custom { 
    border: 1px solid #e2e8f0; 
    border-radius: 14px; 
    padding: 14px 20px; 
    background-color: #f7fafc; 
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); 
    margin-bottom: 20px; 
    font-size: 1rem; 
}
.form-control-custom:focus { 
    box-shadow: 0 10px 20px rgba(41, 138, 99, 0.08) !important; 
    border-color: var(--brand-blue) !important; 
    background-color: #fff; 
    transform: translateY(-3px);
    outline: none; 
}

.btn-custom-yellow { 
    background-color: var(--brand-yellow); 
    color: var(--brand-blue); 
    font-weight: 800; 
    letter-spacing: 0.5px; 
    border: none; 
    padding: 12px 30px; 
    border-radius: 50px; 
    transition: var(--transition-smooth); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
}
.btn-custom-yellow:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.3) !important;
}

.map-container { width: 100%; height: 500px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.06); border: 1px solid #eaeaea; transition: transform 0.3s ease; }
.map-container iframe { width: 100% !important; height: 100% !important; border: 0; }
.floating-phone-solid { position: fixed; bottom: 30px; right: 30px; background-color: var(--brand-yellow); color: var(--brand-blue); display: flex; align-items: center; border-radius: 50px; padding: 6px 25px 6px 6px; text-decoration: none; box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4); z-index: 9999; transition: all 0.3s ease-in-out; animation: breathing-pulse-yellow 2s infinite ease-in-out; }
@keyframes breathing-pulse-yellow { 0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6); } 70% { box-shadow: 0 0 0 15px rgba(255, 193, 7, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); } }
.floating-phone-solid .icon-wrap { background-color: #298a63; color: var(--brand-yellow); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-right: 12px; transition: all 0.3s ease; }
.floating-phone-solid .phone-number { font-weight: 800; font-size: 16px; margin-right: 5px; }

@media (max-width: 991px) {
    .hero-contact { padding: 110px 0 80px; margin-top: 55px; }
    .contact-form-wrap { padding: 40px; }
    .map-container { height: 400px; }
}

@media (max-width: 767px) {
    .hero-contact { padding: 90px 0 60px; margin-top: 50px; }
    .hero-contact h1 { font-size: 2.2rem !important; }
    .py-5[style*="margin-top: -60px"] { margin-top: -40px !important; }
    
    .contact-info-wrap { padding: 30px 25px; }
    .info-item { flex-direction: column; align-items: center; text-align: center; padding-bottom: 25px; margin-bottom: 25px; }
    .info-icon { margin-right: 0; margin-bottom: 15px; }
    .map-container { height: 300px; border-radius: 12px; }
    .form-title { font-size: 1.6rem; }
    .floating-phone-solid { bottom: 20px; right: 20px; padding: 4px 15px 4px 4px; }
    .floating-phone-solid .icon-wrap { width: 38px; height: 38px; font-size: 18px; margin-right: 8px; }
    .floating-phone-solid .phone-number { font-size: 14px; }

    .contact-form-wrap { padding: 1.25rem !important; }
}

/* 10. GLASS PANEL & HERO HEADINGS RESTORATION */
.glass-panel { 
    background: var(--glass-bg) !important; 
    backdrop-filter: blur(25px) !important; 
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important; 
    border-radius: 32px !important;
    box-shadow: 0 20px 50px rgba(0, 46, 39, 0.12) !important;
    transition: var(--transition-smooth);
}

/* Ensure headings inside text-white sections are white */
.hero-products h1,
.hero-contact h1 {
    color: #ffffff !important;
}

/* Contact section phone icon styling */
.contact-icon-box {
    width: 55px !important;
    height: 55px !important;
    background-color: var(--brand-yellow) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.contact-icon-box i {
    color: var(--brand-blue) !important;
    font-size: 22px !important;
}

