/* Sidebar Styling */
.sidebar {
    width: 150px;
    background-color: #f7f8fa;
    position: fixed;
    height: 100%;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: scroll;
}

.modal-content{
    width:130%!important;
}

.sidebar h2 {
    padding: 15px;
    color: #333;
    font-size: 1.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.sidebar a {
    text-decoration: none;
    padding: 15px;
    display: flex;
    align-items: center;
    color: #333;
    font-weight: 500;
    font-size: 0.9em;
    transition: background 0.3s;
}

.sidebar a:hover, .sidebar a.active {
    background-color: #ff6347;
    color: #fff;
}

.sidebar a i {
    margin-right: 10px;
}


        /* Content styling */
        .content {
            flex: 1; /* Take up remaining horizontal space */
            padding: 20px;
            overflow-y: auto; /* Enable vertical scrolling if necessary */
            background-color: #ffffff;
        }
        
.navbar-expand-lg{
        margin-left: 105px;
}



.content h3 {
    font-weight: bold;
    margin-bottom: 20px;
}

/* Card styling */
.card {
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* Tabs styling */
.nav-tabs .nav-link {
    color: #333;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #ff6347;
    font-weight: bold;
}

/* Footer styling */
.footer {
    background-color: #005073;
    color: #fff;
    padding: 20px;
    text-align: left;
    bottom: 0;
    width: 100%;
    z-index:-1;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #fff;
    text-decoration: underline;
}

/* Custom Button styling */
.btn-custom {
    background-color: #ff6347;
    color: #ffffff;
}

.btn-custom:hover {
    background-color: #e5533d;
    color: #fff;
}

img.dashboard-logo {
    width:50%;
  display:block;
}


.bg-login-image {
    background-image: url('/assets/imgs/africode-login.webp');
    background-size: cover;
    background-position: center;
}


        .list-item {
            display: flex;
            align-items: center;
            background-color: #d7dfdf;
            margin-top: 10px;
        }

        .list-item.red {
            background-color: #e01e26;
            color: white;
        }

        .list-item i {
            margin-left: auto;
        }

        .list-item img {
            width: 40px;
            height: 40px;
            margin-right: 10px;
        }

        .dashboard {
            padding: 20px;
        
        }

        .no-border {
            border-radius: 0px;
        }

        .color-line {
            position: absolute; /* Enables positioning relative to its nearest positioned ancestor */
            top: 600px; /* Adjust this value to position it where you need */
            left: 15%; /* Adjust to control horizontal position */
            z-index: 1; /* Ensures it appears above background elements but below higher priority elements */
        }
        
                 /* Navigation bar */
         .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 50px;
            border-bottom: 1px solid #ddd;
        }

        /* Logo */
        .navbar-brand img {
            width: 100px;
            height: auto;
        }

        /* Navigation links */
        .navbar-nav {
            display: inline-flex !important;
            flex-direction:unset!important;
            list-style: none;
            gap: 30px;
            margin: 0;
            padding: 0;
        }

        .nav-link {
            text-decoration: none;
            color: black;
            font-weight: bold;
            position: relative;
        }

        /* Active link underline */
        .nav-link.active::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 100%;
            height: 2px;
            background-color: #dc3545;
        }

        .nav-link:hover {
            color: #007bff;
        }

        /* Login Button */
        .btn-login {
            background-color: #dc3545;
            color: #fff!important;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 5px 15px;
            border: none;
            border-radius: 4px;
            
        }
        
        i.bi.bi-lock-fill{
            border-right: solid 2px white;
        }
        

        .btn-login:hover {
            background-color: #c82333;
        }
        

        .hero-image {
            background: url("/assets/imgs/home-page-hero-africode.webp") center center / cover no-repeat;
            min-height: 650px;
        }

        .btn-register {
            color: white;
            font-weight: bold;
        }
        
        .world-img{
        width: 550px;
    height: 550px!important;
    object-fit: cover;
    object-position: -280px;
        }

        .bg-green { background-color: #28a745 !important; }
        .bg-red { background-color: #dc3545 !important; }

        @media (max-width: 768px) {
            .bg-image {
                min-height: 400px;
            }
            
            
        }
        

        .hex-item {
    position: relative;
    clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
    background-color:#90c43e;
    opacity:0.4;
    width: 250px!important;
    max-width: 250px!important;
    height: 250px!important;
    z-index: 1;
    margin-right:50px;
    padding: 100px;
}

.hex-item:hover {
    position: relative;
    clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
    background-color: #90c43e;
    opacity:1;
    width: 250px;
    height: 250px;
    z-index: 1;
 
}

.cap-img{
    position:relative;
    margin-left:auto;
    margin-right:auto;
}

.border-1{
border:solid 2px #000;
padding:5px;
gutter:5px;
}

   .dashboard h2 {
            margin-bottom: 20px;
        }

       

        /* Identity warning alert */
        .alert {
            margin-top: 10px;
        }

        /* Main container for sidebar and content */
        .main-container {
            display: flex;
            height: 100vh; /* Full height of viewport */
            overflow: scroll!important; /* Prevent scrolling */
        }

        /* Sidebar styling */
        .side-bar {
            flex: 0 0 300px; /* Fixed width for the sidebar */
            padding: 20px;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
            overflow-y: auto; /* Enable vertical scrolling */
            background-color:#e3eef8;
            box-shadow: #000;
        }
        
        
            .notification-bell {
        position: relative;
        cursor: pointer;
        display: inline-block;
    }

    .notification-bell:hover {
        color: #007bff;
    }

    .notification-dropdown {
        display: none;
        position: absolute;
        top: 40px;
        right: 0;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 300px;
        max-height: 400px;
        overflow-y: auto;
        z-index: 1000;
        border-radius: 5px;
    }

    .notification-dropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .notification-dropdown li {
        border-bottom: 1px solid #ddd;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .notification-dropdown li:last-child {
        border-bottom: none;
    }

    .notification-dropdown li:hover {
        background-color: #f8f9fa;
    }

    .notification-item {
        cursor: pointer;
    }

    .dismiss-btn {
        background: none;
        border: none;
        color: #dc3545;
        cursor: pointer;
        font-size: 16px;
    }

    .dismiss-btn:hover {
        color: #bd2130;
    }

    /* Style for modal header and body */
    .modal-header {
        background: #007bff;
        color: white;
    }

    .modal-body p {
        margin-bottom: 10px;
    }
    .form-container {
            max-width: 100%;
            margin: 0 auto;
            border: 1px solid #ccc;
            padding: 20px;
            border-radius: 5px;
                width: 50%;
        }
        .form-container h2 {
            text-align: center;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            font-weight: bold;
            margin-bottom: 5px;
        }
        .form-group input, 
        .form-group textarea, 
        .form-group select {
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 1em;
        }
        .form-group button {
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
        }
        .form-group button:hover {
            background-color: #0056b3;
        }
         .faq-card {
            margin-bottom: 20px;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            padding: 15px;
            background-color: #f8f9fa;
        }
        .faq-card h5 {
            font-weight: bold;
        }
        .btn-group {
            margin-top: 10px;
        }
        
.coursetitle{
    padding:10px;
    border: 1px solid #000;
    width:30%;
    float:right;
}
    
div.container.my-4.inner{
    overflow:auto;
    height:auto;
}

.mobile-bottom-nav .nav-item.active{
    color: #dc3545 !important;
}