
.navbar {
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;

}

.navbar .navbar-brand {
    color: white;
    font-size: 20px;
}

.navbar .nav-link {
    color: white;
    padding: 8px 8px !important;
    border-radius: 6px;
    transition: 0.3s ease-in-out;
    white-space: nowrap;
}
/* Sidebar for Mobile Devices */
.navbar .learntrade {
    color: white;
    padding: 8px 8px !important;
    border-radius: 6px;
    transition: 0.3s ease-in-out;
    white-space: nowrap;
    font-size: 14px;
}


.topics-container {
    flex-grow: 1;
    overflow-x: auto;
    display: flex;
    white-space: nowrap;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    
}

.topics-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
   
}

.scroll-btn {
    background: transparent;
    border: none;
    color: rgb(114, 114, 237);
    font-size: 10px;
    cursor: pointer;
    padding: 5px 10px;
    transition: 0.3s ease-in-out;
}

.scroll-btn:hover {
    color: #3311a3;
}

.left-btn {
    margin-right: 5px;
}

.right-btn {
    margin-left: 5px;
}
/* Show Scroll Buttons only on overflow */
@media (max-width: 992px) {
    .scroll-btn {
        display: flex;
    }
    .topics-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
}
.modal-content {
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease-in-out;
}

.modal-header {
    border-bottom: none;
    font-weight: bold;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.close-btn:hover {
    color: red;
}

.modal-body {
    padding: 20px;
}

#subtopics-list {
    padding: 0;
    list-style: none;
}

#subtopics-list li {
    background: #f8f9fa;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    text-transform: capitalize;
}

#subtopics-list li:hover {
    background: linear-gradient(135deg, #1C2833, #2C3E50); /* Reverse gradient on hover */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: #ffffff; /* White text */
}    
/* Default for larger screens (like laptops) */
.learning1-img {
    width: 600px;
    height: 400px;
}

/* For tablets (width less than 768px) */
@media (max-width: 768px) {
    .learning1-img {
        width: 450px;
        height: 300px;
    }
}

/* For mobile devices (width less than 576px) */
@media (max-width: 576px) {
    .learning1-img {
        width: 100%;
        height: auto; /* Maintain aspect ratio */
    }
}

/* Default size for laptops (1000px by 600px) */
.learning2-img {
    width: 900px;
    height: 600px;
    float: left;
    margin-right: 0px; /* Add some spacing from other content */
}

/* For tablets (width less than 768px) */
@media (max-width: 768px) {
    .learning2-img {
        width: 700px;
        height: 420px;
    }
}

/* For mobile devices (width less than 576px) */
@media (max-width: 576px) {
    .learning2-img {
        width: 100%;
        height: auto; /* Maintain aspect ratio */
    }
}
/* Default for larger screens (like laptops) */
.learning3-img {
    width: 400px;
    height: 700px;
}

/* For tablets (width less than 768px) */
@media (max-width: 768px) {
    .learning3-img {
        width: 350px;
        height: 600px;
    }
}

/* For mobile devices (width less than 576px) */
@media (max-width: 576px) {
    .learning3-img{
        width: 100%;  /* Full width of the mobile screen */
        height: auto; /* Adjust height based on content or aspect ratio */
    }
}

/* Default for larger screens (like laptops) */
.learning4-img {
    width: 850px;
    height: 600px;
}

/* For tablets (width less than 768px) */
@media (max-width: 768px) {
    .learning4-img {
        width: 600px;
        height: 450px;
    }
}

/* For mobile devices (width less than 576px) */
@media (max-width: 576px) {
    .learning4-img {
        width: 100%; /* Full width of the mobile screen */
        height: auto; /* Maintain aspect ratio */
    }
}
.learning5-img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-width: 600px; /* Ensure it doesn't exceed the original size */
}

/* For tablets */
@media (max-width: 768px) {
    .learning5-img {
    max-width: 400px; /* Adjust for tablet size */
    }
}

/* For mobile screens */
@media (max-width: 480px) {
    .learning5-img {
    max-width: 300px; /* Adjust for mobile size */
    }
}


.learning6-img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-width: 400px; /* Ensure it doesn't exceed the original size */
}

/* For tablets */
@media (max-width: 768px) {
    .learning6-img {
    max-width: 300px; /* Adjust for tablet size */
    }
}

/* For mobile screens */
@media (max-width: 480px) {
    .learning6-img {
    max-width: 300px; /* Adjust for mobile size */
    }
}

/* Default size for laptops (1000px by 600px) */
.learning7-img {
    width: 900px ;
    height: auto;
    float: left;
    margin-right: 0px; /* Add some spacing from other content */
    background-color: transparent;
}

/* For tablets (width less than 768px) */
@media (max-width: 768px) {
    .learning7-img {
        width: 100px;
        height: auto;
    }
}

/* For mobile devices (width less than 576px) */
@media (max-width: 576px) {
    .learning7-img {
        width: 100%;
        height: auto; /* Maintain aspect ratio */
    }
}


.learning-page  {
    font-family: Verdana,sans-serif !important;
}

.learning-page h2, .learning-page p, .learning-page ul, .learning-page li {
    font-family: Verdana,sans-serif !important;
}

h1 {
    text-align: center;
    color: #333;
}
p {
    font-size: 1.2em;
}
.formula {
    background: #f4f4f4;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    display: inline-block;
}
ul {
    list-style-type: none;
    padding: 0;
}
ul li {
    margin: 0px ;
}
.example {
    background-color: #e9f7f6;
    border-left: 5px solid #48c9b0;
    padding: 10px;
    margin-top: 20px;
    }
    .cloud {
    background-color: #f0f8ff;
    border-left: 5px solid #00aaff;
    padding: 10px;
    margin-top: 15px;
}
.signal {
    background-color: #f0f8ff;
    border-left: 5px solid #00aaff;
    padding: 10px;
    margin-top: 15px;
    }
    

table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
thead {
    background-color: #91c2f5;
    color: #2e2d2d;
}
th, td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
th {
    font-weight: bold;
}
caption {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #333;
}
.navigation-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.navigation-buttons .btn {
    background: linear-gradient(135deg, #2C3E50, #1C2833); /* Professional dark blue gradient */
    color: white;
    border: none;
    border-radius: 8px; /* Smooth rounded corners */
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.navigation-buttons .btn:hover {
    background: linear-gradient(135deg, #1C2833, #2C3E50); /* Reverse gradient on hover */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    color: #ffffff; /* White text */
}
.previous-topic-btn, .next-topic-btn {
    display: inline-block;
    padding: 10px 20px; /* Add some padding for better appearance */
    background-color: #007bff; /* Example button background */
    color: #fff; /* Button text color */
    border: none; /* Remove default border */
    border-radius: 4px; /* Slightly rounded corners */
    cursor: pointer; /* Show pointer on hover */
}

.previous-topic-btn:disabled, .next-topic-btn:disabled {
    background-color: #ccc; /* Disabled state background */
    cursor: not-allowed; /* Show 'not-allowed' cursor */
}

.next-topic-btn.first-page {
    margin-left: auto; /* Align to the right only on the first page */
}
.modal-bg{
    background: linear-gradient(135deg, #1C2833, #2C3E50); /* Reverse gradient on hover */

}