/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-style: normal;
}

/* ===== NAVBAR ===== */
#navbar {
    background-color: #0059FF;
}

#logo {
    width: 60px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: white;
    cursor: pointer;
    border: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    padding: 10px 0;
    z-index: 100;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: black;
    font-size: smaller;
}

.dropdown-content a:hover {
    background-color: #0059FF;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Desktop dropdown */
.navbar-nav > .dropdown:hover > .dropdown-menu {
    display: block !important;
}

/* ===== SIDEBAR & TOGGLE ===== */
.sidebar {
    position: sticky;
    top: 100px;
    padding: 20px;
}

.sidebar .btn {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(90px);
    border: 1px solid #b6b6b6;
    border-radius: 5px;
}

.sidebar .btn:hover {
    color: white !important;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toggle-sidebar {
    display: none;
    position: fixed;
    top: 80px;
    left: 20px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(90px);
    border: 1px solid #b6b6b6;
}

@media (max-width: 768px) {
    .toggle-sidebar {
        display: block;
    }
    
    .sidebar-wrapper {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .sidebar-wrapper.active {
        left: 0;
    }
    
    .sidebar {
        position: relative;
        top: 0;
        width: 75%;
        height: 100vh;
        padding: 20px;
        overflow-y: auto;
    }
}

/* ===== MAIN CONTENT ===== */
.col-md-9 {
    margin-top: 1.2rem;
    border-top-left-radius: 20px;
}

.main-content {
    background-color: rgba(255, 255, 255, 1);
    border-left: 3px solid #ff4800;
    border-radius: 15px;
    padding: 1.5rem !important;
}

/* ===== CAROUSEL (KEGIATAN) ===== */
.crlImgContainer {
    height: 500px;
}

.crlImgContainer img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
}

.carousel-indicators button.active {
    background-color: white;
}

/* ===== TEACHERS SECTION ===== */
.teachers-section {
    padding: 1.5rem !important;
    background-color: #f8f9fa;
    border-radius: 15px;
}

.teacher-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: .375rem;
    border-top-right-radius: .375rem;
}

.teacher-card .card-body {
    min-height: 110px;
}

.teacher-carousel-inner {
    overflow: hidden;
}

.teacher-slide-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    transition: transform .4s ease;
}

.teacher-col {
    flex: 0 0 50%;
    max-width: 50%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .teacher-card img {
        height: 180px;
    }
}

@media (min-width: 768px) {
    .teacher-col {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

@media (max-width: 768px) {
    .col-md-9 {
        margin-top: 0.5rem;
        padding: 1rem !important;
        border-radius: 20px;
    }
    
    .crlImgContainer {
        height: 300px;
    }
    
    .main-content, .teachers-section {
        padding: 1rem !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .crlImgContainer {
        height: 250px;
    }
}

.teacher-card img { height: 200px; object-fit: cover; width: 100%; border-top-left-radius: .375rem; border-top-right-radius: .375rem; }
    .teacher-card .card-body { min-height: 110px; }
    @media (max-width: 576px) {
        .teacher-card img { height: 180px; }
    }

    /* show only two cards in viewport on small screens */
    .teacher-carousel-inner { overflow: hidden; }
    .teacher-slide-row { display: flex; flex-wrap: nowrap; gap: 1rem; transition: transform .4s ease; }
    .teacher-col { flex: 0 0 50%; max-width: 50%; } /* two per viewport on phones */
    @media (min-width: 768px) {
        .teacher-col { flex: 0 0 33.3333%; max-width: 33.3333%; } /* three per viewport on md+ */
    }