﻿/*Halaman 1*/

/* Pastikan navbar tidak bertindih */
/* Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Slide-Up Animation */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8); /* Mulakan dari kecil */
        opacity: 0;
    }

    to {
        transform: scale(1); /* Skala asal */
        opacity: 1;
    }
}
@keyframes zoomOut {
    from {
        transform: scale(0.95); /* Mulakan dari kecil */
    }

    to {
        transform: scale(1); /* Skala asal */
    }
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.kerjaya-section {
    position: relative;
    width: 100%;
    height: 50vh;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    margin-top: 56px;
}
.image-container {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: zoomOut 1s ease-out forwards;
    background-repeat: no-repeat;
    background-position: top center;
    overflow: hidden
}

.kerjaya-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.4;
}

    .kerjaya-section .content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
    }

        .kerjaya-section .content h1 {
            font-family: 'Roboto', sans-serif;
            font-weight: 550;
            font-size: 3rem;
            -webkit-text-stroke: 0.01px black; /* Stroke hitam */
            opacity: 0;
            animation: slideUp 0.8s ease-out forwards;
        }

        .kerjaya-section .content p {
            font-family: 'Roboto', sans-serif;
            font-size: 16px !important;
            font-weight: 500;
            letter-spacing: 2px;
            line-height: 18px;
            text-transform: uppercase;
            -webkit-text-stroke: 0.01px black; /* Stroke hitam */
            opacity: 0;
            animation: slideUp 0.8s ease-out forwards;
            animation-delay: 0.5s;
        }
@media (max-width: 500px) {

    .kerjaya-section .content h1 {
        font-size: 30px;
    }

    .kerjaya-section .content p {
        font-size: 10px !important;
    }
    .kerjaya-section {
        height: 250px; /* Separuh tinggi skrin */
        margin-top: 60px;
    }
}
/* Halaman 2 */

/* Container utama */
.choose-us-container {
    display: flex; /* Susunan flexbox */
    align-items: center; /* Pusatkan secara menegak */
    justify-content: flex-start; /* Gambar di sebelah kiri */
    flex-wrap: wrap; /* Responsif: Susun semula jika ruang tak cukup */
    padding: 40px 20px;
    gap: 20px; /* Jarak antara gambar dan teks */
    background-color: #eaeaea; /* Tiada latar belakang */
    height: 100%;
}

    /* Gambar bulat sempurna */
    .choose-us-container img {
        width: 350px;
        height: 350px;
        border-radius: 50%; /* Jadikan gambar bulat */
        object-fit: cover; /* Pastikan bahagian tak penting dipotong */
        animation: slideUp 0.8s ease-out forwards;
    }

/* Container teks */
.text-container {
    background-color: #f5f5f5; /* Latar belakang putih */
    padding: 20px 30px; /* Ruang dalaman */
    border-radius: 10px; /* Sudut bulat */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan */
    flex: 1; /* Isi ruang selebihnya */
    animation: slideUp 0.8s ease-out forwards;
}
    .text-container .btn {
        width: 200px;
        height: 50px;
        font-size: 16px;
        border: none;
        border-radius: 25px;
        margin-top: 20px; /* Hilangkan margin auto */
        display: block; /* Tetap elemen dalam bentuk blok */
    }

/* Responsif: Susunan gambar dan teks dalam ruang kecil */
@media (max-width: 768px) {
    
    .choose-us-container {
        flex-direction: column; /* Susun secara menegak */
        align-items: center; /* Pusatkan semua elemen */
    }

        .choose-us-container img {
            margin-bottom: 20px;
            width: 250px !important;
            height: 250px !important;
        }

    .text-container {
        width: 100%; /* Pastikan teks memenuhi lebar */
    }
}

    /*Halaman 3*/
/* Kontainer utama memenuhi seluruh halaman */
.latihan-main-container {
    display: flex;
    flex-direction: row; /* Susun secara baris untuk desktop */
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5; /* Warna latar belakang utama */
    height: 100vh; /* Memenuhi ketinggian penuh skrin */
    padding: 50px;
    box-sizing: border-box;
    gap: 20px;
    height: 100%;
}

