
/* =========================================
   MAYTECH PORTFOLIO LAYOUT
   ========================================= */

.mt-portfolio-page {
    width: 100%;
    /*max-width: 1200px;*/
    margin: 0 auto;
    /*padding: 24px;*/
    box-sizing: border-box;
}

.mt-portfolio-page *,
.mt-portfolio-page *::before,
.mt-portfolio-page *::after {
    box-sizing: border-box;
}

.mt-portfolio-layout {
    display: flex;
    flex-direction: column;
    /*gap: 14px;*/
    width: 100%;
}

/* Hàng 1: Nội dung 1 (2/3) + 3 ảnh (1/3) */

.mt-pf-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    align-items: stretch;
    min-width: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.mt-pf-main-content {
    min-width: 0;
    min-height: 300px;
    padding: 0px 10px;
    /*border: 1px solid #39ad39;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-wrap: anywhere;
}

.mt-pf-main-content > :first-child,
.mt-pf-text > :first-child {
    margin-top: 0;
}

.mt-pf-main-content > :last-child,
.mt-pf-text > :last-child {
    margin-bottom: 0;
}

.mt-pf-images-top,
.mt-pf-images-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.mt-pf-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 8px;
    min-width: 0;
    /*border: 1px solid #39ad39;*/
    text-align: center;
}

.mt-pf-figure img {
    display: block;
    width: 100%;
    height: auto;
    /*max-height: 240px;*/
    object-fit: contain;
}

.mt-pf-figure figcaption {
    width: 100%;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* Hàng 2: Ảnh 4-6 (1/3) + khu nội dung (2/3) */

.mt-pf-middle {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 14px;
    align-items: stretch;
    min-width: 0;
    max-width:1200px;
    margin: 0 auto;
}

.mt-pf-images-bottom .mt-pf-figure {
    flex: 1;
}

.mt-pf-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    /*border: 1px solid #39ad39;*/
}

.mt-pf-text {
    min-width: 0;
    padding: 12px;
    /*border: 1px solid #39ad39;*/
    overflow-wrap: anywhere;
}

.mt-pf-text-2 {
    min-height: 65px;
}

.mt-pf-text-3 {
    min-height: 65px;
}

/* Ba icon nằm trên một hàng */

.mt-pf-icons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mt-pf-icon-item {
    min-width: 0;
    min-height: 90px;
    padding: 10px 6px;
    /*border: 1px solid #39ad39;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    overflow-wrap: anywhere;
}

.mt-pf-icon {
    
    width:56px;
    height:56px;
    justify-content: center;
    align-items: center;
    background-color: var(--mt-primary);
    font-size: 22px;
    padding: 10px;
    border-radius: 100% 100% 100% 100%;
    color: white;
    
    
}

.mt-pf-icon-text {
    font-size: 13px;
    line-height: 1.45;
}

/* 1. Ẩn dấu chấm tròn mặc định của danh sách */
.mt-pf-text-3 ul {
    list-style-type: none;
    padding-left: 0; /* Xóa khoảng trống mặc định bên trái */
}

/* 2. Tạo khoảng cách giữa các dòng */
.mt-pf-text-3 li {
    position: relative;
    padding-left: 25px; /* Tạo khoảng trống để chèn dấu tích */
    margin-bottom: 8px; /* Khoảng cách giữa các dòng (tùy chỉnh) */
}

/* 3. Chèn dấu tích (checkmark) bằng CSS */
.mt-pf-text-3 li::before {
    content: "✓"; /* Ký tự dấu tích */
    position: absolute;
    left: 0;
    top: 0;
    color: var(--mt-primary); /* Màu xanh lá (Bạn có thể đổi màu tùy ý) */
    font-weight: bold; /* Làm đậm dấu tích */
}





/* Hàng 3: Thư viện ảnh */

.mt-pf-gallery-section {
    width: 100%;
    min-width: 0;
    padding: 14px;
    /*border: 1px solid #39ad39;*/
    max-width:1200px;
    margin: 0 auto;
}

.mt-pf-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.mt-pf-gallery-item {
    display: block;
    min-width: 0;
    overflow: hidden;
}

.mt-pf-gallery-image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.mt-pf-gallery-item:hover .mt-pf-gallery-image {
    transform: scale(1.04);
}

/* Tránh khoảng trống do paragraph trong WYSIWYG */

.mt-pf-main-content p:last-child,
.mt-pf-text p:last-child {
    margin-bottom: 0;
}

.mt-pf-main-content p
{
    margin-block-start: 5px;
    margin-block-end: 5px;
}
/* Tablet */

@media (max-width: 767px) {
    .mt-portfolio-page {
        padding: 16px;
    }

    .mt-pf-top,
    .mt-pf-middle {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mt-pf-main-content {
        min-height: 240px;
        padding: 12px;
    }

    .mt-pf-info {
        padding: 8px;
        gap: 8px;
    }

    .mt-pf-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mt-pf-gallery-image {
        height: 130px;
    }
}

/* Điện thoại */

@media (max-width: 480px) {
    .mt-portfolio-page {
        padding: 12px;
    }

    .mt-pf-top,
    .mt-pf-middle {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mt-pf-main-content {
        min-height: 180px;
    }

    .mt-pf-images-top,
    .mt-pf-images-bottom {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .mt-pf-figure {
        padding: 6px;
    }

    .mt-pf-info {
        padding: 8px;
    }

    .mt-pf-icons {
        gap: 6px;
    }

    .mt-pf-icon-item {
        min-height: 80px;
        padding: 8px 4px;
    }

    .mt-pf-icon {
        font-size: 22px;
    }

    .mt-pf-icon-text,
    .mt-pf-figure figcaption {
        font-size: 12px;
    }

    .mt-pf-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mt-pf-gallery-image {
        height: 120px;
    }
}

.mt-pf-icon-item {
    text-align: center;
}

.mt-pf-icon-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 10px 0 5px;
}

.mt-pf-icon-text {
    font-size: 14px;
}
.mt-pf-icon-number {
    font-size: 36px;
    font-weight: 700;
    color: #222;
}

.mt-count-up {
    display: inline-block;
}
