/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap');

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  font-family: "Arimo", sans-serif;
}

body {
  background: #ffffff;
  color: #333;
  min-height: 100vh;
  display: flex;
}

/* Wrapper layout */
.wrapper {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #3b1b6f;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 0;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1001;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  letter-spacing: 1px;
}

.sidebar .menu {
  list-style: none;
  flex-grow: 1;
}

.sidebar .menu li {
  padding: 15px 20px;
}

.sidebar .menu li a {
  text-decoration: none;
      color: #fff;
      display: block;
      padding: 10px;
      border-radius: 6px;
      transition: background 0.3s;
}

.sidebar .menu li a i {
  margin-right: 10px;
  font-size: 20px;
}

.sidebar .menu li a:hover {
  background: #5e2fbc;
  
}
.sidebar .menu li a.active{
  background: #5e2fbc;
}
.menu a {
    /* This makes the <a> tag the parent for positioning the badge */
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 10px;  /* Adjust top position */
    right: 15px; /* Adjust right position */
    
    /* Style */
    background-color: #ff0000; /* Red background */
    color: #ffffff;           /* White text */
    border-radius: 50%;        /* Makes it a circle */
    
    /* Sizing & Centering */
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1; /* Fixes vertical alignment */
    
    /* Optional: A small shadow */
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Auth buttons at bottom */
.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.auth-buttons .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.auth-buttons .btn i {
  margin-right: 8px;
}

.auth-buttons .login {
  background: #1abc9c;
  color: #fff;
}

.auth-buttons .login:hover {
  background: #16a085;
}

.auth-buttons .register {
  background: #3498db;
  color: #fff;
}

.auth-buttons .register:hover {
  background: #2980b9;
}

/* Main Content */
.main_content {
  margin-left: 240px; /* keeps space for sidebar */
  padding: 20px;
  width: calc(100% - 240px);
  height: 100%; /* full height */
  box-sizing: border-box;
}

.main_content .header {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* transparent dark */
  justify-content: center;
  align-items: center;
}

/* Modal content box */
.modal-content {
  background: #fff;
  padding: 25px;
  width: 350px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
  z-index: 1002;
}
#loginModal .modal-content {
  width: 500px;
}

/* Close button */
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
}
.close:hover {
  color: #000;
}

/* Form inside modal */
.modal-content h2 {
  
  margin-bottom: 20px;
}

.modal-content form {
  display: flex;
  flex-direction: column;
}

.modal-content label {
  margin: 8px 0 5px;
  font-weight: bold;
}

.modal-content input {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal-content button {
  background: #3498db;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.modal-content button:hover {
  background: #2980b9;
}



/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.switch-form {
  display: flex;
  justify-content: space-between; /* This aligns one item left, one right */
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
  padding: 0 5px
}

.switch-form a {
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
}

.switch-form a:hover {
  text-decoration: underline;
}


/* Bigger modal for Register */
#registerModal .modal-content {
  width: 70%;                
  max-width: 1000px;
  max-height: 90vh;          /* fit within viewport */
  background: rgba(255,255,255,0.95);
  padding: 30px;
  border-radius: 12px;
  overflow-y: auto;          /* scroll if content is too tall */
}

/* Arrange inputs into 2 columns */
#registerModal form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 20px;
}

/* Make full-width fields span both columns */
#registerModal form h2,
#registerModal form button,
#registerModal form .form-group.full-width {
  grid-column: span 2;
}

#registerModal .addCertificate {
  background: #3b1b6f; /* green */
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  width: 100%; /* same width */
  grid-column: span 2;
  margin-bottom: 10px; /* spacing above register */
}

#registerModal .addCertificate:hover {
  background: #5e2fbc;
}


/* Form labels and inputs */
#registerModal label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

#registerModal input,
#registerModal select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
}

