/* public/css/about.css */

/* Giới thiệu */
.intro {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.intro h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #361a1d;
  animation: fadeIn 1s ease;
}
.intro p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  animation: fadeIn 1.5s ease;
}

/* Timeline + Growth */
.timeline-container {
  max-width: 900px;
  margin: 60px auto;
}
#growthChart {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  animation: fadeIn 1.2s ease;
}
.timeline {
  position: relative;
  margin: 40px auto;
  padding-left: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  width: 4px;
  height: 100%;
  background: #4CAF50;
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 50px;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 12px;
  background: #4CAF50;
  border: 3px solid #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 0;
  transform: translateY(5px);
  box-shadow: 0 0 0 2px #4CAF50;
}
.timeline-item h3 {
  margin: 0;
  font-size: 18px;
  color: #1a2a36;
}
.timeline-item p {
  margin: 5px 0 0;
  font-size: 15px;
  color: #555;
}

/* Cây sơ đồ */
.tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}
.person {
  text-align: center;
  margin: 20px 0;
  position: relative;
  cursor: pointer;
}
.person img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4CAF50;
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  animation: fadeSlideIn 0.8s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.person img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.name { margin-top: 8px; font-weight: bold; color: #2c3e50; }
.title { font-size: 14px; color: #666; margin-top: 4px; }
.line-down {
  width: 2px;
  height: 30px;
  background: #4CAF50;
  margin: 0 auto;
  opacity: 0;
  animation: growDown 0.8s ease forwards;
}
.children {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 20px;
}

/* Giải thưởng */
.awards {
  max-width: 1000px;
  margin: 60px auto;
  text-align: center;
}
.awards h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #1a2a36;
  animation: fadeIn 1s ease;
}
.award-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.award-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}
.award-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.award-card img {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
}
.award-card h3 { font-size: 18px; margin-bottom: 8px; color: #2c3e50; }
.award-card p { font-size: 14px; color: #666; margin: 0; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: scaleIn 0.4s ease;
}
.modal-content img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  border: 3px solid #4CAF50;
  object-fit: cover;
  margin-bottom: 15px;
}
.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