/* Bahagian kontainer teks */
.latihan-content-container {
    flex: 1;
    background-color: #eaeaea; /* Warna latar belakang kontainer teks */
    border-radius: 10px;
    padding: 40px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Menegakkan kandungan */
}

.latihan-description {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Arial', sans-serif;
}

/* Butang */
.latihan-content-container .btn {
    width: 200px;
    height: 50px;
    font-size: 16px;
    border: none;
    border-radius: 25px;
    margin-top: 20px; /* Hilangkan margin auto */
    display: block; /* Tetap elemen dalam bentuk blok */
}

    .latihan-content-container .btn:hover {
        background-color: #6c1abf;
    }

.latihan-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsif untuk skrin kecil (mudah alih) */
@media (max-width: 768px) {
    .latihan-main-container {
        flex-direction: column; /* Susun semula sebagai kolum */
        height: auto; /* Sesuaikan tinggi mengikut kandungan */
        padding: 20px;
    }

    .latihan-image-container {
        order: -1; /* Letakkan imej di atas teks */
        margin-bottom: 20px; /* Jarak antara imej dan teks */
    }
    .latihan-image{
        width: auto;
        height: 300px !important;
    }

    .title {
        font-size: 2em;
    }

    .latihan-description {
        font-size: 14px; /* Kurangkan saiz teks */
    }

    .btn-latihan {
        font-size: 14px; /* Kurangkan saiz butang */
        padding: 10px 20px;
    }
}
 
/*halaman 4*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eaeaea;
}

.career-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #eaeaea !important;
}

    /*.career-section h1 {
        font-size: 2.5em;
        color: #800080;
    }*/

    .career-section p {
        margin-top: 10px;
        font-size: 1.2em;
        color: #333;
    }

.career-list {
    margin-top: 30px;
}

.career-item {
    background-color: #f1f1f1;
    margin: 10px auto;
    padding: 15px 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

    .career-item:hover {
        background-color: #e0e0e0;
    }

.career-icon {
    font-size: 1.5rem;
    font-weight: lighter;
    color: #800080;
    transition: transform 0.3s ease;
}

.career-item:hover .career-icon {
    transform: scale(1.2);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .popup.hidden {
        display: none;
    }

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: Arial, sans-serif;
}
/* Tajuk dalam pop-up */
.popup-content h2 {
    color: #800080;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Teks dalam pop-up */
.popup-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8em;
    cursor: pointer;
    color: #800080;
}

    .close-btn:hover {
        color: red;
    }

/* Responsiviti untuk skrin mudah alih */
@media (max-width: 768px) {

    .career-item {
        font-size: 16px;
        padding: 10px 15px;
        max-width: 100%; /* Buat ia memenuhi ruang penuh */
        margin: 10px auto;
    }

    .career-icon {
        font-size: 1.2em;
    }

    .popup-content {
        padding: 15px;
        width: 95%;
    }
    .popup-content h2 {
        font-size: 20px !important;
    }

    .popup-content p {
        font-size: 14px !important;
    }

    .close-btn {
        font-size: 1.3em;
    }
}

/*halaman 5*/

.benefits-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f5f5f5;
}

    .benefits-section p {
        font-size: 1.2em;
        color: #333;
        margin-bottom: 40px;
    }

.benefits-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Susunan 3 lajur */
    gap: 20px;
    justify-content: center;
    align-items: start;
}

