body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f4f4f4;
    color: #333;
}

/* -----navbar----- */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e5eff8;
    padding: 12px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1d3557;
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 4px;
}

.nav-links a:hover {
    color: #eda837;
    border-bottom: 2px solid #eda837;
}

.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

@media only screen and (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        background-color: #e5eff8;
        position: fixed;
        top: 70px;
        right: -300px;
        width: 300px;
        height: auto;
        max-height: 80vh;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        transition: right 0.3s ease-in-out;
    }

    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #ddd;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .navbar {
        padding: 12px 20px;
    }

    .menu-toggle {
        display: block;
        background-color: transparent;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    }

.nav-links.active {
    right: 0;
}

.nav-links {
    transition: all 0.3s ease-in-out;
}

/* ----- Search Bar ----- */
.search-container {
    position: absolute;
    top: 5px;
    right: 20px;
}

@media only screen and (max-width: 768px) {
    .search-container {
        position: static;
        margin-top: 0px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

#searchBar {
    width: 240px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-family: inherit;

    color: #1e1e1e;
    background-color: #fff;

    border: 1px solid #fff;
    border-radius: 12px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

#searchBar::placeholder {
    color: #aaa;
    font-style: italic;
}

#searchBar:focus {
    outline: none;
    border-color: #555;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.15);
}

/* -----hero----- */
.hero {
    height: 100vh;
    background: url('Images/bg-wide.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.5);
}

.heroc {
    position: relative;
    z-index: 1;
    color: #1e3d23;
    margin-top: -200px;
    align-items: center;
    justify-content: center;
}

/* -----company-logos----- */
.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0);
}

.company-logos img {
    height: 5vw;
    width: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
    border-radius: 5px;
    padding: 0px 1vw;
}

@media only screen and (max-width: 500px) {
    .company-logos img {
        height: 12vw;
        transform: translateY(20px);
    }
}

@media only screen and (min-width:500px) and (max-width: 600px) {
    .company-logos img {
        height: 12vw;
        transform: translateY(30px);
    }
}

@media only screen and (min-width:600px) and (max-width: 768px) {
    .company-logos img {
        height: 7vw;
        transform: translateY(40px);
    }
}

@media only screen and (min-width:768px) and (max-width: 992px) {
    .company-logos img {
        height: 7vw;
    }
}

/* -----hero-main-content----- */
.hero-mainc {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    transform: translateY(-70px);
}

.hero-logo {
    width: 20vw;
    height: auto;
    position: relative;
    z-index: 2;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    gap: 10px;
}

.hero-text h1 {
    font-size: 9vw;
    font-weight: bold;
    background: #f8f4fdb3;
    display: inline-block;
    margin-bottom: 10px;
    transform: none;
}

.hero-text h2 {
    font-size: 2vw;
    font-style: italic;
    background: rgba(255,255,255,0);
    padding: 5px 10px;
    border-radius: 5px;
    transform: none;
}

@media only screen and (max-width: 500px) {
    .hero-mainc {
        flex-direction: column;
        gap: 0px;
        transform: translateY(40px);
    }

    .hero-logo {
        width: 50vw;
    }

    .hero-text h1 {
        font-size: 12vw;
    }

    .hero-text h2 {
        font-size: 4vw;
    }
}

@media only screen and (min-width: 500px) and (max-width: 600px) {
    .hero-mainc {
        flex-direction: column;
        gap: 0px;
        transform: translateY(50px);
    }

    .hero-logo {
        width: 40vw;
    }

    .hero-text h1 {
        font-size: 8vw;
    }

    .hero-text h2 {
        font-size: 3vw;
    }
}

