@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

a {
    text-decoration: none;
    color: black;
}

a svg {
    display: block; 
}

.img-logo{
    height: 10vh;
}

.header{
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    top: 0;
    z-index: 1000;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
  font-size: 20px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-direction: row;
}

.nav-links a {
  display: inline-block;     
  padding: 0.2rem 1rem;  
  border-radius: 0.5rem;
  transition: background 0.3s, color 0.3s; 
}

.nav-links a:hover {
  color: #002054;
  background: #F2F4F8;
}

.log-sign{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.signup-btn{
    color: white;
    background-color: #002054;
    padding: 5px 12px;
    border-radius: 0.5rem;
    white-space: nowrap;
}


/* Mobile Menu */
.mobile-menu-btn {
  display: none; 
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon {
  width: 28px;
  height: 28px;
  stroke: #002054;
}

.mobile-menu {
  position: absolute;
  top: 15%;
  right: 0;
  background-color: white;
  width: 150px;
  padding: 2rem;
  display: none;
  text-align: end;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  margin-right: 3%;
}

.mobile-menu.show {
  display: block; 
}

.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav li {
  border-bottom: 2px solid #eee;
  padding-bottom: 0.1rem;
  padding-top: 0.1rem;
}

.mobile-nav li:last-child {
  border-bottom: none; 
}

.mobile-link {
  color: #374151;
  text-decoration: none;
  font-size: 1.1rem; 
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block; 
    z-index: 9999;
  }

  .mobile-menu {
    top: 14%; 
    right: 5%;
    width: 180px;
    padding: 1.5rem;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav {
    gap: 1rem;
  }

  .mobile-link {
    font-size: 1rem;
  }
  .logo-link {
    font-size: 16px;
    gap: 0.05rem;
  }
  .img-logo{
    height: 7vh;
}
}

@media (max-width: 320px) {
  .mobile-menu {
    top: 15%;
    width: 150px;
    padding: 1rem; 
    right: 8%;
  }

  .mobile-nav {
    gap: 0.5rem;
  }

  .mobile-link {
    font-size: 0.9rem; 
  }
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
  min-height: 35vh;    
}

.about-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #002054;
}

.about-header p {
  font-size: 1.1rem;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}

.about-mission{
  width: 100%;
  min-height: 100vh;       
  display: flex;           
  flex-direction: column;   
  justify-content: center; 
  align-items: center;     
  text-align: center;
  font-size: 1.5rem;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: #002054;
  color: white;

}
.about-empower{
  width: 100%;
  min-height: 100vh;   
  display: flex;           
  flex-direction: column; 
  justify-content: center;  
  align-items: center;     
  text-align: center;
  font-size: 1.5rem;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: #f4f8ff;
}


.about-mission p,
.about-empower p {
  white-space: pre-wrap;         
  overflow: hidden;
  width: 0;                  
}

.about-visual {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  
  align-items: center;
  gap: 40px;                 
  padding: 40px 20px;
  min-height: 100vh;       
  box-sizing: border-box;
}

.about-visual .card {
  flex: 1 1 310px;           
  max-width: 350px;         
  padding: 30px 25px;
  border-radius: 15px;
  background: #f4f8ff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-visual .card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #002054; 
}

.about-visual .card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.about-visual .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}


.privacy-header {
  text-align: center;
  margin-bottom: 2rem;
}

.privacy-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #002054;
}

.privacy-header p {
  font-size: 1rem;
  color: #666;
}

.privacy-section {
  margin-bottom: 1.8rem;
}

.privacy-section h2 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 0.8rem;
  border-left: 4px solid #0073e6;
  padding-left: 10px;
}

.privacy-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: #444;
}

.privacy-section p {
  color: #444;
  font-size: 1rem;
}


/* Contact Form */
.contact-form {
  background: #E7F1FF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,32,84,0.15);
  margin-top: 1rem;
}

.contact-form__group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.500rem;
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #002054;
}

.contact-form button {
  background: #002054; 
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #0040a0;
}

.contact-info {
  padding: 5px;
  border-radius: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 15px; 
  margin-top: 1rem;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.contact-info a:hover {
  transform: scale(1.1); 
}

.map-container {
  margin-top: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,32,84,0.15);
}
/* hero */

