/* Custom Styles */
body {
font-family: Arial, sans-serif;
background-color: #f8f9fa;
color: #333;
}

.gray-bg {
background-color: #f8f9fa;
}

.courses-top-search {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
}

.courses-top-search .nav {
display: flex;
align-items: center;
}

.courses-top-search .nav-item {
margin-right: 20px;
font-size: 16px;
color: #333;
}

.courses-top-search .nav-item a {
color: #333;
text-decoration: none;
}

.courses-top-search .nav-item a.active {
color: #007bff;
}

.courses-search input {
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
width: 200px;
transition: border-color 0.3s ease;
}

.courses-search input:focus {
border-color: #007bff;
outline: none;
}

.courses-search button {
padding: 10px 15px;
background-color: #007bff;
border: none;
border-radius: 5px;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease;
}

.courses-search button:hover {
background-color: #0056b3;
}

.singel-course {
background: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
margin-bottom: 30px;
}

.singel-course:hover {
transform: translateY(-10px);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.singel-course .thum {
position: relative;
}

.singel-course .thum .image img {
width: 100%;
height: 200px;
object-fit: cover;
}

.singel-course .thum .price {
position: absolute;
top: 10px;
right: 10px;
background-color: #007bff;
color: #fff;
padding: 5px 10px;
border-radius: 5px;
font-size: 14px;
}

.singel-course .cont {
padding: 20px;
}

.singel-course .cont h4 {
font-size: 18px;
margin-bottom: 10px;
color: #333;
}

.singel-course .cont a {
text-decoration: none;
color: inherit;
}

.singel-course .cont a:hover {
color: #007bff;
}
.cont {
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid #ddd;
padding: 10px 15px;
border-radius: 5px;
background: #f9f9f9;
width: 100%;
}

/* Style for the button */
.btns {
padding: 8px 16px;
background: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: 0.3s ease-in-out;
}

.btns:hover {
background: #0056b3;
}

@media (max-width: 768px) {
.courses-top-search {
flex-direction: column;
align-items: flex-start;
}

.courses-search {
margin-top: 10px;
width: 100%;
}

.courses-search input {
width: 100%;
}

.singel-course {
margin-bottom: 20px;
}
}

/* popup start */
.popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: flex-start;
/* Changed from center to flex-start */
z-index: 1000;
padding-top: 40px;
/* Added top padding */
overflow: hidden;
}

.popup {
background-color: white;
border-radius: 10px;
width: 80%;
max-width: 700px;
padding: 25px;
position: relative;
max-height: 100%;
overflow-y: auto;
/* margin: 30px auto; */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
/* Hide scrollbar for Chrome, Safari and Opera */
&::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
-ms-overflow-style: none;
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
}

.close-btn {
position: absolute;
top: 15px;
right: 20px;
font-size: 28px;
font-weight: bold;
cursor: pointer;
color: #6c757d;
transition: color 0.3s;
}

.close-btn:hover {
color: #343a40;
}


/* Enquiry Form Styling */
.popup h2 {
font-size: 28px;
font-weight: bold;
text-align: center;
color: #333;
margin-left: 10px;
}

/* Input Group Styling */
.input-group {
display: flex;
align-items: center;
background: #f8f9fa;
padding: 4px;
margin-bottom: 10px;
border-radius: 5px;
border: 1px solid #ddd;
width: 100%;
position: relative;
}

.input-group i {
position: absolute;
left: 10px;
margin-top: 2px;
color: #007bff;
font-size: 18px;
}

.input-group input,
.input-group select,
.input-group textarea {
width: 100%;
border: none;
outline: none;
background: transparent;
font-size: 16px;
padding: 0px 10px 0px 35px;
}

/* Textarea Specific Styling */
.input-group textarea {
resize: vertical;
min-height: 100px;
}
.radio-group {
margin: 10px 0;
}
.radio-group label {
display: inline;
font-weight: normal;
margin-right: 15px;
}
.dynamic-field {
display: none;
margin-top: 10px;
}

/* Submit Button Styling */
.popup .btn {
width: 100%;
padding: 12px;
background: #007bff;
color: #fff;
align-items: center;
font-size: 16px;
font-weight: bold;
border: none;
border-radius: 5px;
/* cursor: pointer; */
transition: 0.3s ease-in-out;
}

.popup .btn:hover {
background: #0056b3;
}


.btn-primary {
background-color: #0d6efd;
border: none;
padding: 10px 20px;
font-weight: 500;
width: 100%;
margin-top: 10px;
}

.btn-primary:hover {
background-color: #0b5ed7;
}

.input-group-text {
background-color: none !important;
padding: 2px !important;
border: none;
}

.input-group-texts {
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center;
padding: 20px 18px;
margin-bottom: 0;
font-size: 1rem;
font-weight: 400;
/* line-height: 1.5; */
color: #495057;
text-align: center;
white-space: nowrap;
/* background-color: #e9ecef;
border: 1px solid #ced4da; */
border-radius: .25rem;
}

/* Responsive adjustments */
@media (min-width: 768px) {
.popup {
width: 70%;
padding: 25px;
/* margin: 0px auto; */

}
}

@media (min-width: 1024px) {
.popup {
width: 50%;
}
}
@media (max-width: 768px) {
.row.mb-3>.col-md-6 {
margin-bottom: 15px;
}
}

/* Animation for dynamic fields */
.dynamic-field {
transition: all 0.3s ease;
overflow: hidden;
}
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 5 !important;
}
/* Custom focus styles */
.form-control:focus,
.form-select:focus {
border-color: #86b7fe;
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Global form control padding adjustment */
.form-control {
padding-left: 12px;
}

/* Special case for input groups to maintain alignment */
.input-group .form-control:not(:first-child) {
padding: 10px 2px;
}

@media (max-width: 576px) {
.input-group-text i {
font-size: 16px;
}

.form-label {
font-size: 14px;
}

.form-control,
.form-select {
font-size: 14px;
padding: 8px 10px;
}

.btn {
font-size: 16px;
padding: 10px;
}


.form-check-label {
font-size: 14px;
}
}

/* Responsive Design */
@media (max-width: 480px) {


.input-group i {
font-size: 14px;
margin-top: 12px;
}

.input-group input,
.input-group select,
.input-group textarea {
font-size: 14px;
padding: 10px 10px 10px 30px;
}

.popup .btn {
font-size: 14px;
padding: 10px;
}
}