.benefit-item {
    display: flex; /* Gunakan flexbox untuk susun imej dan teks */
    align-items: center; /* Pusatkan secara menegak */
    justify-content: start;
    padding: 15px;
    height: 120px; /* Pastikan ketinggian seragam */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .benefit-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .benefit-item img {
        width: 60px;
        height: 60px; /* Tetapkan dimensi imej */
        margin-right: 15px; /* Jarak antara imej dan teks */
    }

    .benefit-item p {
        font-size: 1em;
        color: #555;
        margin: 0; /* Buang margin default */
        text-align: left; /* Pastikan teks dalam .benefit-item align ke kiri */
    }

/* Responsiviti untuk skrin kecil */
@media (max-width: 768px) {
    .title {
        font-size: 2em;
    }
    .benefits-list {
        grid-template-columns: repeat(2, 1fr); /* Tukar ke 2 lajur */
        gap: 15px;
    }

    .benefit-item {
        height: auto; /* Biarkan ketinggian fleksibel */
        padding: 10px;
    }

        .benefit-item img {
            width: 50px;
            height: 50px;
        }

        .benefit-item p {
            font-size: 0.9em;
        }
}

@media (max-width: 480px) {
    .benefits-list {
        grid-template-columns: 1fr; /* Tukar ke 1 lajur */
        gap: 10px;
    }

    .benefit-item {
        height: auto; /* Biarkan ketinggian fleksibel */
        padding: 8px;
    }

        .benefit-item img {
            width: 40px;
            height: 40px;
        }

        .benefit-item p {
            font-size: 0.8em;
        }
}

/*Halaman 6*/

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #6a008a;
    padding: 20px;
}

    .registration-form h2 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 24px;
    }

.form-row {
    display: flex;
    flex-wrap: wrap; /* Membolehkan responsiviti */
    justify-content: space-between;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-right: 10px;
    min-width: 250px; /* Minimum lebar untuk responsiviti */
}

    .form-group:last-child {
        margin-right: 0;
    }

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 300; /* Font lebih ringan */
    color: #000; /* Warna hitam */
    text-align: left;
}

.form-control-line {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    outline: none;
    padding: 5px 0;
    font-size: 16px;
    appearance: none; /* Menyembunyikan gaya lalai browser */
}

select.form-control-line {
    -webkit-appearance: none; /* Untuk pelayar berasaskan WebKit */
    -moz-appearance: none; /* Untuk pelayar berasaskan Mozilla */
    padding: 5px 0;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><polygon points="0,0 10,0 5,5" fill="%236a008a"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}
select:focus {
    border-bottom: 2px solid #6a008a;
}

    .form-control-line:focus {
        border-bottom: 2px solid #6a008a;
    }


p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.custom-file-upload {
    border: 1px solid #ccc;
    background-color: #ddd;
    border-radius: 5px;
    padding: 15px;
    width: 100%;
    max-width: 1000px;
    margin-top: 10px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.upload-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

    .upload-area button {
        padding: 5px 10px;
        border: 1px solid #a88f9f;
        background-color: #f4eef7;
        color: #7a5575;
        border-radius: 4px;
        cursor: pointer;
    }

        .upload-area button:hover {
            background-color: #e8ddee;
            border-color: #7a5575;
        }

.file-item {
    margin: 0;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    flex-grow: 1;
    word-wrap: break-word; /* Supaya nama fail panjang tidak keluar dari kotak */
    text-align: left;
    margin-left: 20px;
}

.file-list div {
    padding: 5px 0;
}

.file-list {
    display: flex;
    flex-direction: column; /* Fail tersusun secara menegak */
    gap: 10px; /* Jarak antara fail */
    margin-top: 10px;
    padding: 10px;
    background-color: #ddd;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-height: 50px;
    max-height: 250px; /* Tinggi maksimum */
    overflow-y: auto; /* Scroll apabila senarai panjang */
}

.file-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.file-item:hover {
    text-decoration: none;
    color: #0056b3;
}

.delete-button {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #ff6666;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 20px;
}

    .delete-button:hover {
        background-color: #ff3333;
    }

/* Placeholder text for file name */
.file-name-placeholder {
    font-size: 14px;
    color: #757575;
    vertical-align: middle;
}

/* Submit button styling */
.submit-button {
    display: inline-block;
    background-color: #9c27b0;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    /* Hover and active states for submit button */
    .submit-button:hover {
        background-color: #7a1d90;
        transform: translateY(-2px);
    }

    .submit-button:active {
        background-color: #6c167d;
        transform: translateY(1px);
    }

/* Responsiviti */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-group {
        margin-right: 0;
        margin-bottom: 10px;
    }
    input, textarea, select {
        font-size: 14px !important;
    }
    
}

@media (max-width: 480px) {
    .registration-form {
        padding: 10px;
    }

    .submit-button {
        width: 100%; /* Butang memenuhi skrin kecil */
    }
}

.vertical-scroll {
    overflow-y: scroll;
    height: 80vh;
}