.hero-container{
  display: flex;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15rem;
  background-image: url('images/homepage/bg.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
  flex-direction: row;
}

.highlight {
  font-weight: 800;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: typing 5s steps(40, end) infinite,
             blink-caret 0.75s step-end infinite;
}


/* Keyframes */
@keyframes typing {
  0% { width: 0 }
  40% { width: 100% }
  60% { width: 100% }
  100% { width: 0 }
}

@keyframes blink-caret {
  50% { border-color: transparent }
}

.hero-image{
  height: 77vh;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .hero-image {
    height: 65vh;
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    gap: 2rem; 
    padding: 2rem 1rem; 
  }

  .hero-title {
    animation: none;        
    width: auto;              
    border-right: none;    
    white-space: normal;
    text-align: center;     
  }

  .hero-image {
    height: 60vh; 
  }
  .nav-links,
  .log-sign {
    display: none;
}

  .mobile-menu-btn {
    display: block;
}
}


@media (max-width: 480px) {
  .hero-container {
    gap: 1.5rem;
    padding: 1.5rem 1rem; 
  }

  .hero-title {
    font-size: 2rem;          
    line-height: 1.2;
  }

  .hero-image {
    height: 60vh;
  }
}

@media (max-width: 320px) {
  .hero-title {
    font-size: 1.6rem;       
    line-height: 1.2;
    white-space: normal;    
    overflow: visible;
  }
}


/* Freelancing Section */
.freelancing-section {
  background-color: #ffffff;
  padding: 2.5rem 1.5rem;
  width: 100;
  border-top-left-radius: 10%;
  border-top-right-radius: 10%;
  margin-top: -5%;

}

.freelancing-title {
  font-weight: bold;
  font-size: 2rem;
  color: #002054;
  margin-bottom: 1rem;
  padding: 0rem 9rem;
}

.freelancing-description {
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.75;
  text-align: justify;
  padding: 0rem 9rem;
}

.sc-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 20px;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

.sc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100px;
    height: 100px;
    padding: 10px;
    border: 1px solid #e0e0e0; 
    border-radius: 12px;
    background-color: #ffffff; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sc-item:hover {
    background: radial-gradient(circle at center, #d6e9ff, transparent);
}


.sc-icon {
  display: flex;             
  align-items: center;       
  justify-content: center;   
  width: 100%;               
  height: 64px;              
  margin-bottom: 5px;
}

.sc-item svg {
  display: block;            
  margin: 0 auto;            
}


.sc-text {
    font-size: 13px; 
    line-height: 1.2;
    color: #333333;
    max-width: 100%; 
    font-weight: 600;
}

.mentorship-card {
  background: #f4f8ff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  display: flex;                    
  align-items: center;              
  gap: 30px;                        
  max-width: 1200px;
  margin: 40px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mentorship-left {
  flex: 1;
}

.mentorship-right {
  flex: 1;
}

.mentorship-right img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  object-fit: cover;
}

.mentorship-head {
  color: #002054;
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.mentorship-text {
  color: #4b5563;
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.mentorship-btn {
  background: #002054;     
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mentorship-btn:hover {
  background: #001033;     
}


@media (max-width: 768px) {
  .mentorship-card {
    flex-direction: column;  
    text-align: center;     
    padding: 20px;
  }

  .mentorship-left, 
  .mentorship-right {
    flex: none;
    width: 100%;
  }

  .mentorship-head {
    font-size: 2rem;
  }

  .mentorship-text {
    font-size: 1.1rem; 
  }

  .mentorship-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
  }

  .mentorship-right img{
    margin-top: 20px; 
  }
  .impact-grid {
    flex-direction: column;  
    align-items: center;     
    gap: 40px;               
  }

  .impact-item {
    padding: 0;             
    max-width: 400px;     
  }

  .impact-title {
    font-size: 28px;       
    margin-bottom: 40px;
  }

  .item-title {
    font-size: 16px;
  }

  .item-description {
    font-size: 13px;
  }
}

.icourse-head {
  color: #002054;
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.icourse-text {
  color: #4b5563;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

@media (max-width: 500px) {
  .freelancing-title {
    font-size: 1.5rem; 
    padding: 0rem 2rem;
  }

  .freelancing-description {
    font-size: 1rem; 
    padding: 0rem 2rem;
  }
}


/* Hire Section */
.hire-section {
  padding: 2rem 1rem;
  background-color: #001033;
}

.impact-title {
    font-size: 38px;
    font-weight: 400; 
    color: white;
    margin-bottom: 60px;
    text-align: center;
}

.impact-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 1rem;
}

.impact-item {
    flex: 1; 
    padding: 0 15px; 
    text-align: center;
}

.ii-icon {
    font-size: 50px; 
    line-height: 1;
    margin-bottom: 20px;
    color: white; 
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
}

.item-description {
    font-size: 14px;
    line-height: 1.5;
    color: white;

    max-width: 320px; 
    margin: 0 auto;
}


/* Registration Section */
.registration-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 90%;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card-image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card-title {
  color: white;
  font-size: 1.30rem; 
  font-weight: bold;
  margin-bottom: 0.5rem;
  width: 90%;
}

.register-button {
  background-color: white;
  color: #1E3A8A;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 10rem;
}

.register-button:hover {
  background-color: #1E3A8A;
  color: white;
}

@media (min-width: 768px) {
  .registration-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .card-image {
    height: 12rem;
  }

  .card-title {
    font-size: 1.125rem; 
  }

  .register-button {
    font-size: 0.875rem;
    padding: 0.375rem 1rem; 
  }
}

@media (max-width: 500px) {
  .registration-section {
    padding: 0 1rem;
  }

  .card-image {
    height: 10rem; 
  }

  .card-title {
    font-size: 1rem;
    width: 100%; 
  }

  .register-button {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem; 
    width: 8rem;
  }
}


/* Footer Styles */
.footer {
  background-color: #002054; 
  color: white;
  margin-top: 5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 2rem; 
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-img-logo {
  height: 8vh;
}

.footerlogo {
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.footerlogo-text {
  color: #ffffff; 
  font-weight: 900;
}

.footer-links {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%; 
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  font-size: 0.875rem;
  color: #E0F2FE;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #60A5FA;
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.875rem;
  color: #ffffff; 
  border-top: 1px solid #e0e3e6; 
}

@media (max-width: 320px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }

  .footer-links {
    width: 100%; 
    text-align: center; 
  }

  .footer-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .footer-link {
    font-size: 0.75rem;
  }

  .footer-bottom {
    font-size: 0.75rem; 
  }
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-links {
    width: 100%; 
  }
}

@media (min-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem; 
  }

  .footer-links {
    width: auto;
  }
}


/* Login Section */
.design-container-reset {
  min-height: 80vh;
  width: 100%;
  background-color: #f8fafc;
  position: relative;
}

.design-container {
  width: 100%;
  background-color: #f8fafc;
  position: relative;
}

.design-overlay {
  position: absolute;
  inset: 0; 
  z-index: 0;
  background-image: 
    linear-gradient(to right, #e2e8f0 1px, transparent 1px),
    linear-gradient(to bottom, #e2e8f0 1px, transparent 1px);
  background-size: 20px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.login-form {
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
}

.title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: center;
}

.description {
    font-size: 1.10rem;
    color: #4a5568; 
    text-align: center;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.label {
    font-size: 0.755rem;
    color: black;
}

.input-group {
    font-size: 0.815rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0; 
    border-radius: 0.5rem;
    font-size: 1rem;
    color: #2d3748;
    outline: none;
}

.input-field:focus {
    border-color: #002054; 
    box-shadow: 0 0 0 1px #002054; 
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password-btn {
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  height: 1.2rem;
  width: 1.2rem;  
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password-btn img,
.toggle-password-btn svg {
  height: 100%; 
  width: 100%;  
  object-fit: contain; 
  display: block;
}


.forgot-password {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.forgot-password:hover {
    color: #2b6cb0;  
}

.resend-container{
  display: flex;
    justify-content: center; 
    margin-bottom: 5rem;
}

.backlogin {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    margin-top: 0.95rem;
    text-decoration: none;
    background: none; 
    border: none; 
}

.backlogin:hover {
    color: #2b6cb0; 
}

.submit-btn {
  width: 200px; 
  margin: 0 auto;
  display: block;
  padding: 0.75rem;
  background-color: #002054;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


.submit-btn:hover {
  opacity: 0.9;
}


.reset-submit-btn {
  width: 200px; 
  margin: 1rem auto;
  display: block;
  padding: 0.75rem;
  background-color: #002054;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reset-submit-btn:hover {
    background-color: #2b6cb0; /* blue-600 */
}

.switch-signup {
  text-align: center;
}

.go-to-signup {
  color: #002054;
}

.error-message {
  color: red;
    background-color: #ffe6e6;
    padding: 5px;
    border-radius: 5px;
    margin: 10px auto;          
    text-align: center;
    font-weight: bold;
    font-size: 10px;
    max-width: 200px;
}
 
@media (max-width: 768px) {
    .login-form {
        padding: 1.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .description {
        font-size: 0.875rem;
    }

    .input-field {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .submit-btn {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .go-to-signup {
      font-size: 0.85rem;
    }

    .forgot-password {
      font-size: 0.85rem;
    }

    .switch-signup {
      font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .login-form {
        width: 100%;
        padding: 1rem;
    }

    .title {
        font-size: 1.25rem;
    }

    .description {
        font-size: 0.75rem;
    }

    .input-field {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .submit-btn {
        padding: 0.5rem;
        font-size: 0.875rem;
    }

    .go-to-signup {
      font-size: 0.65rem;
    }

    .forgot-password {
      font-size: 0.65rem;
    }

    .switch-signup {
      font-size: 0.65rem;
    }
}


/* Signup Section */
.signup-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.50rem;
    position: relative;
    z-index: 1;
}

.signup-container__description {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 2rem;
}

.signup-form__fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}
.education-fields{

    flex: 1;
    display: grid;
    grid-template-columns: 1fr; 
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .signup-form__fields {
        grid-template-columns: repeat(2, 1fr);  
    }
}

.signup-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}
 
.signup-form__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
}

.signup-form__input {
    width: 100%;  
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #cbd5e0;
    font-size: 1rem;
    color: #2d3748;
    outline: none;
    box-sizing: border-box; 
}
 
.signup-form__input:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 1px #3182ce;
}
 
.select-enhanced + .ts-wrapper {
  height: 40px;
  font-size: 1rem;
  border-radius: 6px;
}
 
.ts-control {
  min-height: 44px !important;
  padding: 5px 10px !important;
  border: 1px solid #cbd5e0 !important;
  border-radius: 6px !important;
  border-radius: 0.375rem;
  font-size: 1rem;
  align-items: center;
}
 
.ts-input input {
  padding: 5px 8px !important;
  height: 28px !important;
  font-size: 1rem;
}
 
.ts-dropdown-content {
  max-height: 150px;
  overflow-y: auto;
}
 
.ts-dropdown .option {
  padding: 8px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}
 
.ts-dropdown .option:hover {
  background-color: #f0f4f8;
}

.modal-content .ts-dropdown {
    position: relative !important;
}

.signup-form__group {
    display: flex;
    flex-direction: column;
} 

.signup-container__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;  
}
 
@media (max-width: 768px) {
    .signup-container__actions {
        flex-direction: column; 
        align-items: stretch;   
    }

    .signup-container__back-link {
      margin-bottom: 1rem;  
    }
 
    .signup-form__input {
        font-size: 0.875rem;
        padding: 0.5rem;  
    }
}

.signup-container__back-link {
    color: #000000;
    font-size: 0.875rem;
    text-decoration: none;
}

.signup-container__back-link:hover {
  color: #2b6cb0;
}

.signup-container__button {
    padding: 0.75rem 1.25rem;
    background-color: #002054;
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.signup-container__button:hover {
  opacity: 0.9;
}

@media (min-width: 640px) {
    .signup-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .signup-form__input {
        font-size: 1rem; 
    }
}

@media (max-width: 768px) {
    .signup-container {
        padding: 1rem;
    }

    .signup-container__title {
        font-size: 1.25rem;
    }

    .signup-container__description {
        font-size: 1rem;
    }

    .signup-container__button {
        width: 100%;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .signup-container {
        padding: 0.5rem;
    }

    .signup-container__button {
        padding: 0.5rem 1rem;
    }

    .signup-form__input {
        font-size: 0.875rem;
        padding: 0.5rem; 
    }
}


/* Signup2 Section */
.signup2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.50rem;
    position: relative;
    z-index: 1;
}

.signup2-container__description {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 2rem;
}

.signupp2-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  
  gap: 1rem;
  align-items: flex-start;
}

.signupp2-flex {
  display: flex;
  flex-wrap: nowrap;
  gap: 50px;
  justify-content: center;
  align-items: flex-start;
}

.signupp2-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.signupp2-right {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 300px;
  margin-left: 60px;  
}


.signupp2-form {
  display: flex;          
  flex-direction: column;
  align-items: center;   
  justify-content: center;
  flex: 2;
  max-width: 500px;
  width: 100%;
  margin-top: 1.5rem;
}

.form-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-wrapper {
  position: relative;
  margin-bottom: 3.2rem;
}

    .error-signuptwo {
      position: absolute;
      top: -30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      background-color: #ffe6e6;
      color: red;
      border: 1px solid #ff4d4d;
      padding: 10px 15px;
      border-radius: 6px;
      font-size: 12px;
      text-align: left;
      width: 270px;
      max-width: 90vw;
      word-wrap: break-word;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .error-signuptwo.show {
      opacity: 1;
      pointer-events: auto;
    }

@media (max-width: 480px) {
  .error-signuptwo {
    top: -50px;  
    max-width: 50vw;  
    font-size: 10px;
    padding: 8px 12px;
  }
}

/* Avatar and Upload Button */
.signupp2-avatar {
    width: 8.5rem;
    height: 8.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(images/icons/default-avatar.png);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    font-size: 2.5rem;
    position: relative;
}

.signupp2-upload-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: var(--signupp2-text);
    padding: 0.20rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.signupp2-upload-btn:hover {
    background: #f9fafb;
}
 
.signupp2-avatar--image {
    object-fit: cover;
}
 
.signupp2-field {
    margin-bottom: 1.25rem;
}

.signupp2-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.signupp2-input:focus {
  border-color: #002054; 
    box-shadow: 0 0 0 1px #002054; 
}
 
.signupp2-input-group {
    display: flex;
    gap: 0.5rem;
}

.password-wrapper2 {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper2 input {
  width: 100%;
  padding-right: 2.5rem;  
  box-sizing: border-box;
}

.toggle-password-btn2 {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  height: 1.2rem; 
  width: 1.5rem; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password-btn2 img,
.toggle-password-btn2 svg {
  height: 100%;  
  width: 100%;  
  object-fit: contain;   
  display: block;
}


.signupp2-verify-btn {
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: #002054;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.signupp2-verify-btn:hover {
  opacity: 0.9;
}
 
.signup2-container__actions {
    display: flex;
    justify-content: space-between;  
    align-items: center;           
    margin-top: 1.5rem;
    flex-wrap: wrap;                 
    width: 100%;                
}

.signup2-container__back-link {
    color: #000000;
    font-size: 0.875rem;
    text-decoration: none;
}

.signup2-container__back-link:hover {
    color: #2b6cb0;
}

.signup2-container__button {
    padding: 0.75rem 1.25rem;
    background-color: #002054;
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.signup2-container__button:hover {
  opacity: 0.9;
}

.privacy-text {
    font-size: 0.775rem;  
    color: #6b7280; 
    line-height: 1.6;  
    margin-top: 1rem;  
    margin-bottom: 1rem; 
    text-align: justify;  
    max-width: 100%; 
    word-wrap: break-word;  
}
 
.privacy-text a, .privacy-contact-link {
    color: #007bff; 
    text-decoration: none;  
}

.privacy-text a:hover, .privacy-contact-link:hover {
    text-decoration: underline;  
}
 
@media (max-width: 768px) {
  .signupp2-body {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .signupp2-flex {
    flex-direction: column;
    gap: 2rem;
    margin-left: 0;
    align-items: center;
  }

  .signupp2-left,
  .signupp2-right {
    width: 100%;
    margin: 0;
    align-items: center;
  }

  .signupp2-form {
    max-width: 100%;
    width: 100%;
    padding: 0 1rem;
  }

  .signupp2-field {
    width: 100%;
  }

  .password-wrapper2 {
    width: 100%;
  }

  .signupp2-input {
    width: 100%;
  }
}


/* Skills Section */
.skills-container {
  max-width: 1024px;
  margin: 0.01rem auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.skills-description {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.skills-selection {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .skills-selection {
    flex-direction: row; 
    gap: 2rem;
  }
}

.category-selection,
.specialties-selection {
  flex: 1;
}

.category-label, .specialties-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
}

.category-item {
  padding: 0.5rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
}

.category-item:hover {
  background-color: #e5e7eb;
}

.category-item.selected {
  background-color: #002054;
  color: white;
  font-weight: 600;
}

/* Specialties Selection */

.specialty-box {
  padding: 0.6rem 1rem;
  background-color: #f3f4f6;
  border: 2px solid #002054;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.specialty-box:hover {
  background-color: #e5e7eb;
}

.specialty-box.selected {
  background-color: #002054;
  color: #fff;
  border-color: #002054;
}


.specialties-selection {
    flex: 1;  
}

.specialties-list {
    display: flex;
    flex-wrap: wrap;  
    gap: 0.5rem;  
}

.specialty-button {
    background-color: #2563eb; 
    color: #ffffff; 
    padding: 0.5rem 1rem; 
    border-radius: 0.375rem;  
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  
    transition: background-color 0.2s;  
    border: none;  
    cursor: pointer;  
}

.specialty-button:hover {
    background-color: #1d4ed8;  
}

.specialty-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;  
}

.specialty-container label {
    font-size: 1rem;
    cursor: pointer;
}

.next-button.disabled {
  background-color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;  
}

.back-button {
  color: #000000;
  font-size: 0.875rem;
  text-decoration: none;
}

.back-button:hover {
  color: #2b6cb0;
}

.next-button {
  padding: 0.75rem 1.25rem;
  background-color: #002054;
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.next-button:hover {
  opacity: 0.9;
}


/* Signup Role Section */
.role-grid {
    display: flex;
    justify-content: center;   
    align-items: flex-start;   
    gap: 50px;             
    flex-wrap: wrap;        
    margin: 0 auto;          
    padding: 0 20px;          
    max-width: 1200px;        
    position: relative;     
    z-index: 1;
}

.role-grid > .role-item {
    margin-top: 50px;
}

.role-item {
    display: flex;
    justify-content: center;   
    align-items: center;      
    width: 100%;
    max-width: 500px;      
    margin-bottom: 20px;     
}

.role-image {
    width: 100%;
    max-width: 100%;          
    height: auto;
    border-radius: 8px;
    object-fit: cover;       
    transition: transform 0.3s ease-in-out;  
}

.role-item:hover .role-image {
    transform: scale(1.1);    
}

.role-button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

@media (max-width: 1440px) {
    .role-grid {
        gap: 20px;  
        margin-top: 30px; 
    }

    .role-item {
        max-width: 100%;  
    }

    .role-image {
        max-width: 100%;  
    }

}

@media (max-width: 768px) {
    .role-grid {
        gap: 16px;  
        margin-top: 20px;  
    }

    .role-item {
        max-width: 100%; 
    }

    .role-image {
        max-width: 100%;  
    }
}


/* Freelancer AREA */
/* Freelancer Homepage */
.fre-search-form{
  width: 100%;
  max-width: 350px;
}

.fre-search {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #f4f2f2e8;
    border-radius: 5px;  
    outline: none;
    margin-right: 20px; 
    width: 100%;
    background-color: #F2F4F8;
}

.fre-search-form2{
  display: none;
}

.fre-search2 {
    padding: 8px 12px;
    font-size: 16px;
    border: 1px solid #f4f2f2e8;
    border-radius: 5px;  
    outline: none;
    background-color: #F2F4F8;
    width: 250px;
}

.search-tabs {
    margin: 15px 0;
}
.search-tabs a {
    padding: 4px 8px;
    margin-right: 10px;
    text-decoration: none;
    color: #333;
    border-radius: 0.5rem;
}
.search-tabs a.active {
    background: #002054;
    color: #fff;
}

/* Search results layout */
.search-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-people-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.search-people-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.search-people-link:hover {
    background: #f5f5f5;
    border-radius: 8px;
}

.search-people-img {
    width: 45px;
    height: 45px;
    border-radius: 50%; 
    object-fit: cover;
    margin-right: 12px;
}

.search-people-name {
    font-weight: 500;
    font-size: 16px;
}

.search-post-item {
    margin-bottom: 8px;
}

.search-post-by {
    display: block;
    font-size: 14px;
    color: #666;
}

.search-courses {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.search-course-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.search-course-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.search-course-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.search-course-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-course-info {
    flex: 1;
}

.search-course-info strong {
    font-size: 15px;
    color: #002054;
    display: block;
    margin-bottom: 6px;
}

.search-course-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}



.fre-icons {
    display: flex;
    gap: 12px;  
    align-items: center;
}

.icon-wrapper {
  position: relative;
  display: inline-block;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  grid-template-rows: repeat(2, auto); 
  gap: 20px;
  border-radius: 8px;
  background-color: #F2F4F8;
  padding: 2rem;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;  
}


.job-card {
  width: 260px;
  height: 290px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.job-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}


/* ADMIN Section */
/* Dashboard Admin */
.admin-body{
  background-color: #f7f8fa;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background-color: #ffffff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  flex-shrink: 0;
}

.admin-logo {
  font-size: 2.rem;
  font-weight: bold;
}

.admin-img-logo{
  height: 9vh;
}

.admin-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-nav li {
  width: 100%;
}

.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  width: 100%;            
  box-sizing: border-box; 
  border-radius: 6px;
  color: #333;
  transition: background 0.3s;
}

.admin-nav li a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.admin-nav li a:hover {
  background-color: #f0f0f0;

}

.admin-main {
  flex: 1;
  padding: 20px;
}

.admin-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.admin-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-card h2 {
  font-size: 1rem;
  color: #666;
}

.admin-card p {
  font-size: 1.8rem;
  font-weight: bold;
}

.admin-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.admin-user-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 10px;
}

.admin-user-info > div {
  flex: 1 1 30%;
  margin-bottom: 15px;
}

.admin-label {
  font-weight: 600;
}

.admin-value {
  color: #3b82f6;
}

.admin-headeraction{
  float: right;
  margin-right: 5px;
}

.admin-action {
  padding: 6px;
  border-radius: 10%;
  float: right;
  display: flex;
  gap: 10px;
}

.admin-action .delete-icon {
  stroke: red; 
  cursor: pointer;
  background-color: #f6e1e1;
  padding: 0.250rem;
  border-radius: 0.5rem;
}

.admin-action .edit-icon {
  stroke: green; 
  cursor: pointer;
  padding: 0.250rem;
}

.admin-link-button {
  display: inline-block;
  color: #002054;
  text-decoration: none;
  margin-left: 10px;
}

.admin-link-button:hover {
  color: #1d4ed8;
}

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 600px; 
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px;
}

.admin-table thead {
  background-color: #b4d4ff;
}

.admin-link {
  display: inline-block;
  margin-top: 10px;
}

.admin-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 100;
}

.admin-menu-icon {
  width: 28px;
  height: 28px;
  stroke: #1d4ed8;
}

.admin-mobile-menu {
  position: absolute;
  top: 4rem;
  right: 1rem;
  background-color: white;
  width: 150px;
  padding: 1.1rem;
  text-align: right;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 99;
  display: none;
}

.admin-mobile-menu.show {
  display: block;
}

.admin-mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.admin-mobile-nav li {
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.1rem;
  padding-top: 0.1rem;
}

.admin-mobile-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  display: block;
  border-bottom: 1px solid #e5e7eb;
}

.admin-mobile-link:last-child {
  border-bottom: none;
}

.mentor-invite-form {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: flex-start;
}

.form-mentor {
    display: flex;
    flex-direction: column;
    width: 48%; 
}

.mentor-form__input {
    width: 100%; 
    padding: 0.25rem;
    border-radius: 0.375rem;
    border: 1px solid #cbd5e0;
    font-size: 1rem;
    color: #2d3748;
    outline: none;
    box-sizing: border-box;
}

.mentor-form__input:focus {
    border-color: #2b6cb0;
    box-shadow: 0 0 0 1px #3182ce;
}

.mentor__button {
    padding: 0.5rem 1rem;
    background-color: #002054;
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    max-width: 180px;
    width: auto;
}

.mentor__button:hover {
    background-color: #2b6cb0;
}

.transactions-filter-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%; 
}

.ad-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; 
    max-width: 300px;
}

.ad-filter-input, .ad-filter-select {
    padding: 0.3rem 0.6rem; 
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.875rem;
    max-width: 150px; 
    width: auto; 
    box-sizing: border-box; 
}

.filter-label {
    margin-right: 5px;
    font-size: 0.875rem; 
}

.ad-search-wrapper input,
.ad-search-wrapper select {
    width: auto; 
}

.transactions-filter-wrapper .ad-search-wrapper {
    max-width: 100%;
    margin-bottom: 10px;
}


.pagination {
    display: flex;
    justify-content: flex-end; 
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #eee;
  padding: 1rem;
}

.pagination a {
    padding: 0.3rem 0.7rem;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: #333;
    font-size: 0.875rem; 
}

.pagination a.active {
    background-color: #002054;
    color: white;
}

@media (max-width: 768px) {
  .admin-mobile-menu-btn {
    display: block;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-wrapper {
    flex-direction: column;
  }

  .admin-cards {
    grid-template-columns: 1fr;
  }

  .admin-user-info {
    flex-wrap: wrap;
  }
  .fre-search-form2 {
  display: block; 
  width: 100%;
  display: flex;
  justify-content: flex-end;
  }

  .search-tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;        
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
    gap: 1rem;             
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
  }
}

@media (min-width: 768px) {
  .admin-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-user-info {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    display: none; 
  }

  .admin-wrapper {
    flex-direction: column;
  }

  .admin-cards {
    grid-template-columns: 1fr;
  }
}


/* Admin course Section */

.admin-main {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

.ad-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 20px;
}

.ad-dashboard-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.ad-dashboard-card:hover {
  transform: translateY(-4px);
}

.ad-dashboard-card h2 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.ad-dashboard-card p {
  font-size: 1.25rem;
  color: #2563eb;
  font-weight: bold;
}

.ad-courses-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 20px 0;
}

.ad-upload-btn {
  padding: 10px 18px;
  background-color: #002054;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.ad-upload-btn:hover {
  background-color: #1e4ed8;
}


.ad-search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}

.ad-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #002054;
}

.ad-course-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
}

.ad-course-card {
  width: 260px;
  height: 290px; 
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ad-course-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.ad-course-info {
  padding: 1rem;
  flex: 1;
}

.ad-course-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ad-course-desc {
  color: #666;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3; /* Fallback for Chromium/Safari */
  line-clamp: 3; /* Modern syntax */
}

.project-desc {
  color: #666;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1; /* Fallback for Chromium/Safari */
  line-clamp: 1; /* Modern syntax */
}

.ad-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding: 1rem;
}

.ad-link:hover {
    color: #002054;
}

.modal {
  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;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 70vh; 
  overflow-y: auto; 
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}


.close-btn {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content input[type="text"],
.modal-content textarea,
.modal-content select,
.modal-content input[type="file"],
.modal-content input[type="number"],
.modal-content input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.modal-footer {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}


#addModuleBtn {
  background-color: #002054;
  color: white;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Skill box style */
.skill-box {
  position: relative; 
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s, color 0.3s;
  user-select: none;
  font-size: 0.9rem;
}

/* When selected */
.skill-box.selected {
  background-color: #002054;
  color: white;
  border-color: #007BFF;
}

select#course_category {
  display: block;
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 8px;
  font-size: 1rem;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.upload-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #002054;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    pointer-events: none; 
}

#proficiencyModal h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #002054;
  text-align: center;
  margin-bottom: 0.3rem; 
}

#modalSkillName {
  font-size: 1.25rem;
  font-weight: 500;
  color: #002054;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Slider container */
#proficiencySlider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: #B4D4FF; 
  outline: none;
  margin-bottom: 0.5rem;
  transition: background 0.3s;
}

/* Track for WebKit */
#proficiencySlider::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  background: #B4D4FF; /* baby blue track */
  border-radius: 5px;
}

/* Thumb for WebKit */
#proficiencySlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #002054;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background 0.3s, transform 0.2s;
  margin-top: -6px; 
}

#proficiencySlider::-webkit-slider-thumb:hover {
  background: #A1D8FF; 
  transform: scale(1.1);
}

