/* ==========================================================
   1. VARIABLES & RESET
   ========================================================== */
:root {
    --primary-color: #e89f38; /* Màu cam vàng chủ đạo */
    --text-color: #333333;
    --bg-overlay: rgba(13, 17, 23, 0.85); /* Màu nền tối che phủ ảnh background */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--text-color);
    background-color: #f9f9f9;
    overflow-x: hidden; 
}

/* ==========================================================
   2. MAIN LAYOUT
   ========================================================== */
.content-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 30px 20px 30px; /* Tăng padding trên để tránh menu che */
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================
   3. ABOUT PAGE STYLES
   ========================================================== */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: var(--text-color);
}

.page-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
}

.page-title span, 
.section-title span {
    color: var(--primary-color);
    font-style: italic;
}

/* --- History Section --- */
.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 100px;
}

.history-item {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    aspect-ratio: 1 / 1; /* Ép thẻ hiển thị thành hình vuông */
    overflow-y: auto; /* Thêm thanh cuộn dọc khi chữ dài quá khung */
    scrollbar-width: none; /* Ẩn thanh cuộn trên trình duyệt Firefox */
}

/* Ẩn thanh cuộn trên các trình duyệt Chrome, Safari, Edge */
.history-item::-webkit-scrollbar {
    display: none;
}

.history-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.history-item h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.history-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* --- Milestones Section --- */
.milestones-section {
    margin-bottom: 100px;
}

.milestones-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #fff;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* --- Founders Section --- */
.founders-section {
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.founders-intro {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.founder-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.founder-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.founder-img {
    width: 100%;
    height: 350px; /* Chiều cao ảnh chân dung */
    overflow: hidden;
}

.founder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.founder-card:hover .founder-img img {
    transform: scale(1.1);
}

.founder-info {
    padding: 25px;
    text-align: left;
}

.founder-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.founder-info .role {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.founder-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* ==========================================================
   4. MEDIA QUERIES (RESPONSIVE)
   ========================================================== */
@media (max-width: 768px) {
    .about-container {
        padding: 30px 15px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .history-content {
        grid-template-columns: 1fr 1fr; /* Chuyển thành 2 cột ngang nhau */
        gap: 15px; /* Thu nhỏ khoảng cách giữa 2 ô */
        margin-bottom: 50px;
        max-width: 100%; /* Bỏ giới hạn chiều rộng để 2 thẻ có đủ không gian hiển thị */
        margin: 0; 
    }

    .history-item {
        padding: 15px; /* Giảm padding để tiết kiệm diện tích */
    }

    .history-item h3 {
        font-size: 1.2rem; /* Thu nhỏ tiêu đề cho vừa khung */
        margin-bottom: 10px;
    }

    .history-item p {
        font-size: 0.85rem; /* Thu nhỏ văn bản mô tả để dễ đọc, không bị rớt chữ quá nhiều */
    }

    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 10px !important;
        right: auto;
    }

    .timeline-content {
        border-left: 4px solid var(--primary-color) !important;
        border-right: none !important;
    }

    .founder-img {
        height: 280px; /* Giảm chiều cao ảnh để trông nhỏ gọn hơn trên điện thoại */
    }

    .founders-grid {
        grid-template-columns: 1fr; /* Cổ đông xếp dọc 1 cột */
        max-width: 340px; /* Thu nhỏ bề ngang của các thẻ để ảnh không bị phóng to */
        margin: 0 auto; /* Căn giữa danh sách trên màn hình */
    }
}