.menu-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 15px;
}

.menu-item {
    padding: 1.25rem;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    font-weight: 500;
    position: relative;
    background: white;
}

/* Hover Effect */
.menu-item:hover {
    background: #f8f9fa;
    transform: translateX(8px);
    box-shadow: -4px 0 12px rgba(0, 86, 179, 0.15);
    color: #0056b3;
}

/* Active State */
.menu-item.active {
    background: #e3f2fd;
    color: #0d6efd;
    font-weight: 600;
    border-color: #cfd8dc;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #0d6efd;
}

/* Active State Hover */
.menu-item.active:hover {
    transform: translateX(4px);
    box-shadow: -2px 0 8px rgba(13, 110, 253, 0.2);
}

.menu-header {
    font-size: 1.4rem;
    font-weight: bold;
    color: #666;
    margin-bottom: 1rem;
    padding-left: 1rem;
}
.nav-icons {
    font-size: 20px;
    color: red;
    margin-left: 10px;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
}
.bottom-nav a {
    text-decoration: none;
    color: black;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

body {
    background-color: #f8f9fa;
}
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    padding: 20px;
}
.card-custom {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    background: rgba(143, 240, 172, 0.5); /* Transparent Light Blue */
    text-decoration: none;
    color: black;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-custom:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
}
.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-top: 10px;
}
.card-icon img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
}
.content-box {
    display: none;
    padding: 15px;
   
    border-radius: 10px;
    margin-top: 10px;
   
}
.nav-icons {
    font-size: 20px;
    color: red;
    margin-left: 10px;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: white;
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
}
.bottom-nav a {
    text-decoration: none;
    color: black;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

body {
    font-family: Arial, sans-serif;
    
}

.containers {
    padding: 50px 20px;
}

h1 {
    font-size: 28px;
    font-weight: bold;
}

.btn {
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 10px;
}

#cbtpart:hover,#studypart:hover{
	cursor: pointer;
}
.cbt-card{
	width: 90%;
}
.back-text{
	margin-left: 70%;
	padding: 30px;
	font-size:large;
}
#back2:hover{
	cursor: pointer;
}
#back1:hover{
	cursor: pointer;
}
.overlay-container .close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 44px;
    cursor: pointer;
    color: rgb(207, 86, 86);
}

input {
    margin-bottom: 10px;
}
/* Default Hidden State */
.overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

/* When Shown */
.overlay-container.show {
    opacity: 1;
    visibility: visible;
}

/* Inner Content */
.overlay-content {
    background-color: white;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(0px);
    transition: transform 0.5s ease-in-out;
	
}


.overlay-container.show .overlay-content {
    transform: translateY(140px);
}

.d-none {
    display: none;
}


        
        .header {
            background: rgb(255, 238, 204);
            padding: 20px;
			position:fixed;
			top: 0;
			left: 0;
			width: 100%;
			z-index: 1000;
        }
        .login-btn {
            background-color: red;
            color: white;
            border-radius: 20px;
            padding: 5px 10px;
            border: none;
            margin-right: 10px;
        }
        .create-btn {
            background-color: white;
            color: red;
            border-radius: 20px;
            padding: 5px 10px;
            border: 1px solid red;
        }
        .box {
            
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 10px;
			transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }
		.box a{
			text-decoration: none;
            color: inherit;
		}
		.textstyle{
			font-size: x-small;
		}
		.box img {
            width: 70px;
            height: 70px;
            border-radius: 10px;
            object-fit: cover;
			margin-left: 83%;
			margin-top: -15%;
        }
		.box:hover{
			background-color: rgb(141, 190, 141);
			transform: scale(1.02);
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
			opacity: 0.7;
		}
		.float-end{
			margin-left: 60%;
		}
        .nav-icons {
            font-size: 20px;
            color: red;
            margin-left: 10px;
        }
        .bottom-nav {
            position: fixed;
            bottom: 0;
            width: 100%;
            background: white;
            padding: 20px 0;
            display: flex;
            justify-content: space-around;
            border-top: 1px solid #ddd;
        }
        .bottom-nav a {
            text-decoration: none;
            color: black;
            text-align: center;
            font-size: 10px;
        }
        .bottom-nav .active {
            color: #36BB8A;
        }
		.news-card {
			margin-bottom: 20px;
            border-radius: 15px;
            border: 1px solid #ddd;
            padding: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 500px;
            text-decoration: none;
            color: inherit;
            transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        }
        .news-card:hover {
            transform: scale(1.02);
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
        }
        .news-card img {
            width: 70px;
            height: 70px;
            border-radius: 10px;
            object-fit: cover;
        }
        .news-card .content {
            flex-grow: 1;
            padding-right: 15px;
        }
        .news-card .title {
            font-weight: bold;
        }
        .news-card .meta {
            font-size: 14px;
            color: gray;
        }

/* for learn page */
body{
    background-color: floralwhite;
}
.bottom-nav .active {
    color: #36BB8A;
    
}
.bottom-nav{
    color: #36BB8A;
    z-index: 2;
}
.menu-container{
    margin-bottom: 100px;
    margin-top: 140px;
    padding-top: 10px;
  
}
.courses{
    position: relative;
    z-index: 1;
}
#search,#contentsearch{
    width: 95%;
    margin: 15px ;
    padding: 20px;
    border-radius: 20px;
}
#search:focus{
    border-color:rgb(250, 206, 118); ;
}
#searchdiv{
    width: 100%;
    position: fixed;
    top: 0%;
    z-index: 2;
    height: 130px;
    background-color:  rgb(255, 238, 204);
    padding-bottom: 10px;
}
#contentdiv{
    margin: 15px;
}
.lcontent{
    margin-top: 140px;
    padding: 10px;
}
.show{
    display: initial;
}
.d-none{
    display: none;
}
#close{
    color: red;
    font-weight: bolder;
    cursor: pointer;
    margin-left: 80%;
    font-size: smaller;
    width: 80px;
    display: none;
}
#close:hover{
    background-color: rgb(223, 204, 168);
    color: rgb(115, 139, 245);
    padding: 5px;
    border-radius: 10px;
}
#head{
    text-align: center;
    font-size: large;
}
body {
margin: 0;
font-family: Arial, sans-serif;
}

.menu-container.active {
display: block;
}

.overlay {
position: fixed;
top: 0; left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
display: none;
justify-content: center;
align-items: flex-end;
z-index: 999;
transition: opacity 0.5s ease;
}

.overlay.active {
display: flex;
opacity: 1;
}

.spinner-wrapper {
margin-bottom: 60px;
background-color: white;
padding: 20px;
border-radius: 50%;
box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.spinner {
width: 40px;
height: 40px;
border: 4px solid #ccc;
border-top: 4px solid teal;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

.contentdiv.active {
display: flex;
}
.back-button {
width: 30px;
height: 30px;
border-radius: 50%;
background-color: white;
border: 2px solid red;
display: none;
justify-content: center;
align-items: center;
cursor: pointer;
margin: 2%;
}

.back-button:hover {
background-color: #f0f0f0;
}

.back-button svg {
width: 24px;
height: 24px;
stroke: red;
}
.highlight {
background-color: yellow;
}
#controls {
position: fixed;
bottom: 10px;
right: 10px;
background: white;
padding: 10px;
box-shadow: 0 0 10px #aaa;
z-index: 999;
display: none;
}
/* Modal Overlay */
.confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.d-none {
    display: none;
}
.modal-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}