@font-face {
    font-family: poopins;
    src: url(../font/Poppins-Regular.ttf);
}

/* General Styles */
* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    box-sizing: border-box;
    font-family: poopins;
}

body {
    background-color: #121d2b;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c95125;
    color: #ffffff;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: 0s;
}

.btn a {
    color: white;
    display: block;
}

.btn:hover {
    background-color: transparent;
    transition: 0.3s;
    color: #000000;
    border: 1px solid #000000;
}

.explore-button-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.explore-button {
    display: inline-block;
    background-color: #c95125;
    color: #0d0b0b;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.explore-button:hover {
    background-color: transparent;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    padding: 0.8rem 6rem;
    width: 100%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: background-color 0.6s, box-shadow 0.6s;
}

.logo img {
    height: 50px;
}

.nav-list {
    list-style: none;
    display: flex; 
    gap: 20px; 
    margin: 0;
    padding: 0;
    align-items: center; 
}

.nav-list li a {
    color: #fff;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s ease-in-out;
    text-decoration: none;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav-list li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-list li a:hover {
    color: #f0f0f0;
}
.dropdown{
    position: relative;
}
.dropdown-menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #121d2b;
    padding: 10px 0px;
    list-style: none;
    min-width: 150px;
    z-index: 999;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}
.dropdown-menu li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 8px 16px;
}

.dropdown-menu li a:hover {
    background-color: #c95125;
}

.dropdown:hover .dropdown-menu {
    display: block;
}.dropdown > a {
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 20px;
}
.dropdown > a i.bx {
    margin-left: 8px; 
    font-size: 1rem; 
    transition: transform 0.3s ease; 
    color: #fff; 
}

.dropdown:hover > a i.bx {
    transform: rotate(180deg); 
}

/* Hero Section Styles */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../img/dc1319f64c99fe099ab7b27808d8907b.webp') center/cover no-repeat;
    background-color: #121d2b89;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    padding: 0 5rem;
    overflow: hidden;
    padding-bottom: 50px;
}

.hero::after {
    position: absolute;
    content: '';
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to top, #121d2b 0%, #121d2b69 80%);
    pointer-events: none;
}

.hero-text {
    color: white;
    margin-right: 1rem;
    text-align: center;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
}

.hero-text span {
    color: #c95125;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

#typed-text {
    font-size: 1.5rem;
    font-weight: bold;
    display: inline;
    border-right: 2px solid #c95125;
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    animation: blink-caret 0.7s step-end infinite;
}

/* Category */
.category {
    padding: 4rem;
}

.category-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.icon-card {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.icon-card i {
    color: #151212;
    font-size: 2rem;
    transition: 0s;
}

.category-item p {
    margin: 0;
    color: #eee8e8;
    font-size: 1rem;
}

.icon-card:hover {
    background-color: #c95125;
    transition: 0.5s;
}

.icon-card:hover i {
    color: #ffffff;
}

/* Course Section Styling */
.course-section {
    padding: 3rem;
    background-color: #0f2b4f66;
    border-radius: 35px;
    margin: 0 5rem;
}

.course {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
}

.course-card {
    min-height: 400px;
    background-color: #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 1 0 21%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(0);
    position: relative;
}

.center-card {
    flex: 1 0 21%;
    margin: 0 auto;
}

.course-card h4 {
    font-size: 1.25rem;
    color: #121d2b;
    margin-bottom: 10px;
    display: -webkit-box;
    display: box;
    display: -moz-box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    -ms-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    -moz-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-card p {
    font-size: 0.95rem;
    color: #121d2b;
    margin: 10px 0;
    display: -webkit-box;
    display: box;
    display: -moz-box;
    -webkit-line-clamp: 3;
    -moz-line-clamp: 3;
    -ms-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    -moz-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

.course-card:hover {
    transform: translateY(-10px);
}

.category-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #c95125;
    color: #fdfeff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.course-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.price-rating-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 1rem;
    color: #c95125;
    margin-bottom: 5px;
}

.rating {
    font-size: 1rem;
    color: #c95125;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.rating i {
    font-size: 20px;
    margin-right: 5px;
}

.explore-button-container {
    text-align: center;
    margin-top: 20px;
}

.explore-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #c95125;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.explore-button-container .explore-button:hover {
    background-color: #e05d3200;
    border: 1px solid #000000;
    color: black;
}


/* Carousel */
.logos {
    overflow: hidden;
    padding: 60px 0;
    background-color: #121d2b;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.logos:before,
.logos:after {
    content: "";
    position: absolute;
    top: 0;
    width: 250px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos:before {
    left: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0));
}

.logos:after {
    right: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0));
}

.logos:hover .logos-slide {
    animation-play-state: paused;
}

.logos-slide {
    display: inline-block;
    animation: 35s slide infinite linear;
}

.logos-slide img {
    height: 100px;
    margin: 0 20px;
    filter: grayscale(100%);
    transition: filter 0.5s ease-in-out;
}

.logos-slide img:hover {
    filter: grayscale(0%);
    cursor: pointer;
}

/* About us */
.about-us-container {
    background-color: #0f2b4f66;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
}

