/* Static Page Styles */

/* Static Page Section */
.static-page-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.static-page-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Image */
.static-page-image {
    text-align: center;
    margin-bottom: 40px;
}

.static-page-image img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

/* Page Header */
.static-page-header {
    text-align: center;
    margin-bottom: 50px;
}

.static-page-header h1 {
    font-size: 3rem;
    color: #2c5aa0;
    margin-bottom: 20px;
    font-weight: 700;
}

.static-page-header .header-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #2c5aa0 0%, #ff6b35 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* Main Content */
.static-page-content {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    padding: 50px;
    margin-bottom: 0;
}

.static-page-content-inner {
    line-height: 1.9;
    color: #333;
    font-size: 1.1rem;
    text-align: justify;
}

/* Content Elements */
.static-page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.static-page-content h1,
.static-page-content h2,
.static-page-content h3 {
    color: #2c5aa0;
}

.static-page-content p {
    margin-bottom: 1.5rem;
}

.static-page-content ul,
.static-page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.static-page-content li {
    margin-bottom: 0.5rem;
}

.static-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.static-page-content table th,
.static-page-content table td {
    padding: 12px;
    border: 1px solid #dee2e6;
}

.static-page-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Trang Giới Thiệu - 2 ảnh nền tỉ lệ 20:80 */
.gioi-thieu-page {
    position: relative;
    padding: 0 !important;
    background: transparent !important;
}

.gioi-thieu-page .background-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%; /* 2 phần trong tổng 10 phần */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.gioi-thieu-page .background-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%; /* 8 phần trong tổng 10 phần */
    background: linear-gradient(#cae2f7, #cae2f7 40%, #2680d6 70%, #2781d7);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.gioi-thieu-page .container {
    position: relative;
    z-index: 1;
    padding-top: 80px !important;
    padding-bottom: 0 !important;
}

/* Tiêu đề trang Giới thiệu màu trắng */
.gioi-thieu-page .container h1 {
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .static-page-section .container {
        padding: 0 15px;
    }
    
    .static-page-header h1 {
        font-size: 2rem;
    }
    
    .static-page-content {
        padding: 30px 20px;
    }
    
    .gioi-thieu-page .container {
        padding-top: 220px !important; /* Tăng padding để phần nội dung nằm trong background-bottom, không nằm trên background-top */
        padding-bottom: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    /* Trên mobile/tablet: chỉ hiển thị ảnh nền trên trong phạm vi tiêu đề */
    /* Điều chỉnh background-top để chỉ bao phủ phần tiêu đề */
    .gioi-thieu-page .background-top {
        height: 200px !important; /* Chiều cao cố định đủ cho tiêu đề (80px padding + ~120px tiêu đề) */
        max-height: 200px !important;
        bottom: auto !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
    }
    
    /* Điều chỉnh background-bottom để nối liền với background-top, không có khoảng cách */
    .gioi-thieu-page .background-bottom {
        top: 200px !important; /* Bắt đầu ngay sau background-top */
        bottom: 0 !important;
        height: calc(100% - 200px) !important; /* Chiều cao = 100% - chiều cao background-top */
        position: absolute !important;
        left: 0 !important;
        width: 100% !important;
    }
    
    /* Đảm bảo container có background trắng cho phần nội dung */
    .gioi-thieu-page .container > div:last-child {
        background: #ffffff !important;
        border-radius: 15px !important;
        box-shadow: 0 5px 25px rgba(0,0,0,0.1) !important;
    }
    
    /* Đảm bảo tiêu đề có màu trắng trên mobile */
    .gioi-thieu-page .container h1 {
        color: #ffffff !important;
    }
}
