.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    position: relative;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.contact-icons img {
    width: 50px;
    transition: transform 0.2s;
}

.contact-icons img:hover {
    transform: scale(1.1);
}

.contact-text {
    font-style: italic;
    color: gray;
    margin-bottom: 10px;
}

body {
    background-color: #f5f5f5;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #0077b6;
    color: white;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon {
    font-size: 20px;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #555;
    margin-bottom: 30px;
}

/* Course Cards */
.course-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.course-card {
    background-color: #e6f7ff;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 15px;
}

.course-image {
    width: 100%;
    height: 150px;
    background-color: #0077b6;
    margin-bottom: 10px;
}

.course-price {
    color: #444;
    margin-bottom: 10px;
}

.course-desc {
    padding: 0 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    text-align: left;
}

.course-btn {
    background-color: #0077b6;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 25px;
    font-weight: bold;
    cursor: pointer;
}

.see-all-btn {
    border: 1px solid #0077b6;
    color: #0077b6;
    background-color: white;
    padding: 8px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

/* Advantages Section */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advantage-card {
    background-color: #0077b6;
    border-radius: 10px;
    padding: 20px;
    color: white;
    display: flex;
    gap: 15px;
    text-align: left;
}

.advantage-icon {
    font-size: 30px;
}

.advantage-text {
    font-size: 14px;
}

/* Reviews Section */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.reviewer-badge {
    background-color: #0077b6;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.review-text {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 10px;
}

.star-rating {
    color: #0077b6;
}

/* Footer */
.footer {
    background-color: #0077b6;
    color: white;
    padding: 40px 0;
    text-align: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon {
    font-size: 20px;
    color: white;
}

.user-btn {
    background-color: white;
    color: #0077b6;
    border: none;
    border-radius: 20px;
    padding: 5px 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    margin-bottom: 50px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #555;
    margin-bottom: 30px;
}

/* Course Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.course-card {
    background-color: #e6f7ff;
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.course-image {
    width: 100%;
    height: 150px;
    background-color: #0077b6;
    margin-bottom: 10px;
}

.course-price {
    color: #444;
    margin-bottom: 10px;
}

.course-desc {
    padding: 0 10px;
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    text-align: left;
    flex-grow: 1;
}

.course-btn {
    background-color: #0077b6;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 25px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    width: 80%;
}

/* Footer */
.footer {
    background-color: #0077b6;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
}

.close-button {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

.input-field {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: #000;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-divider {
    border-bottom: 1px solid #e0e0e0;
    margin: 20px 0;
}

.register-prompt {
    text-align: center;
    margin: 20px 0;
}

.register-link {
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    padding: 15px;
    background-color: #0077c2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.login-button:hover {
    background-color: #005fa3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

#loginpage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* Khusus style untuk halaman keranjang */
#cart-page {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
}

#cart-page header {
    margin-bottom: 20px;
}

#cart-container {
    max-width: 700px;
    margin: 0 auto;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
}

.cart-info {
    flex-grow: 1;
    text-align: left;
    margin-left: 10px;
}

.cart-info h3 {
    margin: 0;
    font-size: 16px;
}

.cart-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.cart-price {
    font-weight: bold;
    color: #000;
}

.remove-btn {
    background: red;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

#add-course {
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: blue;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Style khusus halaman checkout */
#checkout-page {
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
}

#checkout-page h1 {
    font-size: 28px;
}

hr {
    width: 50px;
    margin: 10px auto;
    border: 2px solid black;
}

.checkout-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.checkout-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: left;
}

.checkout-box h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

label {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: #f5f5f5;
    cursor: text;
}

.note {
    font-size: 12px;
    color: gray;
    margin-top: 5px;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    appearance: none;
    cursor: pointer;
    background: url('dropdown-icon.png') no-repeat right 10px center;
    background-size: 15px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
}

.order-info h3 {
    margin: 0;
    font-size: 16px;
}

.order-info p {
    font-size: 14px;
    color: #555;
}

.total-btn {
    width: 100%;
    background: blue;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.summary p {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.summary hr {
    border: 1px solid black;
    margin: 10px 0;
}

.terms {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}

.terms a {
    color: blue;
    text-decoration: none;
}

.pay-btn {
    width: 100%;
    background: blue;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}
