.image-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensures the image scales properly */
    height: 455px; /* Height adjusts automatically */
    aspect-ratio: 16 / 9; /* Maintain aspect ratio */}

.base-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container */
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.52); /* Black overlay with 52% opacity */
    z-index: 1;
}

.overlay-text {
    position: absolute;
    top: 43.5%;
    left: 10.5%; /* Adjust based on desired padding */
    transform: translateY(-50%);
    color: white;
    font-size: 3vw; /* Scales font size with screen width */
    font-weight: bold;
    z-index: 2; /* Ensure text appears above the overlay */
    line-height: 1.2;
}

.overlay-text-h1 h1 {
    font-size: 4vw; /* Scale heading based on viewport width */
    margin: 0;
}

.overlay-text p {
    margin: 0;
    font-size: 1.2vw; /* Scale paragraph text for responsiveness */
}
/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
    .image-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensures the image scales properly */
    height: auto; /* Height adjusts automatically */
    }

    .overlay-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers text within the container */
    color: white;   
    font-weight: bold;    
    text-align: center; /* Center-align text for better readability */
    font-size: 4vw; /* Adjust font size for tablets */
    }

    .overlay-text-h1 h1 {
        font-size: 6vw; /* Slightly smaller heading for tablets */
    }

    .overlay-text p {
        font-size: 1.5vw; /* Adjust paragraph text size */
    }
}

@media (max-width: 480px) {
    .overlay-text {
        font-size: 5vw; /* Smaller font size for mobile */
    }

    .overlay-text-h1 h1 {
        font-size: 8vw; /* Adjust heading for small screens */
    }

    .overlay-text p {
        font-size: 2.1vw; /* Larger paragraph text for better readability */
    }
}
nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    padding: 10px 20px; /* Adjust padding for better responsiveness */
    font-size: 1em; /* Use relative font size */
    margin-bottom: 20px;
    background-color: white; /* Add a background for better visibility */
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    padding: 10px 20px; /* Adjust padding for better responsiveness */
    font-size: 1em; /* Use relative font size */
    margin-bottom: 20px;
    background-color: white; /* Add a background for better visibility */
    gap: 5px; /* Add space between items */
}

nav a {
    text-decoration: none;
    color: black; /* Default color for non-current pages */
    font-weight: normal;
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transition */
    margin-right: 2px; /* Add spacing between links */
}

nav a.active {
    color: #032c6e; /* Color for the current page */
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
    color: #032c6e; /* Hover color */
}

/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
    nav {
       
        align-items: flex-start; /* Align to the left */
        padding: 10px 35px; /* Reduce padding */
        font-size: 0.9em; /* Reduce font size */
    }

    nav a {
        margin-right: 0; /* Remove horizontal spacing */
        margin-bottom: 10px; /* Add vertical spacing between links */
    }
}

@media (max-width: 480px) {
    nav {
        font-size: 0.8em; /* Further reduce font size */
        padding: 5px 10px;
    }

    nav a {
        margin-bottom: 8px; /* Slightly smaller vertical spacing */
        font-size: 0.9em; /* Adjust font size for small screens */
    }
}

.training-section {
    display: flex;
    gap: 20px;
    padding: 30px 0px; /* Add padding (top/bottom: 30px, left/right: 20px) */
    align-items: center; /* Vertically center items */
    justify-content: center; /* Center the section horizontally */
    max-width: 1200px; /* Set a maximum width for the section */
    margin: 0 auto; /* Center the section within the page */
    box-sizing: border-box; /* Ensure padding doesn't affect total width */
}

.training-section-p2 {
    display: flex;
    color : #fff;
    gap: 20px;
    padding: 30px 0px; /* Add padding (top/bottom: 30px, left/right: 20px) */
    align-items: center; /* Vertically center items */
    justify-content: center; /* Center the section horizontally */
    max-width: 1200px; /* Set a maximum width for the section */
    margin: 0 auto; /* Center the section within the page */
    box-sizing: border-box; /* Ensure padding doesn't affect total width */
}

.training-section-p2-back {
    background-color: #032c6e;
}

.training-video {
    flex: 1;
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 0;
    padding-top: 133.78%; /* 9:16 aspect ratio for TikTok videos */
    background-color: #ddd;
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}