.radio-group label {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.error-message {
  padding: 12px;
  background: #f8d7da;
  border-radius: 6px;
  font-size: 15px;
  color: #a42834;
  text-align: center;
  margin-bottom: 18px;
}
.success-message {
  padding: 12px;
  background: #95f5a5;
  border-radius: 6px;
  font-size: 15px;
  color: #12f74b;
  text-align: center;
  margin-bottom: 18px;
}

.profile-container {
    display: flex;
    width: 100%; /* take 90% of the screen width */
    max-width: 2500px; /* optional max width */
    height: 100vh; /* 80% of viewport height */
    margin: auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
}

  /* Left Panel */
  .left-panel {
    width: 300px;
    background: #e9ecef;
    padding: 20px;
    text-align: center;
    border-right: 1px solid #ccc;
  }

  .left-panel img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
  }

  .left-panel h2 {
    margin: 5px 0;
    font-size: 18px;
  }

  .left-panel p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
  }

  .left-panel button {
    margin-top: 10px;
    padding: 6px 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .left-panel textarea {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    border-radius: 5px;
    padding: 5px;
    resize: none;
  }

  /* Right Panel */
  .right-panel {
  position: relative;
  display: flex;
  flex-direction: column; /* stack items vertically */
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.tabs {
  display: flex;
  gap: 15px;
  flex: 1;  /* take remaining space */
}

.sub-tab {
  padding: 8px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  flex:1;
}

.sub-tab.active {
  border-bottom: 2px solid #007bff;
  color: #007bff;
  font-weight: bold;
}

.tab-content, .sub-content{
  display: none;
}

.tab-content.active, .sub-content.active {
  display: block;
}

.tabs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  min-height: 50px;
  padding: 10px 20px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;

  width: 100%;       /* ensure full width */
  flex: 0 0 auto;   
  position: sticky;               /* above tab content */
}


  /*EDIT BUTTON IN THE PROFILE PERSONAL INFO*/
.edit-input {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.btn-group-global {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.btn.edit {
  background-color: #3498db;
  color: #fff;
  border-radius: 5px;
  border: none;
}
.btn.save {
  background-color: #2ecc71;
  color: #fff;
  border-radius: 5px;
  border: none;
  margin-left: 10px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 25px 0 10px;  /* space above and below */
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}



  .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
  }

  .form-row input,
  .form-row textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex: 1;
  }

  label {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 500;
  }
  .section-title-edu {
  font-size: 22px;
  font-weight: 600;
  margin: 10px 0 25px;  /* space above and below */
  color: #333;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.form-row-edu {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
  }
  .form-row-edu input,
  .form-row-edu textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    flex: 1;
  }
  
.page-content {
  display: none;
}
.page-content.active {
  display: block;
}
.tab-content {
  display: none;
  width: 100%;
  margin-top: 15px; /* spacing below tabs-row */
}

.tab-content.active {
  display: block;
}

