/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&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;
        background: linear-gradient(#0059FF, #ff4800);
    }
}

/* ===== 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 ===== */
.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;
}

/* ===== CARDS GRID ===== */
.card-hover {
    transition: transform .15s ease, box-shadow .15s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ratio-1x1 {
    --bs-aspect-ratio: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .col-md-9 {
        margin-top: 0.5rem;
        padding: 1rem !important;
        border-radius: 20px;
    }
    
    .crlImgContainer {
        height: 300px;
    }
    
    .main-content {
        padding: 1rem !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 36px;
        height: 36px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
}

/* Additional responsive for smaller screens */
@media (max-width: 576px) {
    .row-cols-2 > .col-6 {
        width: 100%;
    }
    
    .crlImgContainer {
        height: 250px;
    }
}