@font-face {
    font-family: 'Poppins';
    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: 'Poppins';
}

body {
    background-color: #121d2b;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
}
/* 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;
}

/* Show dropdown on hover */
.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); 
}
/* Btn */
.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:hover {
    background-color: transparent;
    transition: 0.3s;
    color: #000000;
    border: 1px solid #f2f2f2;
}

/* Section Title */
.section-title-course {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}
.section-title-instruktur {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin: 5px;
    color: #ffffff;
}
.section-title-course-free{
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-align: center;
}
.desc-section{
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
}
span {
    color: #c95125;
}
.course{
    padding: 3rem;
    margin: 3rem;
}
/* Header Styles */
.course .header {
    padding: 20px;
    margin-bottom: 20px;
}

.course .header h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.course .header p {
    font-size: 1rem;
    color: #aaaaaa;
}

/* Tabs Styles */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tab-btn {
    background-color: #121d2b;
    color: #aaaaaa;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s, color 0.3s;
}

.tab-btn.active {
    background-color: #c95125;
    color: #ffffff;
}

.tab-btn:hover {
    background-color: #c95125;
    color: #ffffff;
}
.course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    gap: 10px;
}

.course-card {
    min-height: 400px;
    background-color: #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
    width: 30%;
    margin: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(0);
    position: relative;
}

.course-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    justify-content: space-between;
}

.course-card h4 {
    font-size: 1.2rem;
    color: #121d2b;
    flex-grow: 1;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2; /* Standard property (unsupported in most browsers) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-card p {
    margin: 10px 0;
    color: #121d2b;
    flex-grow: 1;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    line-clamp: 3; /* Standard property (unsupported in most browsers) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.price-rating-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}
.course-card .price {
    font-size: 1rem;
    color: #121d2b;
    font-weight: bold;
}

.course-card .rating {
    font-size: 0.9rem;
    color: #c95125;
    display: flex;
    align-items: center;
}

.course-card .rating i {
    margin-right: 2px;
}

.course-card .rating span {
    margin-left: 5px;
}

.course-card .btn {
    background-color: #c95125;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    display: block;
    margin-top: 10px; /* Ensure button stays at the bottom */
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: stretch; /* Ensure button stretches to fit width */
}

.course-card .btn:hover {
    background-color: #b13f20;
}

.rating {
    font-size: 16px;
    font-weight: bold;
}

.star {
    color: orange;
}
.instructors-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: #c95125 transparent;
    overflow-x: auto;
    padding: 20px 0;
}
.instructors-section::-webkit-scrollbar {
    height: 8px;
}
instructors-section::-webkit-scrollbar-thumb {
    background-color: #c95125;
    border-radius: 10px;
}
.instructor-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    min-width: 250px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.instructor-card:hover {
    transform: scale(1.05);
}
.instructor-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.instructor-card h3 {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
}

.instructor-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}
.accordion-container {
    width: 100%;
    margin-top: 20px;
    padding: 3rem;
}

/* Accordion button styles */
.accordion {
    background-color: #121d2b;
    color: #e1d9d9;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    border-radius: 5px;
    position: relative;
}

/* Add down arrow using ::after */
.accordion::after {
    content: '\25BC'; /* Unicode for down arrow */
    font-size: 16px;
    color: #444;
    position: absolute;
    right: 15px;
    top: 18px;
    transition: transform 0.3s ease;
}

/* Accordion button on hover */
.accordion:hover {
    background-color: #121d2b66;
    color:white;
}

/* Accordion button when it's active */
.accordion.active {
    background-color: #121d2b66;
}

/* Rotate arrow when active (open) */
.accordion.active::after {
    transform: rotate(180deg); /* Rotates the arrow upwards */
}

/* Panel for each accordion item */
.panel {
    padding: 0 15px; 
    background-color: #121d2b;
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.5s ease-in-out; 
    margin-bottom: 10px;
    border: 1px solid #f5eeee;
    border-radius: 5px;
}
/* Accordion content styling */
.panel p {
    font-size: 16px;
    line-height: 1.6;
    color: #f5eeee;
    margin: 0;
    margin: 15px 0;
}
.video-carousel-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
}

.video-carousel {
    display: flex;          
    flex-direction: row;   
    overflow-x: auto;      
    white-space: nowrap;    
    padding: 10px;
}
.video-card {
    flex-shrink: 0; /* Prevent the cards from shrinking */
    width: 250px; /* Fixed width for each card */
    background-color: white;
    margin: 0 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #121d2b;
    white-space: normal; /* Allow wrapping inside the card */
    scrollbar-width: none; 
}
.video-carousel::-webkit-scrollbar {
    display: none; 
}
.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: #121d2b;
}

.bx-play-circle {
    font-size: 40px;
    color: white;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 0;
}
/* Footer */
.footer {
    background-color: #0f2b4f00;
    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;
}
/* Additonial */
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;
}
/* 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: 992px) {
    .course {
        padding: 2rem;
        margin: 2rem;
    }

    .course .header {
        padding: 15px;
        margin-bottom: 15px;
    }

    .course .header h2 {
        font-size: 1.6rem; /* Adjusted font size for tablets */
    }
}

@media (max-width: 768px) {
    .course {
        padding: 1.5rem;
        margin: 1.5rem;
    }

    .course .header {
        padding: 12px;
        margin-bottom: 12px;
    }

    .course .header h2 {
        font-size: 1.4rem; 
    }
}

@media (max-width: 576px) {
    .course {
        padding: 1rem;
        margin: 1rem;
    }

    .course .header {
        padding: 1.2rem;
        margin-bottom: 10px;
    }

    .course .header h2 {
        font-size: 1.2rem
    }
}
@media (max-width: 768px) {
    .tab-btn {
        padding: 8px 16px; 
        font-size: 0.9rem; 
        margin: 5px 10px;
    }
}

@media (max-width: 576px) {
    .tabs {
        justify-content: flex-start; 
        padding: 0 10px; 
        gap: 10px;
    }

    .tab-btn {
        padding: 6px 12px ;
        margin: 5px 5px; 
        flex: 1 0 auto;
        font-size: 0.85rem; 
    }
}
@media (max-width: 992px) {
    .course-card {
        width: 45%; 
    }
}

@media (max-width: 768px) {
    .course-card {
        width: 100%; 
        margin: 5px; 
    }
}
@media (max-width: 768px) {
    .instructors-section {
        padding: 10px 0;
        justify-content: flex-start;
        gap: 10px; 
    }

    .instructor-card {
        min-width: 200px; 
        padding: 15px; 
    }

    .instructor-photo {
        width: 70px; 
        height: 70px;
    }

    .instructor-card h3 {
        font-size: 16px; 
    }

    .instructor-card p {
        font-size: 13px; 
    }
}