.training-description {
    flex: 2;
}

.training-description-p2 {
    flex: 2;
}

.training-description h2 {
    margin-bottom: 15px;
    font-size: 2em;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.training-description-p2 h2 {
    margin-bottom: 15px;
    font-size: 2em;
    color: #fff;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.training-description a {
    text-decoration: none;
    color: #4c4a4a;
}

.training-description a:hover {
    color: #f8c016; /* Change the color on hover */
    text-decoration: none; /* Add underline on hover */
}

.training-description-p2 a {
    text-decoration: none;
    color: #f8c016;
}

.training-description-p2 a:hover {
    color: #4c4a4a; /* Change the color on hover */
    text-decoration: none; /* Add underline on hover */
}

.training-description p {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
}

.training-description-p2 p {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
}

.apply-button {
    background-color: #032c6e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin-right: 3%;
}

.apply-button:hover {
    background-color: #f8c016;
    color: #000;
}

.apply-button-p2 {
    background-color: #f8c016;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 3%;
}

.apply-button-p2:hover {
    background-color: white;
    color: black;
}
/* Collapsible Sections Styling */
.collapsible-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.collapsible-section:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.collapsible-header {
    width: 100%;
    padding: 18px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.collapsible-icon {
    transition: transform 0.3s ease;
    font-size: 18px;
    color: #666;
}

.collapsible-section.active .collapsible-icon {
    transform: rotate(180deg);
    color: #007bff;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.collapsible-section.active .collapsible-content {
    max-height: 500px;
}

.collapsible-content p {
    padding: 20px;
    margin: 0;
    line-height: 1.6;
    color: #000000;
    border-top: 1px solid #e9ecef;
}

/* Fix untuk space dalam collapsible sections */
.collapsible-content ul {
    margin: 8px 0 !important;
    padding-left: 20px;
    line-height: 1.3;
    color: #000000;
}

.collapsible-content li {
    margin-bottom: 5px !important;
    color: #000000;
}

.container {
    background-color: #f4f4f9;
    width: 100%;
    padding: 30px 0px; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 280px;
}
.text-section {
    max-width: 40%;
}
.text-section h1 {
    font-size: 40px;
    color: #000000;
    margin: 0 0 20px 0;
}
.text-section button {
    background-color: #002855;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.text-section button:hover {
    background-color: #f8c016;
    color: #000;
}

.image-section img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1024px) { /* Tablet */
    .training-section, .training-section-p2 {
        flex-direction: column;
        padding: 20px 10px;
    }

    .training-description,
    .training-description-p2 {
        flex: 1;
        padding: 15px;
    }

    .apply-button, .apply-button-p2 {
        width: 100%;
        padding: 12px 0;
        text-align: center;
    }

    .container {
        flex-direction: column;
        gap: 20px;
    }

    .text-section {
        max-width: 80%;
    }
}

@media (max-width: 768px) { /* Smaller Tablets and Large Phones */
    nav {
        padding-left: 20px;
        font-size: 14px;
    }

    .training-video {
        flex: 1;
        padding-top: -10%; /* Adjust aspect ratio for smaller devices */
    }

    .training-description h2,
    .training-description-p2 h2 {
        font-size: 24px;
    }

    .training-description p,
    .training-description-p2 p {
        font-size: 14px;
    }

    .apply-button, .apply-button-p2 {
        padding: 10px 15px;
        font-size: 14px;
    }

    .container {
        gap: 10px;
    }

    .text-section {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) { /* Mobile */
    body {
        font-size: 14px;
    }

    .training-section, .training-section-p2 {
        flex-direction: column;
        padding: 15px 5px;
    }

    .training-video {
    
        flex: 1;
    }

    .training-description h2,
    .training-description-p2 h2 {
        font-size: 20px;
    }

    .training-description p,
    .training-description-p2 p {
        font-size: 13px;
    }

    .apply-button, .apply-button-p2 {
        padding: 8px 15px;
        font-size: 14px;
    }

    .container {
        gap: 5px;
    }

    .text-section {
        max-width: 100%;
        padding: 0 10px;
    }
}                                                                                                                                                                             