.certificate-field {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.certificate-field input[type="file"] {
  flex: 1;
}

.certificate-field .remove-cert-reg {
  margin-left: 8px;
  background: #e74c3c;
  border: none;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.certificate-field .remove-cert-reg:hover {
  background: #c0392b;
}

.logo-container {
  text-align: center;
  margin-bottom: 8px;
}

.company-logo {
  width: 80px;   /* adjust size (try 60px if you want smaller) */
  height: auto;
  display: block;
  margin: 0 auto;
}

.profile-box {
  text-align: center;
  margin-top: auto; /* ensures it stays at the bottom */
}

.profile-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.profile-name {
  color: white;
  font-size: 14px;
  margin-bottom: 5px;
}

.logout-link {
  color: #ff6666;
  font-size: 12px;
  text-decoration: none;
}

.btn.logout {
  display: inline-block;
  padding: 10px 20px;
  background: #e74c3c;   /* red tone for logout */
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  transition: background 0.3s ease; 
}

.btn.logout:hover {
  background: #c0392b; /* darker red on hover */
}


.home-container {
    /* Switching to flex for a cleaner main/sidebar split */
    display: flex;
    gap: 20px;
    height: 100%;
    background: #e9f2fa;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    align-items: flex-start; /* Ensures sidebar sticks to the top */
}

/* Job Listings take up the majority of the space */
.jobs-section {
    flex: 3; /* e.g., takes up 70% of the space */
    min-width: 0;
    width: 100% /* Prevents overflow */
}

/* ATS Sidebar (using your provided .status-section content structure) */
.ats-sidebar {
    flex: 1; /* e.g., takes up 30% of the space */
    min-width: 250px;
    background: #fff; /* White background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ats-sidebar h2 {
    font-size: 20px;
    color: #3b1b6f;
    text-align: left;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* --- 2. SEARCH BAR STYLES (New Feature) --- */
.job-search-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 20px; 
}

.search-bar-container {
    position: relative;
    width: 300px; 
}

#jobSearchInput {
    width: 100%;
    padding: 10px 10px 10px 35px; /* Space for the icon */
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.job-search-header .page-title {
    margin-bottom: 0;
    margin-left: 20px; 
    white-space: nowrap;
}

/* --- 3. DYNAMIC JOB CARD DESIGN (Your requested styling) --- */

.section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Divider between sections */
.section-divider {
    border: none;
    height: 1px;
    background-color: #eee;
    margin: 40px 0;
}

/* --- Matched Job Card Styling --- */

/* Badge for matched jobs */
.match-badge {
    background-color: #ffc107; /* Your gold color */
    color: #333;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 8px; /* Adds space between badge and title */
}

.match-badge .fa-star {
    color: #DAA520; /* Darker gold for the star */
}

/* Make the matched card stand out a bit */
.job-card.matched-job {
    border-left: 5px solid #ffc107;
    background-color: #fffbef; /* A very light yellow */
}

.page-title { 
    font-size: 24px; 
    font-weight: bold; 
    margin-bottom: 5px; 
}

.job-card {
    background: #f9f9f9;
    padding: 25px; /* Attractive padding */
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* More prominent shadow */
    line-height: 1.5;
    border: 1px solid #eee; /* Subtle border */
    position:relative;
}
.job-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns badge/title to the left */
}

/* Header section containing role title and action buttons */
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #3b1b6f; /* Stronger divider for the header */
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.job-card .job-header .job-title-group h2 {
    margin: 0;
}

/* Job Action Buttons (Edit/View Applicants) */
.job-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9em;
  color: #fff;
  text-transform: capitalize;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* The specific colors */
.status-badge.status-pending {
  background-color: #ffc107; /* Yellow */
  color: #333;
}

.status-badge.status-interview {
  background-color: #007bff; /* Blue */
}

.status-badge.status-hired {
  background-color: #28a745; /* Green */
}

.status-badge.status-reject {
  background-color: #dc3545; /* Red */
}

/* A default color just in case */
.status-badge {
    background-color: #6c757d; /* Gray */
}

.apply-job-btn {
    background: #007bff; 
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9em;
    white-space: nowrap;
}
.apply-job-btn:hover {
    background: #0056b3;
}

/* Job Description */
.job-card .job-description-text {
    margin-top: 15px;
    margin-bottom: 20px;
    color: #444;
}

.job-card {
    /* This makes the opacity change take 0.5 seconds */
    transition: opacity 0.5s ease-in-out;
}
.cancel-application-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f1f1f1;
    color: #888;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 20px;
    font-weight: bold;
    line-height: 26px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.cancel-application-btn:hover {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

.cancel-application-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.application-status-card .job-header .status-badge {
    /* Pushes the badge 35px from the right edge, making room for the 'X' */
    margin-right: 35px;
}
/* Job Details Meta (Type and Salary) */
.job-details-meta {
    display: flex;
    gap: 30px; 
    margin-bottom: 25px; 
    padding-bottom: 15px;
    border-bottom: 1px dashed #ddd; 
}
.detail-item {
    font-size: 0.95em;
    color: #3b1b6f; 
    font-weight: 600;
}
.detail-item i {
    color: #5e2fbc; 
    margin-right: 8px;
}

/* Requirements Section */
.job-requirements h3 {
    font-size: 1.1em;
    color: #3b1b6f;
    margin-top: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #5e2fbc;
    padding-left: 10px;
}

/* Skill Pills */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; 
    margin-bottom: 20px; 
}
.skill-pilli {
    background: #e9f2fa; /* Light background for the pill */
    color: #3b1b6f;
    padding: 6px 12px;
    border-radius: 20px; /* Pill shape */
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #3b1b6f30;
}
.skill-pilli i {
    margin-right: 5px;
    color: #1abc9c; /* Success color for checkmark */
}

/* Qualifications List */
.quali-list {
    list-style: none;
    padding: 0;
    margin-left: 0;
}
.quali-list li {
    padding: 5px 0;
    color: #555;
    font-size: 0.9em;
}
.quali-list li i {
    margin-right: 8px;
    color: #5e2fbc;
}

.suggestions {
  border: 1px solid #ccc;
  border-radius: 5px;
  max-height: 150px;
  overflow-y: auto;
  margin-top: 5px;
  width: 100%;
  background: white;
  position: absolute;
  z-index: 1000;
}

.suggestions div {
  padding: 8px;
  cursor: pointer;
}

.suggestions div:hover {
  background: #eee;
}

/* Skills list (below input) */
#skillsList {
  list-style: disc;
  margin-top: 10px;
  padding-left: 20px;
}

#skillsList li {
  background: #e0e0e0;
  padding: 6px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

#skillsList li button {
  background: #b0b0b0;
  color: white;
  border: none;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 10px;
}

#skillsList li button:hover {
  background: #eb1b1b;
}


#experienceWrapper {
  margin-top: 15px;
}

.experience-field {
  background: #f8f9fa;       /* light grey background */
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.experience-field label {
  display: block;
  margin: 6px 0 4px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.experience-field input,
.experience-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 8px;
}

.experience-field textarea {
  resize: vertical;
  min-height: 60px;
}

/* Remove button (X) */
.experience-field .remove-exp {
  background: #d9534f; /* red */
  border: none;
  color: #fff;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  transition: background 0.2s ease;
}

.experience-field .remove-exp:hover {
  background: #c9302c;
}

/* Add another experience button */
#addExperience {
  background: #3b1b6f; /* green */
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s ease;
}