.about-us-content {
    padding: 0 8rem;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.about-us-container .section-title {
    margin-top: 80px;
}

.about-us-text {
    flex: 1;
    margin-top: 20px;
    padding: 20px;
    color: #d0d0d0;
}

.about-us-image {
    flex: 1;
    max-width: 50%;
}

.about-us-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-us-sejarah {
    margin-top: 20px;
}

.about-us-tujuan {
    margin-top: 20px;
    flex-direction: row-reverse;
}

/* Teacher */
.teacher-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
}
.teacher-card {
    flex: 0 0 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-10px); 
}
/* Testimonial */

.wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    display: flex;
    overflow: hidden; 
}

.carousel {
    display: flex;
    gap: 10px;
    list-style: none;
    animation: slide 30s linear infinite; 
}

.card {
    min-width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
}

.card .img {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto;
}

.card .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Footer */
.footer {
    background-color: #0f2b4f66;
    color: #f6e9e9;
    padding: 50px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-about,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.footer p {
    font-size: 1em;
    line-height: 1.6;
}

.footer-links ul,
.footer-social ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li,
.footer-social ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-social ul li a {
    color: #f6e9e9;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-links ul li a:hover,
.footer-social ul li a:hover {
    color: #878484;
}

.footer-social ul li i {
    font-size: 1.5em;
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2e3a59;
    font-size: 0.9em;
}

/* Additional Styles */
nav.scrolled {
    background-color: #121d2b;
    box-shadow: 0 2px 4px rgba(191, 185, 185, 0.093);
}

nav.scrolled ul li a:hover {
    color: #ffffff;
}

nav.scrolled ul li a {
    transition: color 0.3s;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}

.partner-title {
    margin-top: 3rem;
}

span {
    color: #c95125;
}

.desc-section {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* animation */
@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}
@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #c95125;
    }
}
/* Responsive */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #121d2b;
        flex-direction: column;
        gap: 0;
        width: 100%;
        display: none;
        text-align: right;
        padding: 10px 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        padding: 10px 20px;
        width: 100%;
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .nav-list.active {
        display: flex;
    }
}
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }
}
@media (max-width: 1200px) {
    .hero {
        padding: 0 3rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    #typed-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 0 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    #typed-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    #typed-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 80vh; 
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 0.8rem;
    }

    #typed-text {
        font-size: 0.9rem;
    }
}
@media (max-width: 1200px) {
    .course-card {
        flex: 1 0 30%; 
    }
}

@media (max-width: 992px) {
    .course-section {
        margin: 0 3rem;
    }

    .course-card {
        flex: 1 0 45%; 
    }
}

@media (max-width: 768px) {
    .course-section {
        margin: 0 2rem;
    }

    .course-card {
        flex: 1 0 100%; 
    }

    .course-section {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .course-section {
        margin: 0 1rem;
        padding: 1.5rem;
    }

    .course-card {
        flex: 1 0 100%; 
        margin-bottom: 20px;
    }

    .course-card h4 {
        font-size: 1.15rem;
    }

    .course-card p {
        font-size: 0.9rem;
    }

    .explore-button {
        font-size: 0.9rem;
    }
}
@media (max-width: 1200px) {
    .logos-slide img {
        height: 80px; 
        margin: 0 15px; 
    }
}

@media (max-width: 992px) {
    .logos {
        padding: 40px 0; 
    }

    .logos-slide {
        animation: 30s slide infinite linear; 
    }

    .logos-slide img {
        height: 70px; 
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .logos-slide img {
        height: 60px; 
        margin: 0 8px;
    }
}

@media (max-width: 576px) {
    .logos {
        padding: 30px 0; 
    }

    .logos-slide img {
        height: 50px; 
        margin: 0 5px; 
    }

    .logos-slide {
        animation: 25s slide infinite linear; 
    }
}
@media (max-width: 1200px) {
    .about-us-content {
        padding: 0 4rem; 
    }

    .about-us-text {
        padding: 15px; 
    }
}

@media (max-width: 992px) {
    .about-us-content {
        flex-direction: column; 
        padding: 0 3rem;
        text-align: center; 
    }

    .about-us-text {
        margin-bottom: 20px; 
        padding: 20px;
    }

    .about-us-image {
        max-width: 70%; 
        margin-bottom: 20px; /
    }
}

@media (max-width: 768px) {
    .about-us-content {
        padding: 0 2rem;
    }

    .about-us-image {
        max-width: 90%; 
    }

    .about-us-text {
        padding: 10px; 
    }
}

@media (max-width: 576px) {
    .about-us-content {
        padding: 0 1rem; 
    }

    .about-us-image {
        max-width: 100%; 
    }

    .about-us-text {
        font-size: 0.9rem; 
    }

    .about-us-container .section-title {
        margin-top: 40px; 
    }
}
@media (max-width: 768px) {
    .teacher-card {
        flex: 0 0 45%; 
    }
}

@media (max-width: 480px) {
    .teacher-card {
        flex: 0 0 90%; 
        margin-bottom: 10px; 
        
    }

}
@media (max-width: 600px) {
    .card {
        min-width: 250px;
    }

    .card .img {
        width: 80px; 
        height: 80px; 
    }
}
