@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;
}

body {
    background-color: rgb(9, 9, 227);
    width: 100%;
    min-height: 100vh;
    font-family: "Siemreap", sans-serif;
}

.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: 99%;
    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: 14px;
}

.company-logo-container {
    background-color: rgb(4, 100, 2);
    display: flex;
    width: 100%;
    padding: 20px 5px;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.Text-company {
    color: white;
    font-family: "Moul", serif;
    font-size: 26px;
    text-align: center;
    line-height: 1.2;
}

.Text-company-1 {
    font-size: 20px;
    font-family: "Siemreap", sans-serif;
    color: white;
}

.company-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

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

.btn {
    padding: 12px 25px;
    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: 120px;
    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;
    font-size: 12px;
    width: 100%;
    border-radius: 5px;
    padding: 15px;
    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;
}

/* ... កូដដើមផ្សេងៗទៀត ... */

/* ========== MEDIA QUERIES (តម្រៀបតាមទំហំពីធំទៅតូច) ========== */

/* 1. Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .table-container {
        width: 85%;
    }
    .Pic-pf-1 {
        width: 40%;
        margin-bottom: 0;
    }
    
    .table-1 th,
    .table-1 td {
        padding: 10px;
        min-width: 120px;
        font-size: 13px;
    }
    
    .Text-company {
        font-size: 28px;
        line-height: 40px;
    }
     .Text-company-1 {
        font-size: 28px;
        line-height: 0px;
    }
    
    .company-logo-container {
        gap: 20px;
        padding: 15px 5px;
    }
}

/* 2. Medium Mobile (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .table-container {
        width: 95%;
        margin: 10px auto;
    }
    
    .table-1 {
        font-size: 12px;
    }
    
    .table-1 th,
    .table-1 td {
        padding: 8px;
        min-width: 90px;
        font-size: 12px;
    }
    
    .Pic-pf-1 {
        width: 50%;
        margin-bottom: 0;
    }
    
    .company-logo-container {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 15px 10px;
        flex-wrap: nowrap;
    }
    
    .company-logo {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .Text-company {
        font-size: 20px;
        text-align: left;
        line-height: 1.2;
        flex-grow: 1;
    }
    
    .Text-company-1 {
        font-size: 16px;
        text-align: left;
        width: 100%;
        display: block;
        margin-top: 5px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .note-1 {
        font-size: 12px;
        padding: 12px;
        width: 95%;
    }
    
    .footer,
    .all-right {
        font-size: 12px;
    }
    
    .buttongroup {
        gap: 8px;
        margin: 15px auto;
    }
}

/* iPhone 13 (390px × 844px) */
@media (max-width: 390px) and (min-width: 376px) {
    .table-container {
        width: 95%;
        padding: 0 8px;
        margin: 15px auto;
    }
    
    .Text-company {
        font-size: 15px;
        margin-left: 8px;
    }
    
    .Text-company-1 {
        font-size: 14px;
        margin-left: 22px;
    }
    
    .table-1 {
        min-width: 370px;
        font-size: 12px;
    }
    
    .table-1 th,
    .table-1 td {
        padding: 5px 4px;
        font-size: 11px;
        min-width: 75px;
    }
    
    .table-1 th {
        font-size: 10px;
        padding: 6px 5px;
    }
    
    .Pic-pf-1 {
        width: 45%;
        max-width: 180px;
        margin-bottom: 8px;
    }
    
    .company-logo {
        width: 65px;
        height: 65px;
    }
    
    .company-logo-container {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .note-1 {
        font-size: 10px;
        padding: 12px;
    }
    
    .btn {
        font-size: 12px;
        padding: 10px 18px;
        min-width: 95px;
    }
}
/* 3. Small Mobile (415px - 480px) */
@media (max-width: 480px) and (min-width: 415px) {
    .table-1 th,
    .table-1 td {
        padding: 6px;
        font-size: 10px;
        min-width: 80px;
    }
    
    .company-logo-container {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        padding: 12px 15px;
        flex-wrap: nowrap;
    }
    
    .company-logo {
        width: 70px;
        height: 70px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .Text-company {
        font-size: 18px;
        text-align: left;
        color: white;
        margin: 0;
        line-height: 1.2;
    }
    
    .Text-company-1 {
        font-size: 14px;
        text-align: left;
        color: white;
        margin: 0;
        line-height: 1.3;
        display: block;
        margin-top: 3px;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 11px;
        min-width: 85px;
    }
    
    .note-1 {
        font-size: 11px;
        padding: 10px;
        width: 95%;
        margin: 15px auto;
    }
    
    .footer,
    .all-right {
        font-size: 11px;
        padding: 8px;
    }
    
    .table-1 th {
        font-size: 12px;
    }
    
    .table-container {
        width: 95%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-1 {
        min-width: 400px;
    }
    
    .buttongroup {
        gap: 5px;
        margin: 10px auto;
        padding: 0 5px;
    }
    
    .Pic-pf-1 {
        width: 60%;
        max-width: 200px;
        margin-bottom: 10px;
    }
}

/* 4. iPhone 6/7/8 Plus (415px) */
@media (max-width: 414px) and (min-width: 376px) {
    .company-logo-container {
        padding: 10px 12px;
        gap: 12px;
    }

    .Pic-pf-1 {
        width: 35%;
        margin-bottom: -15px;
    }
    
    .company-logo {
        width: 65px;
        height: 65px;
    }
    
    .company-logo-container {
        gap: 10px;
        width: 100%;
    }
    
    .Text-company {
        font-size: 14px;
    }
    
    .Text-company-1 {
        font-size: 15px;
        margin-left: 25px;
    }
    
    .table-1 {
        min-width: 380px;
    }
}

/* 5. iPhone 6/7/8 (375px) */
@media (max-width: 375px) {
    .table-container {
        width: 95%;
        padding: 0 5px;
        margin: 10px auto;
    }
    
    .Text-company {
        font-size: 12px;
        margin-left: 5px;
    }
    
    .Text-company-1 {
        font-size: 13px;
        margin-left: 20px;
    }
    
    .table-1 {
        min-width: 360px;
        font-size: 11px;
    }
    
    .table-1 th,
    .table-1 td {
        padding: 4px 3px;
        font-size: 10px;
        min-width: 70px;
    }
    
    .table-1 th {
        font-size: 11px;
        padding: 5px 4px;
    }
    
    .Pic-pf-1 {
        width: 40%;
        max-width: 150px;
        margin-bottom: 5px;
    }
    
    .company-logo {
        width: 60px;
        height: 60px;
    }
    
    .company-logo-container {
        padding: 8px 10px;
        gap: 8px;
    }
}

/* 6. Very Small Mobile (up to 320px) */
@media (max-width: 320px) {
    .table-1 {
        min-width: 320px;
    }
    
    .table-1 th,
    .table-1 td {
        padding: 3px 2px;
        font-size: 5px;
        min-width: 60px;
    }
    
    .Text-company {
        font-size: 11px;
    }
    
    .Text-company-1 {
        font-size: 12px;
        margin-left: 15px;
    }
    
    .company-logo {
        width: 50px;
        height: 50px;
    }
    
    .Pic-pf-1 {
        width: 50%;
        max-width: 120px;
    }
}