#addExperience:hover {
  background: #5e2fbc;
}


/*CERTIFICATES TAB */
.certificates-gallery-scroll {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 75%;
    margin: 0 auto; /* center gallery */
    background-color: #f9f9f9;
    overflow-x: auto;
}

.certificates-gallery-scroll img {
    height: 150px;
    border: 2px solid #aaa;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
}

.pdf-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 150px;
    height: 200px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    border: 2px solid #aaa;
    border-radius: 5px;
    cursor: pointer;
}

.pdf-link i {
    color: red;
    font-size: 36px;
    margin-bottom: 5px;
}

.pdf-link span {
    font-size: 14px;
    word-break: break-word;
}

/* Zoom overlay - center the image */
.zoom-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;     /* center vertically */
    padding: 20px;
    box-sizing: border-box;
}

.zoom-overlay img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    cursor: zoom-out;
    object-fit: contain;
}

.close-zoom {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
.certificate-item {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.certificate-item .remove-cert{
   display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  cursor: pointer;
  font-size: 16px;
  line-height: 25px;
  text-align: center;
  z-index: 20;
}
#certificatesGallery.editing .remove-cert {
  display: block; /* show only in edit mode */
}

/*SKILLS*/
#skillsGallery {
    display: flex;
    flex-wrap: wrap;        /* allow multiple rows */
    gap: 10px;              /* space between pills */
    padding: 10px;
}

.skill-pill {
    display: inline-block;
    position: relative;          /* so remove button can be positioned inside */
    background-color: #e0f0ff;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 28px 6px 12px;  /* more right padding for the X button */
    border-radius: 50px;
    white-space: nowrap;
    transition: transform 0.2s, background-color 0.2s;
    cursor: default;
}

/* Hover effect */
.skill-pill:hover {
    background-color: #c0e0ff;
    transform: scale(1.05);
}

/* Remove button inside pill */
.skill-pill .remove-skill {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    background: #d9534f;
    border: none;
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* only show in edit mode */
}

/* When editing, show remove button */
#skillsGallery.editing .remove-skill {
    display: inline-block;
}

/*EXPERIENCE*/
#experienceWrapper-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;

    max-height: 810px;   /* or any height you want */
    overflow-y: auto;    /* makes it scroll vertically */
    padding-right: 8px;
}

/* Each experience block */
.experience-field-profile {
    border: 1px solid #ccc;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    display: grid;
    grid-template-columns: 1fr 1fr; /* two columns for better layout */
    gap: 15px 20px;
    position: relative;
}

/* Make label span full width */
.experience-field-profile label {
    grid-column: span 2;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* Inputs and textareas */
.experience-field-profile input[type="text"],
.experience-field-profile input[type="date"],
.experience-field-profile textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #aaa;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #fff;
}

/* Textarea specifically */
.experience-field-profile textarea {
    resize: vertical;
    min-height: 60px;
}

/* Optional hover effect */
.experience-field-profile:hover {
    border-color: #0073e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* If you want input fields to take full width on smaller screens */
@media screen and (max-width: 768px) {
    .experience-field-profile {
        grid-template-columns: 1fr;
    }
}

.experience-field-profile .deleteExpBtn-profile {
    display:none;
    background: #d9534f; /* red */
    border: none;
    color: #fff;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: background 0.2s ease;
}

.experience-field-profile .deleteExpBtn-profile:hover {
    background: #c9302c;
}

.add-cert-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Button styling */
#profileaddCertificateBtn {
    background-color: #4CAF50; /* professional green */
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#profileaddCertificateBtn:hover {
    background-color: #45a049;
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.add-skill-btn-container {
    display: flex;
    justify-content: left ;
    margin-top: 20px;
}

#addSkillBtn {
    background: #007bff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#addSkillBtn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

#addSkillBtn:active {
    background: #004494;
    transform: translateY(0);
}

.suggestionsSkill {
  border: 1px solid #ccc;
  border-radius: 5px;
  max-height: 150px;
  overflow-y: auto;
  margin-top: 5px;
  width: 100%;
  background: white;
  position: absolute;
  z-index: 1000;
}

.suggestionsSkill div {
  padding: 8px;
  cursor: pointer;
}

.suggestionsSkill div:hover {
  background: #eee;
}

#skillsSectionprofile {
  display: none;
  margin-top: 15px;
  position: relative; /* Make this relative so dropdown anchors correctly */
}

#skillsInputprofile {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

#addExpeBtn {
    background: #007bff;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border: none;
    border-radius: 8px; /* smoother, less rounded edges */
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#addExpeBtn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

#addExpeBtn:active {
    background: #004494;
    transform: translateY(0);
}

#skillsListprofile {
  list-style: disc;
  margin-top: 10px;
  padding-left: 20px;
}