/* Thumb for Firefox */
#proficiencySlider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #002054;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background 0.3s, transform 0.2s;
}

/* Track for Firefox */
#proficiencySlider::-moz-range-track {
  width: 100%;
  height: 10px;
  background: #B4D4FF;
  border-radius: 5px;
}

/* Remove outline/focus highlight for WebKit */
#proficiencySlider:focus {
  outline: none;
}

#proficiencyValue {
  font-weight: 600;
  font-size: 1.2rem;
  color: #002054;
  margin-left: 0.5rem;
}

/* admin view course */

.ad-view-course-wrapper {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 1150px;
  width: 90%;
  margin: 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ad-view-course-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ad-view-course-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-course-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  border-radius: 6px;
  color: #002054;
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.ad-view-course-title {
  font-size: 1.75rem;
  font-weight: 700;
  word-wrap: break-word;
}

.ad-view-course-category {
  background-color: #dbeafe;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.ad-view-course-description {
  color: #374151;
  margin-bottom: 1.25rem;
  word-wrap: break-word;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 1rem;
  border-radius: 8px;
}

.ad-view-course-divider {
  border: 1px solid #e5e7eb;
  margin: 1.5rem 0;
}

.ad-view-course-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ad-view-course-module {
  display: flex;
  justify-content: space-between;
  background-color: #dbeafe;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
  flex-wrap: wrap;
}

.ad-view-course-module.selected {
  background-color: #002054;
  color: #ffffff;
  border-radius: 5px;
}

.ad-view-course-modules-scroll {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 0.75rem;
  border-radius: 8px;
}

.ad-view-course-module:hover {
  background-color: #002054;
  color: white;
}

.ad-view-course-module-title,
.ad-view-course-module-duration {
  font-size: 0.95rem;
  font-weight: 500;
}

.ad-view-course-skill {
  display: inline-block;
  background-color: #dbeafe;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin: 0 0.5rem 0.5rem 0;
  white-space: nowrap;
}

.ad-view-course-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.ad-view-back {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.ad-view-course-modules-scroll {
  max-height: 450px;
  overflow-y: auto;
  scrollbar-width: thin; /* Firefox */
}

.ad-module-details {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: none;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ad-module-details h4 {
  margin-top: 0;
  font-size: 1.2rem;
}

.ad-module-video {
  margin-top: 10px;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.delete-course-btn {
  width: 200px; 
  margin: 0 auto;
  display: block;
  padding: 0.70rem;
  background-color: red;
  color: white;
  font-weight: 600;
  border-radius: 0.25rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 5px;
}


.delete-course-btn:hover {
    background-color: #c0392b; /* blue-600 */
}

.delete-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.delete-box {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.delete-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.delete-confirm-btn {
  background-color: #002054;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
}

.delete-cancel-btn {
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid black;
}


@media (max-width: 1024px) {
  .job-grid {
    grid-template-columns: repeat(3, 1fr);
    margin: auto;
  }
  .job-card {
  width: 280px;
  height: 300px;
  }
}

@media (max-width: 768px) {
  .job-grid {
    grid-template-columns: repeat(2, 1fr); 
    padding: 1rem;
    margin: auto;
  }
  .job-card, .ad-course-card {
  margin: auto;
  }
  
}

@media screen and (max-width: 480px) {
  .job-grid {
    grid-template-columns: 1fr; 
    padding: 1rem;
    margin: auto;
  }
  .ad-course-card {
  width: 220px;
  height: 200px;
  overflow: hidden;
  }
  .ad-course-title {
  font-size: 0.892rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  }

  .ad-course-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.job-card {
  width: 240px;
  height: 290px;
}

.ad-course-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

}

@media screen and (max-width: 1024px) {
  .ad-view-course-title {
    font-size: 1.6rem;
  }

  .ad-view-course-section-title {
    font-size: 1.05rem;
  }

  .ad-module-video {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .ad-view-course-wrapper {
    padding: 1rem;
  }

  .ad-view-course-title {
    font-size: 1.5rem;
  }

  .ad-view-course-section-title {
    font-size: 1rem;
  }

  .ad-module-details {
    padding: 12px;
  }

  .ad-module-details h4 {
    font-size: 1.1rem;
  }

  .ad-module-video {
    max-width: 100%;
  }

  .ad-view-course-module {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .ad-view-course-image {
    max-width: 100%;
  }
  .ad-edit-course-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
  
}

#editcourse_addModuleBtn {
  background-color: #002054;
  color: white;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.skill-btn {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s, color 0.3s;
  user-select: none;
  font-size: 0.9rem;
}
.skill-btn.selected {
  background-color: #002054;
  color: white;
}

@media screen and (max-width: 480px) {
  .ad-view-course-wrapper {
    padding: 0.75rem;
  }

  .ad-view-course-title {
    font-size: 1.3rem;
  }

  .ad-view-course-section-title {
    font-size: 0.95rem;
  }

  .ad-view-course-module {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .ad-module-details {
    padding: 10px;
  }

  .ad-module-details h4 {
    font-size: 1rem;
  }

  .ad-module-video {
    max-width: 100%;
  }

  .ad-view-course-skill {
    font-size: 0.8rem;
  }

  .ad-view-back {
    font-size: 0.9rem;
  }
}

/* freelancer section */
.fre-user-menu {
  position: absolute;
  top: 65%;
  right: 0;
  background-color: white;
  width: 180px;
  padding: 2rem;
  display: none;
  text-align: end;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  margin-right: 3%;
  z-index: 999;
  border-radius: 0.5rem;
}

.fre-user-menu.show {
  display: block;
}

.fre-user-role {
  font-size: 0.9rem;
  color: #6B7280;
}

.fre-user-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.fre-user-nav li {
  padding: 0;
  text-align: right;
  width: 100%;
}

.fre-user-nav li:last-child {
  border-bottom: none;
}

.fre-user-link:hover {
  background-color: #f0f0f0;
}

.fre-user-link {
  display: block;              
  width: 100%;
  padding: 0.6rem 0.4rem;
  color: #374151;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 4px;
}

.fre-mobile-only, .fre-mobile-search {
  display: none;
}

#fre-user-icon {
    width: 44px;            
    height: 44px;          
    object-fit: cover;       
    border-radius: 50%;   
    cursor: pointer; 
}

@media (max-width: 768px) {
  .fre-search, .fre-search-form,
  .fre-icons .icon-wrapper, 
  .fre-icons svg:not(#fre-user-icon):not(.fre-mobile-search) {
    display: none;
  }

  .fre-user-menu {
    width: 140px;
    padding: 1rem;
  }

  .fre-mobile-only {
    display: block;
  }

  .fre-user-link {
    font-size: 11px;
    padding: 0.4rem 0.3rem;
  }
   #fre-user-icon {
    width: 38px;
    height: 38px;
  }
  .fre-mobile-search {
    display: inline-block;
    margin-left: 0.8rem;
    color: #374151;
  }
}

.courses-main-container {
  max-width: 1200px;
  margin: 2rem auto; 
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.courses-cat-container {
  background-color: #E7F1FF;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  flex-wrap: nowrap; 
  gap: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;  
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
}

.courses-cat-container::-webkit-scrollbar {
  display: none;
}

.courses-cat-link {
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, background-color 0.3s ease;
  padding: 0.1rem 0.8rem;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}


.courses-cat-link:hover {
  background-color: #002054;
  color: white;
}

.courses-cat-link.active {
  background-color: #002054;
  color: #ffffff;
}

.courses-header-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.courses-header-wrapper a {
  padding: 0.20rem 0.90rem;
}


.courses-header-wrapper a:hover {
  background-color: #F2F4F8;
  border-radius: 0.5rem;
  transition: color 0.3s ease, background-color 0.3s ease;
}


.course-section {
  margin-top: 2rem;
  padding: 0 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.course-section-bg {
  background-color: #F2F4F8;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  width: 100%;   
  box-sizing: border-box; 
}

.course-section-bg::-webkit-scrollbar {
  display: none;
}

.course-img{
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.course-head {
  text-align: center;
}

.course-head h2 {
  margin-bottom: -10px;
}

.course-head p {
  margin-bottom: 2rem; 
}

.mentor-section-bg {
  background-color: #F2F4F8;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 20px;
  width: 100%;       
  box-sizing: border-box; 
}


.mentor-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s ease-in-out;
}

.mentor-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mentor-avatar-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mentor-avatar {
  width: 114px;
  height: 114px;
  border-radius: 50%;
  object-fit: cover;
}

.mentor-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #212529;
  text-align: center;
}

.mentor-body {
  padding:1.20rem;
}

.mentor-section + .mentor-section {
  margin-top: 1rem;
}

.mentor-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.mentor-text {
  font-size: 0.95rem;
  color: #212529;
  margin: 0;
}

.mentor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mentor-btn {
  background-color: #002054;
  color: #fff;
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mentor-btn:hover {
  background-color: #0b5ed7;
}

.mentor-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.mentor-modal-content {
  position: relative;
  background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
}

.mentor-modal-content input[type="text"],
.mentor-modal-content textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .course-img {
    max-width: 100%;
  }
}

.enroll-container-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding: 1rem;
}

.enroll-btn {
  background-color: #002054;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.enroll-btn:hover {
  background-color: #003080;
}

.module-main-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.module-content-wrapper {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.module-left {
  flex: 1 1 65%; 
}

.module-right {
  flex: 1 1 30%;  
}

.module-video {
  width: 100%;
  height: auto;
  margin: 1rem 0;
}


@media screen and (max-width: 768px) {
  .module-left,
  .module-right {
    flex: 1 1 100%;
  }
}

.enroll-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #002054;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  display: none;
}

.enroll-message.show {
  display: block;
}

.enroll-message.hidden {
  display: none;
}

.quiz-btn {
  width: 150px; 
  margin: 0 auto;
  display: block;
  padding: 0.55rem;
  background-color: #002054;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}


.quiz-btn:hover {
    background-color: #2b6cb0; 
}

.quiz-modal {
  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;
  z-index: 999;
}

.quiz-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;  
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  position: relative;

}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.quiz-header h3 {
  color: #002054;
  font-size: 1.6rem;
  font-weight: 700;
}

.quiz-timer {
  font-size: 1rem;
  font-weight: 700;
  background-color: #ffe5e5;
  border: 1px solid #d9534f;
  border-radius: 8px;
  color: #d9534f;
  padding: 8px 12px;
}

.quiz-questions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.quiz-question {
  background-color: #f5f6fa;
  border-left: 5px solid #002054;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quiz-question h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-options label {
  padding: 0.5rem 0.8rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-options input[type="radio"]:checked + label {
  background-color: #002054;
  color: white;
  border-color: #002054;
}

.quiz-options label:hover {
  background-color: #e6f0ff;
  border-color: #002054;
}


.submit-quiz-btn{
  width: 150px; 
  margin: 1rem auto 0;
  display: block;
  padding: 0.55rem;
  background-color: #002054;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.quiz-score-box {
  text-align: center;
  margin-bottom: 25px;
  padding: 20px;
  background-color: #002054;
  border: 2px solid black;
  border-radius: 10px;
}
.quiz-score-box h2 {
  margin: 0;
  font-size: 22px;
  color: white;
}
.score-text {
  font-size: 26px;
  font-weight: bold;
  color: white;
}

.quiz-result-box {
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-left: 5px solid #002054;
  border-radius: 8px;
}

.quiz-question-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.quiz-choice {
  padding: 6px 10px;
  margin: 4px 0;
  border-radius: 5px;
  background-color: #ffffff;
  transition: background 0.2s ease;
}

.quiz-choice.correct {
  background-color: #e1f8e6;
  color: #2e7d32;
  font-weight: bold;
}

.quiz-choice.incorrect {
  background-color: #fdecea;
  color: #c62828;
}

.badge {
  display: inline-block;
  margin-right: 8px;
  font-weight: bold;
}

.correct-badge {
  color: #2e7d32;
}

.incorrect-badge {
  color: #c62828;
}

.quiz-close-icon {
  position: absolute;
  top: -115px; 
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
}

#quiz-questions {
  position: relative;
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.badge-popup {
  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;
  z-index: 9999;
}

.badge-popup.hidden {
  display: none;
}

.badge-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  animation: zoomIn 0.4s ease-out;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.badge-popup-image {
  width: 250px;
  margin-bottom: 20px;
  animation: pop 0.4s ease-out;
}

@keyframes zoomIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}


/* Freelancer user profile */
.profile-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  gap: 1rem;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.profile-pic-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.edit-profile {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ccc;
}

.profile-pic-btn {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.editprofile-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: var(--signupp2-text);
    padding: 0.20rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.editprofile-btn:hover {
    background: #f3f4f6;
}

.delete-skill-btn {
    position: absolute;
    right: -12px; 
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 16px;
    text-align: center;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.profile-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.user-header h1,
.user-header p {
  margin: 0;
}

.user-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.user-rating {
  margin: 0; 
}



.user-name {
  font-size: 1.75rem;
  font-weight: 600;
}

.user-location {
  font-size: 0.9rem;
  color: #666;
}


.profile-actions {
  display: flex;
  flex-direction: column; 
  gap: 0.5rem;
  align-items: stretch;
  align-self: center;
}

.profile-actions .btn {
  padding: 0.5rem 2rem;
  font-size: 0.8rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}


.connect-btn {
  background-color: #002054;
  color: white;
}

.contactmodal {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    display: flex;  
    justify-content: center;  
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.contactmodal-content {
    width: 500px;  
    padding: 20px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column; 
    gap: 10px;  
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.contact-textarea-wrapper {
  display: flex;
    justify-content: space-between; 
    align-items: center;
    gap: 10px;  
    position: relative;  
    padding-top: 25px;  
}

.contact-textarea {
    flex-grow: 1; 
    padding: 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.viewsend-btn {
    padding: 10px;
    color: #002054;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    align-self: flex-end;  
}

.contactclose-btn {
    position: absolute;
    top: -10px;   
    right: 0;     
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.about-section,
.education-section,
.skills-section,
.badges-section,
.projects-section,
.reviews-section {
  margin-bottom: 2rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge {
  background-color: #e0f2fe;
  color: #0284c7;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  border-radius: 9999px;
}

.badge-image {
  width: 100px;
}

.projects-section {
  margin-bottom: 2rem;
}

.projects-list {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;          
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;

  -ms-overflow-style: none; 
  scrollbar-width: none;    
}

.projects-list::-webkit-scrollbar {
  display: none;           
}

.project-card {
  width: 100%;            
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  scroll-snap-align: start;
}

.project-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-content {
  padding: 1rem;
}

.project-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.project-title {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.project-desc {
  font-size: 0.875rem;
  color: #666;
}

.project-link {
  flex: 0 0 280px;        
  text-decoration: none;
  color: inherit;
  display: block;         
}

.project-link:hover .project-card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

.reviews-section{
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1rem;
  gap: 0.5rem;
}

.review-container {
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 5px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
  gap: 1rem;
}

.review-card {
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reviewer-name {
  font-weight: bold;
}

.review-date {
  color: #888888;
  font-size: 14px;
}

.review-rating {
  color: #ff9800; 
  font-size: 18px;
}

.review-text {
  margin-top: 10px;
  line-height: 1.5;
}

.review-textarea{
  width: 100%;           
  max-width: 300px;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.reviewmodal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.review-modal {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 999;
}

#reviewModal h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #002054;
  text-align: center;
  margin-bottom: 0.3rem; 
}

.reviewname {
  font-size: 1.25rem;
  font-weight: 500;
  color: #002054;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.user-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-rating svg {
    width: 15px;
    height: 15px;
    transition: fill 0.2s, stroke 0.2s;
}

.user-rating svg.filled path {
    fill: gold;
    stroke: gold;
}

.user-rating svg.half path {
    stroke: gold;
}

.user-rating svg path {
    fill: none;
    stroke: gold;
}


.stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 1rem 0;
}

.stars svg {
    width: 30px;
    height: 30px;
    cursor: pointer;
    stroke: black;
    fill: none;
    transition: fill 0.2s;
}

.stars svg.filled {
    fill: gold;
    stroke: gold;
}

.stardisplay {
    display: flex;
    gap: 5px;
    align-items: center;
}

.stardisplay svg {
    width: 15px;
    height: 15px;
    fill: none;    
    stroke: gold;   
    transition: fill 0.2s, stroke 0.2s;
}

.stardisplay svg.filled {
    fill: gold;     
    stroke: gold; 
}

.reviewmodal-buttons {
    margin-top: 1rem;
}

.review-submit {
    padding: 0.5rem 1.2rem;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.reviewmodal-close {
    padding: 0.5rem 1rem;
    background: #ccc;
    border: none;
    border-radius: 6px;
    margin-left: 0.5rem;
    cursor: pointer;
}

@media screen and (max-width: 992px) {
  .profile-header {
    flex-direction: column;
    align-items: center; 
    text-align: center;
  }

  .profile-info {
    flex-direction: column;
    gap: 1rem;
  }

  .edit-profile,
  .profile-image img {
    width: 100px;
    height: 100px;
  }

  .profile-actions {
    width: 100%;
    align-items: center;
  }

  .contactmodal-content {
    width: 90%; 
  }

  .reviewmodal-content {
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
  }
  .user-header {
     align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 576px) {
  .user-name {
    font-size: 1.25rem;
  }

  .project-link {
    flex: 0 0 80%;  
  }

  .project-card {
    width: 100%;
  }

  .skills-list {
    justify-content: center;
  }

  .review-container {
    grid-template-columns: 1fr;
  }

  .contactmodal-content {
    width: 95%;
    padding: 15px;
  }
  .user-header {
     align-items: center;
    text-align: center;
  }
}

/* User - Projects */
.user-projects__header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 1rem;
}

.user-projects__add-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  color: #002054;
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.user-projects__add-btn:hover {
  background-color: #002054; 
  color: white;
}

.media-label-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.media-label-wrapper label {
  font-weight: 500;
  font-size: 0.9rem;
}

.addpic_btn {
  background-color: #f0f0f0;
  border: none;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.addpic_btn svg {
  stroke: #333;
}

.project-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #002054;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  display: none;
}

.project-message.show {
  display: block;
}

.project-message.hidden {
  display: none;
}

.user-projects__title {
  font-size: 18px;
  font-weight: bold;
}

.user-projects__layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .user-projects__layout {
    flex-direction: row;
  }
}



.user-projects__item {
  padding: 8px 0;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
  
}

.user-projects-list {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  max-height: 400px; 
  overflow-y: auto;
  scrollbar-width: thin;       
  scrollbar-color: #ccc #f9f9f9;
  height: 450px;
}

.user-projects-list::-webkit-scrollbar {
  width: 6px;
}

.user-projects-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

.user-projects-list::-webkit-scrollbar-track {
  background-color: #f9f9f9;
}



.user-projects-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e0efff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: background-color 0.2s ease;
  color: inherit;
}

.user-projects-card:hover {
  background-color: #d6eaff;
}

.user-projects-card__info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.user-projects-card__text {
  font-size: 16px;
  color: #333;
}

.user-notification-text {
  display: flex;
  flex-direction: column; 
}

.user-notifications-card__time {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}



.red-dot {
  position: absolute;
  top: 1px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  display: none;
}

.red-dot-menu {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: red;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
}


/* User - Project View */
.ms-project-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.125rem; 
}

.ms-columns-wrapper {
  flex: 2.3;
  min-width: 0;
}

.ms-column {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


.ms-column-project-view {
  flex: 2;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.project-view-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-view-user-top {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee; 
  width: 100%;
}

.project-view-user-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    
}

.project-view-user-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 12px;
}

.project-view-user-name {
    font-size: 18px;
    font-weight: 600;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  border-radius: 8px;
}

.project-view-header-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-view-header-top {
  display: flex;
  flex-direction: column;
  line-height: 0.7rem;
}


.project-view-category {
  background-color: #dbeafe;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.project-view-description {
  color: #374151;
  margin-bottom: 1.25rem;
  word-wrap: break-word;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 1rem;
  border-radius: 8px;
}

.project-view-title {
  font-size: 1.525rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-skills-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 0.5rem;
}

.project-view-skill {
    display: inline-block; 
    background-color: #dbeafe;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin: 0 0.5rem 0.5rem 0;
    white-space: nowrap; 
    max-width: 100%;
}

.job-type {
    display: inline-block;     
    background-color: #dbeafe;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin: 0 0.5rem 0.5rem 0;
    white-space: nowrap;      
    width: auto;              
}

.job-type-container {
    display: inline-block;      
}

.project-img{
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.project-media-slider {
    position: relative;
    max-width: 700px;
    overflow: hidden;
}

.project-media-slider2 {
    position: relative;
    flex: 1 1 70%; 
    max-width: none; 
    overflow: hidden;
}

.project-posted-time{
  font-size: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333;
}

.type-of-work-options {
    display: flex;
    justify-content: center; 
    gap: 10px;
    margin-bottom: 1rem;
}

.work-option {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
    padding: 6px 16px;
    min-width: 100px;
}

.work-option input {
    display: none;
}

/* Modern approach using :has (Chrome, Edge, Safari 15+, Firefox 105+) */
.type-of-work-options label:has(input:checked) {
    background-color: #002054;
    color: white;
    border-color: #002054;
}



.slider-container {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    width: 100%;
    text-align: center;
}

.slide.active {
    display: block;
}

.project-media {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    border-radius: 5px;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.media-preview-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
  max-width: 100%;
}

.media-thumb-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  flex: 0 0 auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-existing-media {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
}

.media-upload-item {
  margin-top: 10px;
}

.apply-job-btn {
  padding: 10px 18px;
  background-color: #002054;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 1rem;
}

.apply-job-wrapper {
  margin-top: 1rem;
  min-height: 50px;
  border-top: 1px solid #eee;
  padding: 1rem;
  display: flex;           
  justify-content: flex-end; 
}


.job-content-wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.ms-column-applicants {
   flex: 1;
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    min-width: 280px;
  max-width: 100%;     
  box-sizing: border-box;
}

.applicants-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.applicants-box {
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
  border: 1px solid #ccc;
}

.applicant-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #dbeafe;
    border-radius: 6px;
    border-left: 4px solid #002054;
}

.applicant-action {
    font-size: 0.9rem;
    background-color: #002054;
    color: white;
    padding: 6px;
    border-radius: 0.25rem;
    text-align: center;
    cursor: pointer;
}


@media screen and (max-width: 1024px) {
  .ms-project-wrapper {
    flex-direction: column;
  }

  .ms-columns-wrapper,
  .ms-column-applicants {
    flex: 1 1 100%;
    width: 100%;
  }

  .ms-column-applicants {
    margin-top: 1.5rem;
    margin-left: 0;
  }
}

@media screen and (max-width: 600px) {
  .project-view-title {
    font-size: 1.25rem;
    line-height: 1.5rem;
  }

  .project-view-user-name {
    font-size: 0.9rem;
  }

  .project-view-skill {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .applicant-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .ms-column-applicants{
    margin-left: 0;
  }

  .applicant-action {
    width: 100%;
  }
}



/* User - Employer Notification */
.user-notifications__title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.user-notifications__layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .user-notifications__layout {
    flex-direction: row;
  }
}

.user-notif-sidebar {
  flex: 1;
  background-color: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.user-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-sidebar__item {
  padding: 8px 0;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
}

.user-sidebar__item:hover {
  color: #2a72d4;
}

.user-sidebar__item.active {
  color: #2a72d4;
  font-weight: bold;
}

.user-notification-list {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid #ddd;
}

.user-notification-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e0efff;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  gap: 10px;
}

.user-notification-card__info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-notification-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.user-notification-card__text {
  font-size: 16px;
  color: #333;
}

.user-notification-card__actions {
  display: flex;
  gap: 8px;
}

.user-btn-accept,
.user-btn-reject {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.user-btn-accept {
  color: white;
  background-color: #002054;
  border-radius: 50%;
}

.user-btn-accept:hover {
  opacity: 0.9;
}

.user-btn-reject {
  color: #dc3545;
}

.user-job__add-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  color: #002054;
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

/* Logout */
.logout-modal {
    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: center;
    z-index: 999;
}

.logout-modal-content {
    background-color: white;
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
}

.logout-modal-buttons button {
    margin: 10px;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.logout-modal-buttons button:first-child {
    background-color: #002054;
    color: white;
}

.logout-modal-buttons button:last-child {
    background-color: #ccc;
}
.hidden {
    display: none;
} 

/* payment section */
.user-payment-header,
.user-payment-card__info {
  display: grid;
  grid-template-columns: repeat(6, 1fr); 
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  text-align: center;
}

.user-payment-header {
  border-bottom: 2px solid #002054;
  font-weight: bold;
  background: #f4f6f9;
  border-radius: 6px;
  padding: 1rem;
}

.user-payment-card__info {
    background-color: #e0efff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: background-color 0.2s ease;
    color: inherit;
}

.payment-btn{
  padding: 10px 18px;
  background-color: #002054;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.payment-modal-content {
    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: center;
    z-index: 999;
}

.fee-summary {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
  font-size: 14px;
  color: #333;
  margin-bottom: 1rem;
}

.fee-summary p {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;  
  line-height: 1.4;
}

.fee-summary strong {
  color: #000;
}

.bold-text {
    font-weight: bold;
    color: #222;
}

.paypal-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0;
    width: 100%; height: 100%; 
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.paypal-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.3);
}

.paypal-modal-close {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
.paypal-modal-close:hover {
    color: #000;
}

.payment-popup {
    position: fixed;
    top: 50%;             
    left: 50%;           
    transform: translate(-50%, -50%); 
    background: #002054;
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
}
.payment-popup.show {
    display: block;
}
.payment-popup .close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
}

.editAmountBtn {
    cursor: pointer;
    transition: transform 0.2s;
}

.wallet-balance-bg {
  background-color: #002054;
  padding: 2rem; 
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem; 
  width: 250px;
}

.wallet-balance-bg h2 {
  font-size: 1.3rem;
  color: white;
  margin: 0;
}

.wallet-balance-bg p {
  font-size: 1.3rem;
  color: white;
  margin: 0;
}

.withdraw-btn {
  padding: 8px 10px;
  background-color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.withdraw-btn2 {
  padding: 10px 18px;
  background-color: #002054;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.withdraw-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.withdraw-modal.show {
    display: flex;
}

.popup-message {
    position: fixed;
    top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    width: 300px;
    text-align: center;
}

.popup-message.success {
    background-color: #002054; 
    color: white;
}

.popup-message .popup-header {
    font-weight: bold;
    font-size: 16px;
}

.popup-message .popup-body {
    font-size: 14px;
    margin-top: 5px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #333; 
    user-select: none;
}

.wallet-modal {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px; 
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}

.wallet-transaction-card{
  display:flex;
  justify-content:space-between;
  padding:18px 5px;
  border-bottom:1px solid #ddd;
}

@media screen and (max-width: 1024px) {
  .user-payment-header {
    display: none; 
  }

  .user-payment-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: left;
  }

  .user-payment-card__info span,
  .user-payment-card__info button,
  .user-payment-card__info .paid-text {
    display: block;
    width: 100%;
    font-size: 0.95rem;
  }

  /* Add labels for stacked fields */
  .user-payment-card__info span:nth-child(1)::before {
    content: "Job Title: ";
    font-weight: bold;
    color: #002054;
  }
  .user-payment-card__info span:nth-child(2)::before {
    content: "Freelancer/Employer: ";
    font-weight: bold;
    color: #002054;
  }
  .user-payment-card__info span:nth-child(3)::before {
    content: "Amount: ";
    font-weight: bold;
    color: #002054;
  }
  .user-payment-card__info span:nth-child(4)::before {
    content: "Status: ";
    font-weight: bold;
    color: #002054;
  }
  .user-payment-card__info span:nth-child(5)::before {
    content: "Date: ";
    font-weight: bold;
    color: #002054;
  }
  .user-payment-card__info span:nth-child(6)::before {
    content: "Action: ";
    font-weight: bold;
    color: #002054;
  }
}

/* Messages Section */
.user-msg-container {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.user-msg-list {
    border-bottom: 1px solid #ddd;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.user-msg-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.user-msg-title {
    font-size: 18px;
    font-weight: bold;
}

.lucide-square-pen-icon {
    cursor: pointer;
    transition: color 0.2s;
}

.user-msg-search {
    border: none;
    outline: none;
    font-size: 14px;
    background-color: #F2F4F8;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 15px;
}

.user-msg-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 300px;  
    overflow-y: auto;  
    padding-right: 5px; 
}

/* optional: style scrollbar (webkit browsers) */
.user-msg-contacts::-webkit-scrollbar {
    width: 6px;
}

.user-msg-contacts::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 3px;
}

.user-msg-contacts::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.chat-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}


.user-msg-contact {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-msg-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0; 
}

.user-msg-contact-time {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
    white-space: nowrap;
}


.user-msg-contact:hover {
    background: #f0f0f0;
}

.user-msg-avatar {
    width: 40px;
    height: 40px;
    background: #a3c8f2;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.user-msg-contact-name {
    font-weight: bold;
    font-size: 15px;
    line-height: 1;
}

.user-msg-contact-preview {
    font-size: 13px;
    color: #777;
    white-space: nowrap;    
    overflow: hidden;       
    text-overflow: ellipsis;
    max-width: 100%;      
    line-height: 1.2;
}

.user-msg-chat {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
}
#messagesContainer {
  max-height: 500px;
  overflow-y: auto;
}

.user-msg-chat-window {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    max-height: 500px;

    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px; 
}

.user-msg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.user-msg-header-avatar {
    width: 40px;
    height: 40px;
    background: #a3c8f2;
    border-radius: 50%;
    flex-shrink: 0;
}

.user-msg-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    height: 40px;
}

.user-msg-header-contact-name {
    font-weight: bold;
    font-size: 15px;
    line-height: 1.2;
}

.user-msg-contact-status {
    font-size: 13px;
    line-height: 1.2;
}

.status-online {
  color: green; 
}

.status-offline {
  color: black;
}

.user-msg-unread .user-msg-contact-preview,
.user-msg-unread .user-msg-contact-time {
    font-weight: bold;
    color: #000;
}


.user-msg-bubble {
    display: flex;
    align-items: center; 
    margin-bottom: 12px;
}
.user-msg-bubble-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    margin-right: 8px;
}

.user-msg-bubble-text {
    background: #e3f2fd; 
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    max-width: 70%;
    word-wrap: break-word;
}

.user-msg-bubble.outgoing {
    justify-content: flex-end;
}

.user-msg-bubble.outgoing .user-msg-bubble-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-msg-bubble.outgoing .user-msg-bubble-text {
    background: #007bff;
    color: white;
    max-width: 70%;
    word-wrap: break-word;
    border-radius: 8px;
    text-align: left; 
}

.user-msg-bubble.incoming .user-msg-bubble-content {
    align-items: flex-start;
}

.user-msg-bubble.incoming .user-msg-bubble-text {
    background: #e3f2fd;
    max-width: 70%;
    word-wrap: break-word;
    border-radius: 8px;
}


.user-msg-time {
    font-size: 12px;
    color: #999;
    line-height: 1.2;
    align-self: flex-end;
}

.user-msg-input {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
    gap: 10px;
}

.user-msg-input svg {
    flex-shrink: 0;
    cursor: pointer;
}

.user-msg-textbox {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: #F2F4F8;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.user-msg-send-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #002054;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

@media (min-width: 768px) {
    .user-msg-container {
        flex-direction: row;
        height: 500px;
    }

    .user-msg-list {
        border-bottom: none;
        border-right: 1px solid #ddd;
        width: 35%;
        max-width: 280px;
    }

    .user-msg-chat {
        width: 65%;
        padding: 15px;
    }
}

@media (min-width: 1024px) {
    .user-msg-container {
        margin: 20px auto;
        max-width: 1200px;
        height: 600px;
    }

    .user-msg-list {
        width: 30%;
        max-width: 350px;
    }

    .user-msg-chat {
        width: 70%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
  .user-msg-input {
    gap: 6px;
    padding: 4px 6px;
  }

  .user-msg-textbox {
    font-size: 13px;
    padding: 0.4rem 0.6rem;
    flex: 1;           
    min-width: 0;       
  }

  .user-msg-send-btn {
    flex-shrink: 0;   
  }

  .user-msg-send-btn svg {
    width: 20px;
    height: 20px;
  }

  .lucide-paperclip-icon {
    flex-shrink: 0;      
  }
}

@media (max-width: 360px) {
  .user-msg-textbox {
    font-size: 12px;
    padding: 0.3rem 0.5rem;
  }
}

/* Error page */
.error-container {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    height: 50vh;        
    text-align: center;   
}

.error-messages {
    border: 1px solid #e2e3e5;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    color: red;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.success-messages {
    border: 1px solid #e2e3e5;
    border-radius: 10px;
    max-width: 600px;
    width: 90%; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.error-page-link {
    margin-top: 20px;
}

.error-page-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #002054;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.error-page-link a:hover {
  opacity: 0.9;
}

/* Mentor */

.ms-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.ms-column {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-width: 280px; 
    max-height: 130vh;
    overflow-y: auto;
}
.ms-column-requests {
    flex: 3;
}

.ms-column::-webkit-scrollbar {
    width: 8px;
}
.ms-column::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.ms-column::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.ms-column-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

.ms-request-user{
  line-height: 0.5rem;
}
.ms-section-title{
  font-size: 1rem;
  font-weight: 600;
}

/* Request card */
.ms-request {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    
}

.ms-request-footer {
  border-top: 1px solid #eee;
  padding: 1rem;
  display: flex;             
  justify-content: flex-end;  
  gap: 0.5rem; 
}

/* Session card */
.ms-session {
    background: #dbeafe;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    line-height: 1.1rem;
    border-left: 4px solid #002054;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ms-session-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ms-session-meta {
    font-size: 0.875rem;
    color: #495057;
    margin: 0.25rem 0;
}

.ms-session-skill {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ms-session button {
    margin-left: auto;
}

.ms-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ms-btn-accept {
    background: #002054;
    color: #fff;
}

.ms-btn-accept:hover {
  opacity: 0.8;
}

.ms-btn-reject {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #ced4da;
}

.ms-btn-reject:hover {
    background: #e9ecef;
}

.ms-btn-end {
    background: #002054;
    color: #fff;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;     
    font-weight: 500;       
    border-radius: 0.35rem;
}


.ms-btn-end:hover {
    background: #bb2d3b;
}

@media (max-width: 992px) {
    .ms-layout {
        flex-direction: column;
    }
    .ms-column {
        max-height: 70vh; 
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .ms-column {
        max-height: 100vh;  
        padding: 0.781rem; 
    }

    .ms-column-title {
        font-size: 1rem; 
    }

    .ms-request-meta{
      line-height: 1.5rem;
    }

    .ms-request,
    .ms-session {
        padding: 0.75rem; 
    }
}