@media only screen and (min-width: 600px) and (max-width: 768px) {
    .hero-mainc {
        flex-direction: column;
        gap: 0px;
        transform: translateY(60px);
    }

    .hero-logo {
        width: 30vw;
    }

    .hero-text h1 {
        font-size: 8vw;
    }

    .hero-text h2 {
        font-size: 3vw;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .hero-mainc {
        gap: 10px;
        transform: translateX(0px);
    }

    .hero-logo {
        width: 25vw;
    }

    .hero-text h1 {
        font-size: 8vw;
    }

    .hero-text h2 {
        font-size: 2.5vw;
    }
}

/* -----about----- */
.about {
    min-height: 100vh;
    background-color: #e5f0f9;
    background-image: url('Images/ru.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(236, 246, 251);
    padding: 50px 20px;
    text-align: center;
    flex-direction: column;
}

.about img.ce-image {
    position: absolute;
    bottom: 30px;
    left: 20px;
    width: 25vw;
    height: auto;
    opacity: 1;
    z-index: 0;
}

.about img.co-image {
    position: absolute;
    bottom: 200px;
    right: 20px;
    width: 25vw;
    height: auto;
    opacity: 1;
    z-index: 0;
}

.about img.aw-image {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 25vw;
    height: auto;
    opacity: 1;
    z-index: 0;
}

.about img.aw-image-2 {
    position: absolute;
    top: 200px;
    left: 20px;
    width: 25vw;
    height: auto;
    opacity: 1;
    z-index: 0;
}

@media only screen and (max-width: 600px) {
    .about img.ce-image{
        width: 50vw;
        bottom: 10px;
    }

    .about img.co-image {
        width: 50vw;
        bottom: 10vw;
    }

    .about img.aw-image {
        width: 80vw;
        top: 120px;
    }

    .about img.aw-image-2 {
        width: 80vw;
        top: 550px;
        left: 10px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 768px) {
    .about img.ce-image{
        width: 50vw;
        bottom: 10px;
    }

    .about img.co-image {
        width: 50vw;
        bottom: 10vw;
    }

    .about img.aw-image {
        width: 50vw;
        top: 120px;
    }

    .about img.aw-image-2 {
        width: 50vw;
        top: 550px;
        left: 10px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .about img.ce-image{
        width: 40vw;
        bottom: 10px;
    }

    .about img.co-image {
        width: 40vw;
        bottom: 10vw;
    }

    .about img.aw-image {
        width: 40vw;
        top: 120px;
    }

    .about img.aw-image-2 {
        width: 40vw;
        top: 550px;
        left: 10px;
    }
}

.aboutc {
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.aboutc h2 {
    font-size: 2.5rem;
    color: #1d3557;
    margin-bottom: 20px;
    text-align: center;
}

.aboutc h3 {
    font-size: 1.8rem;
    color: #1d3557;
    margin-top: 30px;
    margin-bottom: 15px;
}

.aboutc p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.aboutc ul {
    list-style: disc inside;
    padding-left: 20px;
    margin-bottom: 10px;
}

.aboutc ul li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 5px;
}

/* -----implementation-guide----- */
.implementation-guide {
    min-height: 100vh;
    background-color: #e5f0f9;
    background-image: url('Images/ru.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d1e8f1;
    padding: 50px 20px;
    text-align: center;
    flex-direction: column;
    position: relative;
}

.implementation-guidec {
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.implementation-guidec h2 {
    font-size: 2.5rem;
    color: #2f5d39;
    margin-bottom: 20px;
    text-align: center;
}

.implementation-guidec h3 {
    font-size: 1.8rem;
    color: #2f5d39;
    margin-top: 30px;
    margin-bottom: 15px;
}

.implementation-guidec p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.implementation-guidec li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.implementation-guide img.po-image {
    position: absolute;
    bottom: 200px;
    right: 0px;
    width: 30vw;
    height: auto;
    opacity: 1;
    z-index: 0;
}

.implementation-guide img.co2-image {
    position: absolute;
    bottom: 2px;
    left: 20px;
    width: 20vw;
    height: auto;
    opacity: 1;
    z-index: 0;
}

@media only screen and (max-width: 600px) {
    .implementation-guide img.po-image {
        display: none;
    }

    .implementation-guide img.co2-image {
        width: 70vw;
        bottom: 5px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 768px) {
    .implementation-guide img.po-image {
        display: none;
    }

    .implementation-guide img.co2-image {
        width: 50vw;
        bottom: 5px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .implementation-guide img.po-image {
        width: 55vw;
        bottom: 15vw;
        right: 0px;
    }

    .implementation-guide img.co2-image {
        width: 35vw;
        bottom: 5px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .implementation-guide img.po-image {
        width: 45vw;
        bottom: 15vw;
        right: 0px;
    }

    .implementation-guide img.co2-image {
        width:30vw;
        bottom: 5px;
    }
}

/* -----reading-recommendations----- */
.reading-recommendations {
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d1e8f1;
    background-image: url('Images/ru2.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
    padding: 50px 20px;
    text-align: center;
    flex-direction: column;
}

.reading-recommendationsc {
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    z-index: 1;
}


.reading-recommendationsc h2 {
    font-size: 2.5rem;
    color: #2f5d39;
    margin-bottom: 20px;
    text-align: center;
}

.reading-recommendationsc h3 {
    font-size: 1.8rem;
    color: #306138;
    margin-top: 30px;
    margin-bottom: 15px;
}

.reading-recommendationsc p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
}

.reading-recommendations img.ce2-image {
    position: absolute;
    bottom: 0px;
    left: 20px;
    width: 20vw;
    height: auto;
    opacity: 1;
    z-index: 0;
}

.reading-recommendations img.co3-image {
    position: absolute;
    bottom: 0px;
    right: 20px;
    width: 20vw;
    height: auto;
    opacity: 1;
    z-index: 0;
}

@media only screen and (max-width: 600px) {
    .reading-recommendations img.ce2-image {
        width: 50vw;
    }

    .reading-recommendations img.co3-image {
        width: 50vw;
    }
}

@media only screen and (min-width: 600px) and (max-width: 768px) {
    .reading-recommendations img.ce2-image {
        width: 40vw;
    }

    .reading-recommendations img.co3-image {
        width: 40vw;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .reading-recommendations img.ce2-image {
        width: 30vw;
    }

    .reading-recommendations img.co3-image {
        width: 30vw;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .reading-recommendations img.ce2-image {
        width: 25vw;
    }

    .reading-recommendations img.co3-image {
        width: 25vw;
    }
}

/* -----book-list----- */
.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

@media only screen and (max-width: 600px) {
    .book-list {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    }
}

.book-card {
    text-align: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.see-more-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* -----see-more-btn----- */
.see-more-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #ff9800;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
}

.see-more-btn:hover {
  background: #e68900;
}

/* -----pengenalan-program----- */
.pengenalan-program {
    padding: 60px 20px;
    background-color: rgba(48, 97, 56, 1);
    color: #f4f4f4;
    text-align: center;
}

.pengenalan-program h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.video-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* -----feedback----- */
.feedback {
    height: 95vh;
    display: flex;
    position: relative;
    background-image: url('Images/ru2.png');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
    justify-content: center;
    align-items: center;
    background-color: #fbf9f7;
    padding: 50px 20px;
    text-align: center;
}

.feedbackc {
    max-width: 800px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.feedbackc h2 {
    font-size: 2.5rem;
    color: #306138;
    margin-bottom: 20px;
    text-align: center;
}

.feedbackc p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.feedbackc form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feedbackc label {
    font-weight: bold;
    color: #306138;
}

.feedbackc input[type="text"],
.feedbackc input[type="email"],
.feedbackc textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.feedbackc textarea {
    min-height: 100px;
    resize: vertical;
}

.feedbackc button {
    background-color: #306138;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feedbackc button:hover {
    background-color: #24472c;
}

.feedback img.pg-image {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 30vw;
    height: auto;
    opacity: 1;
    z-index: 0;
}

@media only screen and (max-width: 600px) {
    .feedback img.pg-image {
        width: 70vw;
        bottom: -20px;
    }
}

@media only screen and (min-width: 600px) and (max-width: 768px) {
    .feedback img.pg-image {
        width: 60vw;
        bottom: -20px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 992px) {
    .feedback img.pg-image {
        width: 50vw;
        bottom: -20px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .feedback img.pg-image {
        width: 40vw;
        bottom: -20px;
    }
}

.features {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
    margin: 20px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
}

/* -----footer----- */

footer {
    background-color: #24472c;
    color: #FFFFFF;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}