#skillsListprofile li {
  background: #e0e0e0;
  padding: 6px 12px;
  margin-bottom: 6px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

#skillsListprofile li button {
  background: #b0b0b0;
  color: white;
  border: none;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-left: 10px;
}

#skillsListprofile li button:hover {
  background: #eb1b1b;
}

.mock-container {
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.interview-box {
  width: 100%;
  height: calc(100vh - 40px);
  border: 6px solid black;
  border-radius: 25px;
  padding: 20px;
  background: white;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* ✅ Chat area (holds Q&A) */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px 25px 100px;
  overflow-y: auto;
}

/* ✅ Question section (top-right) */
.question-section {
  align-self: flex-end;
  text-align: right;
  margin-top: 8px; /* closer to top */
}

#questionText {
  display: inline-block;
  max-width: 400px; /* keeps it balanced */
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 14px 14px 0 14px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: left;
  transition: all 0.3s ease;
  white-space: nowrap;        /* 👈 keeps it one line */
  overflow: hidden;           /* hides overflow text */
  text-overflow: ellipsis;    /* adds "..." when too long */
}

/* Hover animation */
#questionText:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* ✅ Answer bubble (left, flexible width) */
.answer-text {
  align-self: flex-start;
  width: auto;
  max-width: 90%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-radius: 14px 14px 14px 0;
  padding: 15px 20px;
  font-size: 1.1rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  word-wrap: break-word;
  text-align: left;
}

/* ✅ Controls bottom center */
.control-buttons {
  text-align: center;
  margin-top: auto;
  padding: 20px 0;
  border-top: 2px solid #eee;
  background: #f9fafb;
  border-radius: 0 0 20px 20px;
}

.control-buttons .btn {
  margin: 0 10px;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #3498db;
  color: white;
  transition: 0.2s;
}

.control-buttons .btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.control-buttons .btn:hover:enabled {
  background: #2980b9;
}

/* Fade animation */
@keyframes fadeInQuestion {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInQuestion 0.4s ease;
}

#feedbackRow {
  display: flex;
  justify-content: flex-end; /* aligns right like bot question */
}

#feedbackText {
  max-width: 90%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border-radius: 14px 14px 0 14px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  word-wrap: break-word;
  font-size: 1.1rem;
  line-height: 1.5;
}


.required {
  color: red;
  margin-left: 3px;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 400px;
  border-radius: 8px;
}

.loader {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: #3498db; 
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(52,152,219,0.6);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.password-wrapper{
	position: relative;
	width: 100%;
	margin-bottom: 15px;
}

.password-wrapper input{
	width: 100%;
	padding-right: 40px !important;
	margin-bottom: 0 !important;
}
.toggle-password {
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	cursor: pointer;
	color: #888;
}
.toggle-password:hover{
	color: #333;
}

.password-feedback {
    margin-top: -10px; /* Pulls it closer to the input */
    margin-bottom: 15px;
    padding: 10px;
    background: #f4f4f4;
    border-radius: 5px;
    font-size: 13px;
    
    /* Hide by default, show with JS */
    display: none; 
}

.password-feedback .requirement {
    transition: all 0.2s ease;
}

.password-feedback .requirement span {
    display: inline-block;
    width: 20px; /* Aligns the text */
    text-align: center;
    margin-right: 5px;
}

/* Invalid state (default) */
.password-feedback .requirement.invalid {
    color: #a00; /* Dark red */
}
.password-feedback .requirement.invalid span {
    color: #a00;
}

/* Valid state */
.password-feedback .requirement.valid {
    color: #006400; /* Dark green */
    text-decoration: line-through;
}
.password-feedback .requirement.valid span {
    color: #006400;
}



.inbox-container {
    /* MODIFIED: Removed max-width and margin: auto to allow full width */
    margin: 0;
    max-width: none; 
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.message-item {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    /* MODIFIED: Increased padding for a better feel */
    padding: 18px 20px; 
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item:hover {
    background-color: #f9f9f9;
}

.message-item.unread {
    background-color: #f4f8ff;
    /* REMOVED: font-weight: bold; (This is now applied more specifically) */
}

.message-item.read {
    background-color: #fff;
}

.message-subject {
    flex: 1; /* This is the "Subject" part */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
    font-size: 1.05em; /* MODIFIED: Made font bigger */
}

/* * NEW RULE: This is the fix for your BOLD request.
 * It only bolds the subject area *if* the parent item is 'unread'.
*/
.message-item.unread .message-subject {
    font-weight: 700; /* 700 is the same as 'bold' */
}

.message-subject .from {
    padding: 4px 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600; /* This is the sender name */
    margin-right: 10px;
}

.message-item.unread .message-subject .from {
    background-color: #007bff;
    color: white;
}

.message-preview {
    flex: 2; /* This is the "message 1" preview part */
    /* MODIFIED: Made font bigger and darker */
    font-size: 1em; 
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 15px;
}

.message-item.read .message-preview {
    color: #777;
}

.message-date {
    font-size: 0.9em; /* MODIFIED: Made font bigger */
    color: #888;
    white-space: nowrap;
}


.modal-content.large {
    /* REQUEST: make modal bigger */
    width: 1100px; 
    max-width: 90vw;
    height: 85vh; /* <-- Sets height to 85% of your screen */
    display: flex; /* <-- Use flexbox */
    flex-direction: column;
}

.message-modal-header {
    /* This is the top section with Subject, From, Date */
    flex-shrink: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* REQUEST: make subject bold and bigger */
.message-modal-header #modalSubject {
    margin-top: 0;
    margin-bottom: 15px; /* Increased spacing */
    font-size: 1.75em;  /* Bigger */
    font-weight: 700;   /* Bold */
    line-height: 1.3;
}

.message-modal-header p {
    margin: 4px 0; /* Add a little space between 'From' and 'Date' */
    font-size: 1em; /* Make this text a bit bigger */
    color: #555;
}

#modalFrom {
    /* 'From:' text is added by JS */
    font-weight: 600;
}

#modalDate {
   /* 'Date:' text is added by JS */
   font-style: italic;
   font-size: 0.95em;
   color: #777;
}

/* REQUEST: Clear separation for MESSAGE */
.message-modal-body {
    flex: 1; /* <-- Tells it to fill all available space */
    overflow-y: auto;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
    padding-top: 20px;
    border-top: 2px solid #f9f9f9; /* Separator line */
    margin-top: 20px;
}

/* NEW: Add a label for the "MESSAGE" part */
.message-modal-body::before {
    content: "MESSAGE";
    font-weight: 700;
    font-size: 0.9em;
    color: #888;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 10px;
}

/* This is the <p> tag holding the main message */
.message-modal-body #modalMessageBody {
    margin: 0;
    padding: 0;
    font-size: 1.05em; /* Make the message body a bit bigger */
    /* This preserves new lines from the database */
    white-space: pre-wrap;
}


