/* --- layout.css --- */
html, body {
    overflow: auto !important;
    height: 100%;
}

/* General Layout */
body {
    margin: 0;
    padding-top: 80px; /* reserve space for the sticky header */
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header Styles */
header, nav {
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 15px;
}

.container-fluid {
    max-width: none;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Logo */
.navbar-brand img {
    max-height: 40px;
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.navbar-brand img:hover {
    transform: scale(1.1);
}

/* Explore Button */
.explore-button {
    border: 2px solid #53A668; /* Green border */
    border-radius: 5px;
    background-color: transparent;
    color: #53A668; /* Green text */
    padding: 8px 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.explore-button:hover {
    background-color: #e7f5eb;
    color: #468956;
}
/*
.dropdown:hover .dropdown-menu {
    display: block;  Shows the dropdown on hover 
} */

/* Search Bar */
.search-bar-form {
    flex-grow: 1;
    margin-right: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #000; /* Black border */
    border-radius: 30px; /* Fully rounded edges */
    overflow: hidden; /* Ensures the input and icon align perfectly */
    height: 50px; /* Adjust height for visibility */
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 15px; /* Add padding for better spacing */
    font-size: 1rem;
    border-radius: 0; /* Ensures no extra rounding */
}

.search-input:focus {
    box-shadow: none;
    outline: none;
}

.search-icon {
    background-color: #fff; /* Matches input field */
    color: #D95F80; /* Pink search icon */
    padding: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem; /* Larger icon for visibility */
    height: 50px; /* Match input group height */
    width: 50px; /* Ensure it doesn't look squeezed */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth animation */
}

/* ðŸ”§ Base fix for dropdown menu */
.navbar .dropdown-menu {
  position: absolute !important;
  top: 100%;
  min-width: 220px;
  max-width: 90vw; /* prevent overflow */
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateX(0) !important;
}

.navbar .dropdown-menu.dropdown-menu-end {
  left: auto !important;
  right: 0 !important;
  max-width: 90vw;
  width: 180px; /* or whatever suits your content */
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow-wrap: break-word;
}


/* âœ… Align left when specified */
.dropdown-menu-start {
  left: 0 !important;
  right: auto !important;
}

/* Optional: Adjust dropdown on small screens */
@media (max-width: 576px) {
  .navbar .dropdown-menu {
    left: 10px !important;
    right: 10px !important;
    width: auto;
  }
}



/* ðŸ“Œ Make sure parent has position relative */
.navbar .nav-item.dropdown {
  position: relative;
}



.search-icon:hover {
    background-color: #fff; /* No background color change on hover */
    color: #53A668; /* Primary green icon hover color */
    transform: scale(1.2); /* Enlarges the icon slightly */
}



/* Navbar Links */
.navbar-nav .nav-link {
    color: #D95F80;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #53A668;
}

/* Buttons */
.navbar-nav .btn-primary {
    background-color: #53A668;
    color: #fff;
    border: none;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.navbar-nav .btn-primary:hover {
    background-color: #468956;
}

.navbar-nav .btn-secondary {
    background-color: #D95F80;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.navbar-nav .btn-secondary:hover {
    background-color: #c04c6f;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid #53A668;
    border-radius: 5px;
}

.dropdown-item:hover {
    background-color: #f7f7f7;
    color: #53A668;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-nav .btn {
        margin-bottom: 10px;
        width: 100%;
    }

    .navbar-brand img {
        max-height: 30px;
    }
}


/* --- register.css --- */
/* General Styles */
.container-wrapper, .registration-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 0 10%;
    background-color: #f8f9fa;
}

/* Left Side - Image Section */
.image-section {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-section img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
}

/* Right Side - Form Section */
.form-section {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #53A668; /* Primary Color */
    font-weight: bold;
}

/* Floating Labels */
.form-floating label {
    font-size: 14px;
    padding-left: 8px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.form-floating input,
.form-floating select {
    height: 50px;
    border-radius: 5px;
    box-shadow: none;
}

.form-floating input:focus,
.form-floating select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(83, 166, 104, 0.5);
    border: 1px solid #53A668; /* Primary Color */
}

.form-floating label {
    color: #53A668; /* Primary Color */
}

/* Buttons */
button[type="submit"] {
    background-color: #53A668; /* Primary Color */
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #468956;
}

/* Links */
.link-button,
a.link-button {
    color: #D95F80; /* Secondary Color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.link-button:hover,
a.link-button:hover {
    color: #B94C6D; /* Darker Secondary Color */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container-wrapper, .registration-container {
        flex-direction: column;
        padding: 20px;
    }

    .image-section img {
        max-width: 70%; /* Reduce image size */
        margin-bottom: 20px;
    }

    .form-section {
        width: 100%;
        padding: 15px;
    }
}


/* toggle password */
.toggle-password {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d; /* Neutral color */
    font-size: 1.2rem;
    z-index: 10;
}

.toggle-password:hover {
    color: #D95F80; /* Secondary Color */
}

/* --- profile.css --- */
/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

/* Profile Card */
.profile-card {
    max-width: 600px;
    margin: 30px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

/* Profile Picture */
.profile-picture-container {
    position: relative;
    margin-bottom: 20px;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #53A668; /* Primary color */
}

/* Edit Button Pencil icon*/
.edit-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 20px; /* Icon size */
    width: 40px; /* Full clickable area */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10; /* Ensure it is on top of other elements */
}

.edit-button i {
    font-size: 18px; /* Keep the icon size visually small */
}

.edit-button:hover {
    color: #53A668; /* Primary green color */
    transform: scale(1.1); /* Slight enlargement on hover */
    background-color: rgba(83, 166, 104, 0.1); /* Subtle green hover background */
}

/* Profile Details */
.profile-details h3 {
    margin: 10px 0;
    font-size: 24px;
    color: #333;
}

.profile-details p {
    margin: 5px 0;
    color: #666;
}

.profile-details p em {
    color: #aaa; /* Placeholder text color */
    font-style: italic;
}

.badge {
    font-size: 14px;
}

/* Modal */
.modal-header, .modal-footer {
    background-color: #f8f9fa;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .profile-card {
        padding: 15px;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }

    .profile-details h3 {
        font-size: 20px;
    }

    .edit-button {
        font-size: 18px;
    }
}

/* Profile Picture Container */
.profile-picture-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Profile Picture */
.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pencil Icon Button Overlay */
.edit-picture-button {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Covers the bottom half */
    background: linear-gradient(to top, rgba(83, 166, 104, 0.5), transparent); /* Green fade effect */
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align the pencil icon to the bottom */
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
    cursor: pointer;
    padding-bottom: 10px; /* Space between icon and edge */
    font-size: 20px;
}

/* Show Overlay on Hover */
.profile-picture-container:hover .edit-picture-button {
    opacity: 1; /* Fully visible on hover */
}

/* Hover Effect for Pencil Icon */
.edit-picture-button:hover {
    background: linear-gradient(to top, rgba(83, 166, 104, 0.5), transparent); /* Grey overlay */
    color: #ffffff; /* Keep white icon */
}

.edit-picture-button i {
    transition: transform 0.2s ease; /* Animation for icon */
}

.edit-picture-button:hover i {
    transform: scale(1.2); /* Slight enlargement on hover */
}


/* --- learning.css --- */
.collapsible-button {
    z-index: 1050 !important;
    position: relative; /* Ensure it stays above the header */
}



/* General Layout */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.learning-dashboard {
    display: flex;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    transition: width 0.3s ease-in-out;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 10px;
    background: #53A668;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-group-item {
    font-size: 14px;
    border: none;
    background: transparent;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

/* Breadcrumb */
.breadcrumb-container {
    padding: 0;
    background: transparent;
    margin-bottom: 15px;
    z-index: 1
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    z-index: 1;
}

/* Video Section */
.video-container {
    width: 100%;
    max-height: 500px;
    aspect-ratio: 16/9;
    border-radius: 10px;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sidebar Toggle Button */
#toggleSidebar {
    cursor: pointer;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .learning-dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }
}


.navbar-toggler-icon {
    filter: invert(40%);  /* Makes it darker */
}

.navbar-nav .nav-item {
    margin-bottom: 0.5rem;
}



.profile-card h6 {
    font-weight: 600;
    font-size: 1rem;
  }
  


  .course-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #ddd;
  }

  .course-card {
    flex-direction: column; /* stacked vertically by default */
  }
  
  @media (min-width: 576px) {
    .course-card {
      flex-direction: row;
      align-items: center;
    }
  }


  /* Friends list */
  .rounded-circle {
    object-fit: cover;
  }
  
  .position-relative a img {
    border: 2px solid #fff;
    transition: transform 0.2s;
  }
  
  .position-relative a:hover img {
    transform: scale(1.05);
  }
  

  .browse-course-img {
    height: 160px;
    object-fit: cover;
    border-radius: 0.3rem 0.3rem 0 0;
  }

  
  .hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .hover-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  }
  


  /* Styling for the post card */
.post-card {
    min-height: 150px; /* Ensures the card has some minimum height */
    display: flex;
    flex-direction: column;
}

/* Adjusts the height of the card body dynamically */
.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Styling for the image container to handle large images */
.post-image-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden; /* Prevents the image from overflowing */
}

/* Styling for the images */
.post-image {
    object-fit: contain; /* Ensures the image fits within the container */
    max-width: 100%; /* Prevents the image from stretching beyond the container */
    max-height: 400px; /* Limits the height of the image to avoid excessive height */
    margin: 0 15px; /* Adds margin to create some space around the image */
}



/* Smooth transition for icon change */
.like-btn i {
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  /* Add a slight scaling effect when liked */
  .like-btn.liked i {
    transform: scale(1.2);
  }
  