@import url('https://fonts.googleapis.com/css2?family=Moul&family=Rubik:ital,wght@0,300..900;1,300..900&family=Siemreap&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== ផ្នែកការពារ Notch និង Dynamic Island (បន្ថែមក្នុង Body) ========== */
body {
    background-color: rgb(9, 9, 227);
    width: 100%;
    min-height: 100vh;
    font-family: "Siemreap", sans-serif;
    /* បន្ថែមខាងក្រោមនេះ */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.Pic-pf-1 {
    display: flex;
    width: 30%;
    max-width: 300px;
    margin: 1vw auto;
    margin-bottom: -1vw;
    justify-content: center;
    border: 3px solid rgb(3, 123, 1);
}

.table-container {
    width: 100%;
    margin: 0px auto;
    overflow-x: auto;
}

.table-1 {
    width: 100%;
    border-collapse: collapse;
    background-color: rgb(1, 60, 1);
    box-shadow: 0 0 5px white;
    margin: 20px 0;
}

.table-1 th,
.table-1 td {
    border: 2px solid white;
    padding: 12px;
    text-align: left;
    min-width: 50px;
}

.table-1 th {
    color: white;
    font-family: "Moul", "Siemreap";
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 16px;
}

.table-1 td {
    color: white;
    font-family: "Siemreap";
    font-size: 18px;
}

.company-logo-container {
    background-color: rgb(4, 100, 2);
    display: flex;
    width: 100%;
    padding: 20px 15px;
    align-items: center;      /* ឱ្យ Logo និងអក្សរនៅកណ្តាលជួរដេកជាមួយគ្នា */
    justify-content: center;   /* ឱ្យវាស្ថិតនៅកណ្តាលអេក្រង់ */
    gap: 15px;                /* ចម្ងាយរវាង Logo និង អក្សរ */
    flex-wrap: nowrap !important; /* បង្ខំមិនឱ្យធ្លាក់ជួរដាច់ខាត */
}

.company-logo {
    width: 80px;              /* កំណត់ទំហំឱ្យសមល្មម */
    height: 80px;
    flex-shrink: 0;           /* ការពារកុំឱ្យ Logo រួញតូចពេលអក្សរច្រើន */
    object-fit: contain;
}

.Text-company {
    color: white;
    font-family: "Moul", serif;          /* បន្ថយទំហំបន្តិចដើម្បីឱ្យសមនឹងអេក្រង់ទូរសព្ទ */
    text-align: left;         /* តម្រឹមអក្សរទៅឆ្វេង (ជាប់ Logo) */
    line-height: 1.5;
}
.Text-company-1 {
    color: white;
    font-family: "Moul", serif;          /* បន្ថយទំហំបន្តិចដើម្បីឱ្យសមនឹងអេក្រង់ទូរសព្ទ */
    text-align: center;         /* តម្រឹមអក្សរទៅឆ្វេង (ជាប់ Logo) */
    line-height: 2;
}


.buttongroup {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 15px auto;
    padding: 0 10px;
    max-width: 700px;
}

.btn {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    background: linear-gradient(45deg, #68766c, #03a9f4);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 80px;
    text-align: center;
    font-family: "Siemreap", sans-serif;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(2, 147, 28, 1);
}

.note-1 {
    color: white;
    font-family: "Siemreap", sans-serif;
    width: 100%;
    border-radius: 5px;
    padding: 5px;
    background-color: rgb(246, 2, 2);
    margin: 0px auto;
    text-align: center;
}

.footer {
    color: white;
    font-family: "Siemreap", sans-serif;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
    padding: 10px;
}

.all-right {
    color: white;
    text-align: center;
    font-family: "Siemreap", sans-serif;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 5px;
    width: 100%;
    background: linear-gradient(95deg, #2196f3, #9490a5);
    margin-top: 20px;
}

/* ... កូដដើមផ្សេងៗទៀត ... */
/* ========== REVISED MEDIA QUERIES (Mobile First Logic) ========== */

/* ០. សម្រាប់ Tablet និង Laptop ធំៗ */
@media screen and (min-width: 1024px) {
    .table-container { width: 100%; }
    .Text-company {
        font-size: 30px; /* ទំហំនេះនឹងមើលទៅសមល្មមលើ 15 Pro Max */
        text-align: center;
    }    
    .company-logo{
        width: 120px;
        height: 120px;
    }
    .Text-company-1 {
        font-size: 25px;
        text-align: center;
        margin-left: 0px;
    }
    .Pic-pf-1 {
        width: 25%;
        max-width: 250px;
    }

    .table-1 th, .table-1 td {
        padding: 8px 5px;
        font-size: 20px; /* បង្កើនទំហំអក្សរបន្តិចសម្រាប់អេក្រង់ធំ */
    }

    table.table-1 thead tr th.info {
        font-size: 25px;
    }

    table.table-1 thead tr th.name-khmer {
        font-size: 23px;
    }
    .note-1{
        font-size: 20px;
        width: 100%;
        margin: 0px auto;
    }
    .footer {
        font-size: 20px;
        line-height: 1.5;
        padding: 5px;
    }
    .all-right{
        font-size: 20px;
    }
}

/* ១. សម្រាប់ Tablet និង Laptop តូចៗ */
@media screen and (max-width: 1024px) {
    .table-container { width: 90%; }
    .Text-company {
        font-size: 30px; /* ទំហំនេះនឹងមើលទៅសមល្មមលើ 15 Pro Max */
        text-align: center;
    }    
    .company-logo{
        width: 100px;
        height: 100px;
    }
    .Text-company-1 {
        font-size: 25px;
        text-align: center;
        margin-left: 0px;
    }
    .Pic-pf-1 {
        width: 25%;
        max-width: 250px;
    }

    .table-1 th, .table-1 td {
        padding: 8px 5px;
        font-size: 18px; /* បង្កើនទំហំអក្សរបន្តិចសម្រាប់អេក្រង់ធំ */
    }

    table.table-1 thead tr th.info {
        font-size: 25px;
    }

    table.table-1 thead tr th.name-khmer {
        font-size: 23px;
    }
    .footer {
        font-size: 17px;
        line-height: 1;
        padding: 5px;
    }
}

/* ២. សម្រាប់ iPhone ម៉ូដែល Pro Max / Plus (ដូចជា 11 PM, 13 PM, 15 PM) */
/* គោលដៅ: 414px ដល់ 430px+ */
@media screen and (max-width: 480px) {
    .table-container { width: 98%; margin: 10px auto; }
    
    .company-logo-container {
        padding: 15px;
        gap: 15px;
        justify-content: center;
    }

    .company-logo {
        width: 75px;
        height: 75px;
    }

    .Text-company {
        font-size: 14px; /* ទំហំនេះនឹងមើលទៅសមល្មមលើ 15 Pro Max */
        text-align: left;
    }

    .Text-company-1 {
        font-size: 13px;
        text-align: left;
        margin-left: 20px;
    }

    .table-1 th, .table-1 td {
        padding: 8px 5px;
        font-size: 13px; /* បង្កើនទំហំអក្សរបន្តិចសម្រាប់អេក្រង់ធំ */
    }

    table.table-1 thead tr th.info {
        font-size: 17px;
    }

    table.table-1 thead tr th.name-khmer {
        font-size: 17px;
    }
    .note-1 {
        font-size: 12px;
        width: 100%;
        margin: 0px auto;
    }

    .footer {
        margin-top: 5px;
        font-size: 13px;
        line-height: 1;
        padding: 5px;
    }
    .Pic-pf-1 {
        width: 40%;
        max-width: 200px;
    }
}

/* ៣. សម្រាប់ iPhone ម៉ូដែលធម្មតា (iPhone 13, 14, 15 Pro - ទទឹងខ្ទង់ 390px) */
@media screen and (max-width: 393px) {
    .Text-company { font-size: 12px; }
    .Text-company-1 { 
        font-size: 11px; 
        margin-left: 15px;
    }
    .Pic-pf-1{
        width: 40%;
        margin-bottom: -12px;
    }
    .table-1 th, .table-1 td {
        font-size: 12px;
        padding: 6px 4px;
    }

    .note-1 {
        font-size: 11px;
        width: 100%;
        margin: 0px auto;
        padding: 10px 0px;
    }

    .footer {
        font-size: 12px;
        line-height: 1;
        padding: 5px;
    }
}

/* ៤. សម្រាប់ទូរសព្ទអេក្រង់តូចបំផុត (iPhone SE, 7, 8 - 375px ចុះក្រោម) */
@media screen and (max-width: 375px) {
    .Pic-pf-1{
        width: 40%;
        margin-bottom: -15px;
    }
    .Text-company { font-size: 10px; }
    .Text-company-1 { 
        font-size: 10px; 
        margin-left: 8px;
    }
    .company-logo {
        width: 50px;
        height: 50px;
    }
    
    .table-1 th, .table-1 td {
        font-size: 12px;
        padding: 6px 4px;
    }

     table.table-1 thead tr th.info {
        font-size: 13px;
    }

    table.table-1 thead tr th.name-khmer {
        font-size: 13px;
    }

    .note-1 {
        font-size: 9px;
        width: 100%;
        margin: 0px auto;
        padding: 10px 0px;
    }

    .footer {
        font-size: 10px;
        line-height: 0.5;
        padding: 5px;
    }
    .buttongroup {
        display: flex;
        gap: 7px;
        justify-content: center;
        flex-wrap: wrap;
        margin: 10px auto;
        padding: 0 10px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 12px;
        font-weight: bold;
        min-width: 60px;
    }
}