.message-modal-footer {
 padding: 15px 20px;
 border-top: 1px solid #eee;
 background-color: #f9f9f9;
 flex-shrink: 0; /* Prevents shrinking */
text-align: right; /* Aligns button to the right */
}

.btn.reply-btn {
   background-color: #007bff;
 color: white;
 font-size: 1em;
 padding: 10px 20px;
}

.btn.reply-btn i {
 margin-right: 8px;
}

.btn.reply-btn:hover {
 background-color: #0056b3;
}

/* --- Reply Modal Styling --- */
.modal-header-reply {
 display: flex;
 justify-content: space-between;
align-items: center;
 border-bottom: 1px solid #eee;
 padding-bottom: 15px;
 margin-bottom: 20px;
}

.modal-header-reply h2 {
 margin: 0;
 font-size: 1.25rem;
}

#replyForm {
 display: flex;
 flex-direction: column;
 gap: 15px;
}

#replyForm .form-group {
 width: 100%;
}

#replyForm label {
display: block;
 margin-bottom: 6px; font-weight: 600;
color: #555;
font-size: 0.9rem;
}

#replyForm input[type="text"],
#replyForm textarea {
 width: 100%; 
 padding: 12px; 
 border: 1px 
 solid #ccc;
 border-radius: 8px;
 font-size: 15px; outline: none;
 transition: border-color 0.3s, box-shadow 0.3s;
 background-color: #fff;
 box-sizing: border-box; 
}

#replyForm input[type="text"]:focus,
#replyForm textarea:focus {
 border-color: #3b1b6f; /* Your site's brand color */
 box-shadow: 0 0 5px rgba(59, 27, 111, 0.3);
}

#replyRecipientName[readonly] {
 background: #f0f0f0;
 border-color: #ddd;
 cursor: not-allowed;
 color: #777;
}

#replyForm textarea {
 resize: vertical;
 min-height: 120px;
}

.submit-btn-reply {
 background: #28a745; /* Green for send */
 color: #fff;
 border: none;
 border-radius: 8px;
 padding: 14px;
 font-size: 16px;
 cursor: pointer;
 transition: background 0.3s;
 margin-top: 10px;
}

.submit-btn-reply:hover {
 background: #218838;
}