/* Animation */
@keyframes growDown { 0% { height: 0; opacity: 0; } 100% { height: 30px; opacity: 1; } }
@keyframes fadeSlideIn { 0% { opacity: 0; transform: translateY(-20px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        /* ---------------------------------------------------------------------- */
        /* CSS cho Video Banner (thay thế page-header) */
        /* ---------------------------------------------------------------------- */
        .video-page-header {
            position: relative;
            width: 100%;
            min-height: 450px;
            overflow: hidden;
        }

        .video-page-header video {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            z-index: 1;
            transform: translateX(-50%) translateY(-50%);
            object-fit: cover;
        }

        .video-page-header .overlay {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            z-index: 2;
            background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
        }

        .video-page-header .container {
            position: relative;
            z-index: 3;
        }

        /* ---------------------------------------------------------------------- */
        /* CSS Tùy chỉnh cho Sơ đồ tổ chức (Responsive) */
        /* ---------------------------------------------------------------------- */
        .org-chart-container {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Card cơ bản */
        .org-chart-box {
            background-color: #fff;

            border-radius: 12px;
            padding: 20px;
            text-align: center;
            margin: 15px 0;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
            width: 100%;
            max-width: 350px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        /* Giám đốc (CEO) - Trên desktop sẽ có chiều rộng lớn hơn */
        .org-chart-ceo-box {
            max-width: 768px;
        }

        .org-chart-box:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        .org-chart-title {
            font-weight: bold;
            color: #007bff;
            margin-bottom: 5px;
            font-size: 1.25rem;
        }
        .org-chart-subtitle {
            color: #6c757d;
            font-size: 1rem;
            margin-bottom: 10px;
        }
        .org-chart-divider, .org-chart-branch, .org-chart-line-h, .org-chart-v-connector {
            display: none !important;
        }

        .org-chart-p-info {
            font-size: 0.9rem;
            color: #495057;
            margin-top: 10px;
            line-height: 1.4;
        }
        .org-chart-img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            margin-bottom: 10px;
            border: 3px solid #007bff;
            box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
        }

        /* Cải thiện bố cục trên Desktop/Tablet */
        @media (min-width: 577px) {
            .org-chart-container {
                width: 100%;
                max-width: 768px;
            }
            .org-chart-ceo-box {
                width: 100%;
                max-width: 768px;
            }
            .row.g-4.org-deputy-row {
                width: 100%;
                max-width: 768px;
            }
            .row.g-4.org-deputy-row .col-sm-6 .org-chart-box {
                max-width: 100%;
            }
        }

        /* Cải thiện bố cục trên Mobile */
        @media (max-width: 576px) {
            .org-chart-box {
                max-width: 100% !important;
                margin: 10px 0;
            }
            .org-chart-ceo-box {
                max-width: 100% !important;
            }
            
            /* Đảm bảo cột chứa Phó Giám đốc chiếm 100% chiều ngang trên mobile */
            .row.g-4.org-deputy-row .col-12 {
                flex: 0 0 100%;
                max-width: 100%;
            }

            .org-chart-img {
                width: 60px;
                height: 60px;
            }
            .org-chart-title {
                font-size: 1.1rem;
            }
            .org-chart-subtitle {
                font-size: 0.9rem;
            }
            
            /* Thẻ Thành tựu (Awards) */
            .award-card-col { 
                width: 100%;
            }
        }
        
        /* Cải thiện hiển thị trên màn hình rất nhỏ */
        @media (max-width: 400px) {
            .video-page-header h1.display-3 {
                font-size: 2.5rem !important;
            }
        }

        /* Đảm bảo các card Thành tựu chiếm 100% trên Mobile (từ Bootstrap default đã là col-12) */
        @media (max-width: 767.98px) {
            .award-card-col {
                width: 100%;
            }
            
            /* PHẦN BỔ SUNG: Giảm font chữ cho bảng Thiết bị Kỹ thuật trên Mobile */
            .table-responsive .table {
                font-size: 0.8rem; /* Giảm font chữ tổng thể của bảng */
            }
            .table-responsive .table th, 
            .table-responsive .table td {
                padding: 0.5rem; /* Giảm padding để tiết kiệm không gian */
            }
            .table-responsive .table th:first-child, 
            .table-responsive .table td:first-child {
                width: 30px; /* Giảm chiều rộng cột STT */
            }
        }

        /* CSS MỚI CHO PHẦN TẦM NHÌN/SỨ MỆNH KHÔNG DÙNG CARD */
        .vision-mission-section {
            background-color: #f8f9fa; /* Màu nền nhẹ nhàng cho khối */
            padding: 40px;
    
            margin-bottom: 30px;
        }
        .brand-message-box {
    background-image: url("/storage/img/nền.png"); /* 🔹 đổi ảnh nền ở đây */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--bs-primary);
    position: relative;
    overflow: hidden;
}

/* Hiệu ứng làm mờ nhẹ hoặc phủ lớp tối giúp chữ dễ đọc */
.brand-message-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* 🔹 độ tối có thể chỉnh lại */
    z-index: 0;
    border-radius: inherit;
}

.brand-message-box > * {
    position: relative;
    z-index: 1;
}

.brand-logo {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
}
.org-chart-title {
    color: #00c853; /* xanh lá tươi */
    font-weight: 600;
}


/* Responsive: logo nhỏ lại trên mobile */
@media (max-width: 767.98px) {
    .brand-logo {
        max-width: 90px;
    }
    .brand-message-box {
        padding: 1.5rem;
    }
}
/* ✅ Cho phép tooltip thoát khỏi giới hạn row/col */
.row.g-4 {
    position: relative;
    overflow: visible;
}

.row.g-4 > div {
    overflow: visible !important;
}

/* ✅ Project card cơ bản */
.project-card {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 20;
}

/* ✅ Tooltip mặc định (desktop) */
.project-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 15px);
    background: #fff;
    padding: 20px 24px;
    width: 320px; /* to hơn, nhìn chuyên nghiệp */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 14px;
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    transition: all 0.3s ease;
}

/* ✅ Tooltip hiện khi hover */
.project-card:hover .project-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 5px);
}

/* ✅ Tooltip nội dung */
.project-tooltip h6 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.project-tooltip p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* ✅ Mũi tên hướng lên card */
.project-tooltip::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05));
}

/* 🔹 Responsive (Mobile) */
@media (max-width: 767.98px) {
    .project-card {
        flex-direction: column;
        align-items: flex-start;
        transform: none !important;
        box-shadow: none !important;
        z-index: 1 !important;
    }

    .project-tooltip {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        border: 1px solid rgba(0,0,0,0.1);
        border-left: 3px solid var(--bs-primary);
        border-radius: 6px;
        padding: 12px 14px;
    }

    .project-tooltip::after {
        display: none;
    }

    .project-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}
/* ==================== VISION & MISSION SECTION ==================== */
.vision-mission-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 40px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-mission-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Hiệu ứng viền sáng nhẹ */
.vision-mission-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px solid transparent;
    border-radius: 16px;
    background: linear-gradient(45deg, #b9ffd6, #a2cfff, #f7b3b3) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vision-mission-section:hover::before {
    opacity: 1;
}

/* ==================== BRAND MESSAGE BOX ==================== */
.brand-message-box {
    background-image: url("/storage/img/nền.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.brand-message-box:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Lớp phủ gradient + hiệu ứng kính mờ (glassmorphism nhẹ) */
.brand-message-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 200, 83, 0.2) 100%
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 0;
    border-radius: inherit;
}

/* Đảm bảo nội dung nổi lên trên */
.brand-message-box > * {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==================== BRAND LOGO ==================== */
.brand-logo {
    max-width: 140px;
    height: auto;
    margin: 0 auto;
    padding: 12px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px #ffffff;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.1) rotate(5deg);
   
}

/* ==================== ORG CHART TITLE ==================== */
.org-chart-title {
    color: #00c853;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.org-chart-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00c853, #64dd17);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .vision-mission-section {
        padding: 40px 20px;
        border-radius: 12px;
    }
    
    .brand-message-box {
        min-height: 200px;
        border-radius: 16px;
    }
    
    .brand-logo {
        max-width: 100px;
    }
    
    .org-chart-title {
        font-size: 1.5rem;
    }
}

/* NỀN TƯƠI CHỦ ĐẠO */
.brand-message-box {
    background: #00bfa5 !important; /* XANH NGỌC TƯƠI */
    background-image: none !important;
    color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 191, 165, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* Hiệu ứng hover "nổi" */
.vision-mission-section:hover,
.brand-message-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 191, 165, 0.4);
}

/* Viền gradient tươi khi hover */
.vision-mission-section::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 3px;

    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#51f31b 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.vision-mission-section:hover::before {
    opacity: 1;
}/* Luôn hiển thị thông tin ở mobile (không cần hover) */
@media (max-width: 768px) {
    .project-item .project-info {
        opacity: 1 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
    }
}
/* ==== STYLE CHUNG ==== */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-tooltip {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s ease;
    z-index: 10;
}

/* ==== HIỂN THỊ TOOLTIP KHI HOVER (PC) ==== */
.project-card:hover .project-tooltip {
    top: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==== MOBILE: LUÔN HIỂN THỊ TOOLTIP ==== */
@media (max-width: 768px) {
    .project-tooltip {
        position: static; /* bỏ absolute để nó nằm ngay dưới nội dung */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        margin-top: 10px;
    }

    /* Thêm khoảng cách giữa các card cho dễ nhìn */
    .project-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