.modal-content .modal-actions {
  text-align: right;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* Basic button styles */
.modal-actions .btn {
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.modal-actions .btn-secondary {
  background-color: #6c757d;
  color: white;
  margin-right: 10px;
}

.modal-actions .btn-danger {
  background-color: #e74c3c;
  color: white;
}

.modal-actions .btn-secondary:hover {
  background-color: #5a6268;
}

.modal-actions .btn-danger:hover {
  background-color: #c0392b;
}


.about-container {
  padding: 20px 30px;
  width: 100%;
  height: 100%;
}

.about-section {
  margin-bottom: 30px;
}

.about-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #333;
  text-align: center;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 5px solid #007bff; /* Matches your site's likely accent color */
}

/* Mission, Vision, Values */
.mvv-container {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allows stacking on small screens */
}

.mvv-card {
  flex: 1; /* Each card takes equal space */
  min-width: 260px; /* Minimum width before wrapping */
  padding: 30px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.mvv-card i {
  font-size: 2.8rem; /* Large icon */
  color: #007bff; /* Main accent color */
  margin-bottom: 20px;
}

.mvv-card h3 {
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 15px;
}

.mvv-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Map Section */
.map-section {
  margin-top: 30px;
}

.map-section h3 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.map-section iframe {
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%; /* Ensures it's responsive */
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .mvv-container {
    flex-direction: column; /* Stack MVV cards */
  }
  
  .about-container {
    padding: 15px;
    margin: 10px;
  }

  .mvv-card h3 {
    font-size: 1.4rem;
  }
}

.partners-section h3 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.partners-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
  background: #fdfdfd;
  border-radius: 8px;
  border: 1px solid #eee;
}

.partners-gallery img {
  max-width: 180px;
  max-height: 90px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.partners-gallery img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}


/* ===================
   ABOUT US - CONTACTS
   =================== */

/* ===================
   ABOUT US - CONTACTS
   =================== */

.contact-section h3 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 35px;
  color: #333;
}

.contact-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  min-width: 300px;
  text-align: left;
}

.contact-card h4 {
  font-size: 1.3rem;
  color: #007bff;
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-card h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.contact-card p {
  font-size: 0.95rem;
  color: #333;
  margin: 5px 0;
  display: flex;
  align-items: center;
}

.contact-card p i {
  width: 20px;
  margin-right: 8px;
  color: #888;
}

/* --- Tree Structure Lines --- */

/* Base node style */
.tree-node {
  position: relative;
  display: inline-block;
}

/* Root node style */
.tree-node.root {
  padding-bottom: 30px; /* Space for the line */
}

/* Line DOWN from the root */
.tree-node.root::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background-color: #ccc;
}

/* Container for reps */
.tree-reps {
  display: flex;
  justify-content: center;
  gap: 50px; /* Space between reps */
  position: relative;
  padding-top: 30px; /* Space for lines */
  width: 100%;
}

/* Horizontal line ABOVE the reps */
.tree-reps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 27.5%;
  right: 17%;
  height: 2px;
  background-color: #ccc;
}

/* Rep node style (vertical stack) */
.tree-node.rep {
  position: relative; /* This is critical */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Line UP from rep to main horizontal bar */
.tree-node.rep::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background-color: #ccc;
}

/* Rep's card (sits on top of lines) */
.tree-node.rep > .contact-card {
  position: relative;
  z-index: 2;
}

/* Line DOWN from rep card */
.tree-node.rep > .contact-card::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 3px;
  background-color: #ccc;
  z-index: 1;
}

/* Container for the children nodes */
.tree-children {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  position: relative;
  padding-top: 30px;
}

/* Horizontal line that connects all children */
.tree-children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24%;
  right: 23.9%;
  display: var(--show-horizontal, block);
  height: 2px;
  background-color: #ccc;
  z-index: 1;
}

/* Hide horizontal line if only one child */
.tree-children:has(.tree-node.child:only-child) {
    --show-horizontal: none;
}

/* Child node style */
.tree-node.child {
  position: relative;
}

/* Line UP from each child card */
.tree-node.child::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background-color: #ccc;
  z-index: 1;
}


/* =============================
   ABOUT US PAGE STYLES
   ============================= */

/* Slogan Style */
.about-slogan {
  text-align: center;
  font-size: 1.5rem;
  font-style: italic;
  color: #444;
  margin-top: -10px;
  margin-bottom: 30px;
}

/* Footer Styles */
.about-footer {
  border-top: 2px solid #eee;
  padding-top: 25px;
  margin-top: 40px;
  background: #f9f9f9;
  text-align: center;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-item {
  font-size: 1.1rem;
}

.footer-item a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-item a:hover {
  color: #007bff; /* Optional: Add a hover effect */
}

.consent-modal-content {
  width: 70%; /* As requested */
  max-width: 900px;
  padding: 2.5rem 3rem; /* More padding */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: left; /* Override center-align from other modals */
}

/* This overrides the span if you kept it, but it's better to remove the HTML */
#consentModal .close {
  display: none; 
}

/* 2. Header "Tag" */
.consent-tag {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6c757d; /* Gray color */
  margin-bottom: 20px;
}
.consent-tag .fa-lock {
  margin-right: 5px;
  color: #6c757d;
}

/* 3. Main Title */
.consent-modal-content h2 {
  font-size: 1.8rem;
  color: #222;
  margin-top: 0;
  margin-bottom: 8px;
  text-align: left; /* Override default */
}

/* 4. Subtitle */
.consent-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 25px;
}

/* 5. Blue "Tip" Box */
.consent-tip {
  background-color: #e6f7ff; /* Light blue */
  border: 1px solid #b3e0ff; /* Darker blue border */
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 0.95rem;
  color: #0056b3; /* Dark blue text */
  margin-bottom: 25px;
}

/* 6. Scrollable Policy Text */
.consent-policy-text {
  max-height: 250px; /* Set a max height */
  overflow-y: auto;  /* Add scrollbar */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background-color: #f9f9f9;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 25px;
}
.consent-policy-text p {
  margin-bottom: 1.2em; /* Spacing between paragraphs */
}
.consent-policy-text strong {
  color: #000;
}

/* 7. Checkbox */
.consent-actions {
  text-align: left;
}
.consent-checkbox-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
}

/* 8. Action Buttons Area */
.consent-actions .modal-actions {
  justify-content: flex-start; /* Align buttons to the LEFT */
  margin-top: 25px;
}

/* 9. "Agree & Continue" Button (Green) */
#agreeBtn {
  background-color: #3b1b6f; /* Green */
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
}
#agreeBtn:hover {
  background-color: #5e2fbc; /* Darker Green */
}
#agreeBtn:disabled {
  background-color: #cccccc;
  border-color: #cccccc;
  opacity: 0.7;
}

/* 10. "Disagree" Button (Flat Gray) */
.consent-modal-content .btn-secondary {
  background-color: transparent;
  color: #6c757d;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  box-shadow: none;
}
.consent-modal-content .btn-secondary:hover {
  background-color: #f1f1f1; /* Slight hover effect */
  color: #333;
}



/* Hide form steps by default */
.form-step {
    display: none;
}
/* Show the active step */
.form-step.active {
    display: block;
}

/* Status message for errors/success */
.forgot-status {
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}
.forgot-status.success {
    color: green;
}
.forgot-status.error {
    color: red;
}
#forgotPasswordModal .modal-content {
  width: 400px; /* This makes the modal wider, as before */
}

/* Make the email input field larger */
#forgotPasswordModal input[type="email"],
#forgotPasswordModal input[type="text"],
#forgotPasswordModal input[type="password"] {
  padding: 12px 14px;  /* Increase padding (height) */
  font-size: 15px;     /* Increase font size */
}

/* 3. Target the specific buttons inside this modal */
#forgotPasswordModal button[type="submit"] {
  padding: 12px;       /* Increase padding (height) */
  font-size: 16px;     /* Increase font size */
  font-weight: 600;
}
#registerModal .switch-form {
  justify-content: center; /* Change from space-between to center */
  gap: 5px;                /* Adds a small space between the text and the link */
}

#registerModal,
#consentModal {
  z-index: 1010;
}

@media (max-width: 768px) {

    /* 1. Make the sidebar stack on top instead of being fixed */
    .sidebar {
        width: 100%;       /* Make it full width */
        height: auto;      /* Let content decide the height */
        position: relative;  /* Un-fix it from the side */
        z-index: auto;       /* Reset its z-index */
    }

    /* 2. Make the main content take 100% width below the sidebar */
    .main_content {
        width: 100%;       /* Make it full width */
        margin-left: 0;    /* Remove the 240px margin */
        padding: 10px;     /* Add some space for small screens */
    }

    /* 3. Make the Register modal full-width and single-column */
    #registerModal .modal-content {
        width: 95%;        /* Almost full width, with small gaps */
        max-height: 90vh;  /* Make sure it doesn't go off-screen */
    }

    #registerModal form {
        grid-template-columns: 1fr; /* Stack all form fields in 1 column */
        gap: 15px;
    }

    /* 4. Fix form fields that were meant to span two columns */
    #registerModal form h2,
    #registerModal form button,
    #registerModal form .form-group.full-width {
        grid-column: span 1; /* Make sure they only span 1 column */
    }
    
    /* 5. Stack other flexible content */
    .profile-container, 
    .mvv-container, 
    .tree-reps {
        flex-direction: column;
    }
    
    /* 6. Clean up profile panels */
    .left-panel {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }
    .right-panel {
        width: 100%;
    }

}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}
input[type="password"]::-webkit-reveal-button {
    display: none;
}