@charset "utf-8";
/* CSS Document */
 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
	
    body {
      font-family: 'Segoe UI', sans-serif;
      background: #f4f8fb;
      color: #333;
    }

/**** Top nav current location  ****/
/***** OLD NAV 
.select-city-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.city-icon-btn {
  background: #fff;
  border: 0px solid #ccc;
  border-radius: 5px;
  padding: 6px 1px;
  cursor: pointer;
}

.city-icon-btn i {
  font-size: 20px;
  color: red;
}

#selectedCityText {
  font-weight: 500;
  color: #333;
  min-width: 100px;
}

.city-dropdown {
  display: none;
  position: absolute;
  top: 60px;
  left: 360px;
  text-align:center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.city-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-dropdown li {
  padding: 10px 15px;
  cursor: pointer;
}

.city-dropdown li:hover {
  background-color: #f0f0f0;
}

    nav {
      background: #ffffff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      position: sticky;
      top: 0;
      z-index: 1000;
      flex-wrap: wrap;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: bold;
      color: #0077ff;
    }

    .nav-toggle {
      display: none;
      font-size: 1.5rem;
      cursor: pointer;
    }

    .nav-links {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      position: relative;
    }

    .nav-links a {
      text-decoration: none;
      color: #222;
      font-weight: 500;
      transition: color 0.3s;
      padding: 8px 12px;
    }

    .nav-links a:hover {
      color: #0077ff;
    }

    .dropdown {
      position: relative;
    }

    .dropbtn {
      background: none;
      border: none;
      font: inherit;
      cursor: pointer;
      padding: 8px 12px;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      background-color: #fff;
      min-width: 150px;
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
      z-index: 1;
    }

    .dropdown-content a {
      display: block;
      padding: 10px;
      text-decoration: none;
      color: #222;
    }

    .dropdown-content a:hover {
      background-color: #f0f0f0;
    }

    .dropdown:hover .dropdown-content {
      display: block;
    }

    @media (max-width: 768px) {
      .nav-links {
        width: 100%;
        flex-direction: column;
        display: none;
      }
      .nav-links.active {
        display: flex;
      }
      .nav-toggle {
        display: block;
      }
	  .city-dropdown {
  display: none;
  position: absolute;
  top: 60px;
  left: 120px;
}
	  
    } */

    header {
      /*background: linear-gradient(to right, #0077ff, #4a90e2);*/
	  background-image: url("Student-teacher.jpg");
      color: white;
      padding: 80px 20px;
      text-align: center;
    }

    header h1 {
      font-size: 2.8rem;
      margin-bottom: 1rem;
    }

    header p {
      font-size: 1.3rem;
      margin-bottom: 1.5rem;
    }
/* Responsive for tablets */
@media (max-width: 1024px) {
    header {
        height: 500px;
    }
    header h1 {
        font-size: 3.3rem;
    }
}

/* Responsive for mobile */
@media (max-width: 600px) {
    header {
        height: 500px;
    }
    header h1 {
        font-size: 2.5rem;
    }
}


/*---------------------------------------*/
/* --- Login Register FORM CONTAINER --- */
.register-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; 
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* --- INDIVIDUAL GRID GROUPS --- */
.register-form .form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* --- TYPOGRAPHY / LABELS --- */
.register-form label {
  font-family: 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #4b5563; 
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

/* --- INPUTS, SELECTS & TEXTAREAS --- */
.register-form input,
.register-form select,
.register-form textarea {
  padding: 12px 14px; 
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #1f2937;
  background-color: #f9fafb; 
  border: 2px solid #e5e7eb; 
  border-radius: 10px; 
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group:focus-within label {
  color: #2563eb; 
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
  background-color: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

/* --- TEXTAREA SPECIFIC --- */
.register-form textarea {
  min-height: 120px;
  resize: vertical; 
}

  /* Modern Button */
.register-form button {
  display: block;
  margin: 0 auto;
  width: 35%;
  padding: 14px 24px; 
  background: linear-gradient(135deg, #ff4a4a 0%, #9b5de5 50%, #2563eb 100%);
  background-size: 200% auto;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(155, 93, 229, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.register-form button:hover {
  background-position: right center; 
  box-shadow: 0 6px 20px rgba(155, 93, 229, 0.6);
  transform: translateY(-2px); 
}
.register-form button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(155, 93, 229, 0.4);
}
/* 📱 Mobile Optimization */
@media (max-width: 768px) {
  .register-form button {
    width: 60%; 
    font-size: 16px;
  }
}



/* Loader Premium Submit Button Baseline start*/
.btn-modern-submit {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: all 0.25s ease;
}

.btn-modern-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Modal Overlay Layer */
.ux-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ux-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modern Glassmorphism Container Card */
.ux-modal-card {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
  max-width: 360px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ux-overlay.active .ux-modal-card {
  transform: scale(1);
}

.ux-modal-card h3 {
  margin: 24px 0 8px 0;
  font-size: 20px;
  color: #0f172a;
  font-weight: 700;
}

.ux-modal-card p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}

/* --- Multicolored Circular Loading Core Engine --- */
.ux-loader-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.ux-circular-svg {
  animation: rotateLoader 2s linear infinite;
  height: 100%;
  transform-origin: center center;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.25s ease;
}

.ux-loader-path {
  stroke-dasharray: 1, 200;
  stroke-dashoffset: 0;
  animation: dashLoader 1.5s ease-in-out infinite, colorShift 6s ease-in-out infinite;
  stroke-linecap: round;
}

/* Keyframe Animations for Multicolor Circular Loader */
@keyframes rotateLoader {
  100% { transform: rotate(360deg); }
}

@keyframes dashLoader {
  0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; }
  100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124px; }
}

@keyframes colorShift {
  0%, 100% { stroke: #2563eb; } /* Royal Blue */
  25%      { stroke: #10b981; } /* Emerald Green */
  50%      { stroke: #f59e0b; } /* Amber Yellow */
  75%      { stroke: #ec4899; } /* Premium Pink/Purple */
}

/* --- State: Elegant Success Checkmark Reveal --- */
.ux-success-checkmark {
  width: 80px;
  height: 80px;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.ux-modal-card.is-complete .ux-circular-svg {
  opacity: 0;
}

.ux-modal-card.is-complete .ux-success-checkmark {
  display: block;
}

/* Micro-Engineered Checkmark Mechanics */
.check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #4caf50;
}
.check-icon::before, .check-icon::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 120px;
  background: #ffffff;
  transform: rotate(45deg);
}
.check-icon::before {
  border-radius: 100px 0 0 100px;
  top: -7px; left: -30px;
  transform-origin: 60px 60px;
  transform: rotate(-45deg);
}
.check-icon::after {
  border-radius: 0 100px 100px 0;
  top: -11px; left: 30px;
  transform-origin: 0px 60px;
  transform: rotate(-45deg);
  animation: rotatePlaceholder 4.25s ease-in;
}
.icon-line {
  height: 5px;
  background-color: #4caf50;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}
.icon-line.line-tip {
  width: 25px; left: 14px; top: 46px;
  transform: rotate(45deg);
  animation: animateTip 0.5s;
}
.icon-line.line-long {
  width: 47px; right: 8px; top: 38px;
  transform: rotate(-45deg);
  animation: animateLong 0.75s;
}
.icon-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(76, 175, 80, 0.2);
  position: absolute;
  left: -4px; top: -4px;
  z-index: 1;
  box-sizing: content-box;
}
.icon-fix {
  width: 5px; height: 5px;
  background-color: #ffffff;
  position: absolute;
  left: 28px; top: 19px;
  z-index: 1;
}

@keyframes rotatePlaceholder {
  0% { transform: rotate(-45deg); }
  5% { transform: rotate(-45deg); }
  12% { transform: rotate(-405deg); }
  100% { transform: rotate(-405deg); }
}
@keyframes animateTip {
  0% { width: 0; left: 1px; top: 19px; }
  54% { width: 0; left: 1px; top: 19px; }
  70% { width: 5px; left: 14px; top: 37px; }
  84% { width: 17px; left: 14px; top: 48px; }
  100% { width: 25px; left: 14px; top: 46px; }
}
@keyframes animateLong {
  0% { width: 0; right: 46px; top: 54px; }
  65% { width: 0; right: 46px; top: 54px; }
  84% { width: 26px; right: 25px; top: 42px; }
  100% { width: 47px; right: 8px; top: 38px; }
}
/* Loader Premium Submit Button Baseline End*/




/* --- BASE ALERT CONTAINER --- */
.alert {
  padding: 16px 20px;       
  margin-bottom: 24px;      
  border-radius: 12px;      
  font-family: 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 500;         
  line-height: 1.5;
  display: flex;            
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease-in-out; 
}

/* --- SUCCESS STATUS BOX --- */
.alert.success {
  background: rgba(16, 185, 129, 0.08); 
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 5px solid #10b981;      
  color: #065f46;
}

/* --- ERROR / DANGER STATUS BOX --- */
.alert.error {
  background: rgba(239, 68, 68, 0.08);   
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-left: 5px solid #ef4444;      
  color: #991b1b;
}	

/* For Tablets (Transitions from 3 columns down to 2 columns) */
@media (max-width: 992px) {
  .register-form {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }
}

/* For Mobile Screens (Collapses into a beautifully stacked single column) */
@media (max-width: 650px) {
  .register-form {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 15px;
  }
}
.tutor_card {
    /* Fallback to white if background fails, otherwise use the random dynamic style */
    background: var(--tutor-card-bg, #ffffff); 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Softened border to mesh with colors */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tutor_card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Header Area */
.tutor_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid #f8fafc;
    padding-bottom: 10px;
}
.tutor_name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}
.tutor_rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b; /* Premium Golden Amber Stars */
}
.tutor_review_link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 6px;
}
.tutor_review_link:hover {
    text-decoration: underline;
}

/* Middle Profile Body Section */
.tutor_description {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.tutor_avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}
.tutor_bio_text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}
.tutor_read_more {
    color: #2563eb;
    text-decoration: none;
    margin-left: 4px;
}

/* Modern Multicolor Subject Badges Grid */
.tutor_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.tutor_tag_link {
    background-color: var(--tutor-tag-bg);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.1s ease;
}
.tutor_tag_link:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* Bottom Grid Icons Meta Data Info Area */
.tutor_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #475569;
    background: rgba(255, 255, 255, 0.65); /* Semi-transparent white blur overlay */
    backdrop-filter: blur(4px);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px;
}

.tutor_meta div {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tutor_meta i {
    color: #475569;
}


    .cta-buttons a {
      display: inline-block;
      margin: 0 10px;
      padding: 12px 28px;
      background: white;
      color: #0077ff;
      text-decoration: none;
      border-radius: 30px;
      font-weight: bold;
      transition: background 0.3s ease;
    }

    .cta-buttons a:hover {
      background: #e6f0ff;
    }

    .features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      padding: 60px 20px;
      max-width: 1100px;
      margin: auto;
      text-align: center;
    }

    .feature-box {
      background: #fff;
      padding: 30px 20px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .feature-box h3 {
      margin-bottom: 10px;
      color: #0077ff;
    }

    .feature-box p {
      font-size: 0.95rem;
    }

    .location-grid, .subject-links {
      max-width: 1300px;
      margin: 40px auto;
      padding: 0 20px;
    }

    .location-grid h2, .subject-links h2 {
      margin-bottom: 20px;
      text-align: center;
      color: #0077ff;
    }

 /**** Location load more css ****/
 
 .location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  max-width: 1300px;
  margin: 30px auto;
  padding: 20px;
}

.location-item {
  background-color: #f0f0f0;
  padding: 5px;
  text-align: center;
  border-radius: 10px;
  /*font-weight: bold;*/
}

.hidden {
  display: none;
}

.load-more-wrapper {
  text-align: center;
  margin-top: 20px;
}

#loadMoreLocations {
  padding: 10px 20px;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

#loadMoreLocations:hover {
  background: #005ecc;
}
 
 
    .locations, .subjects {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 15px;
    }

    .location-box, .subject-box {
      background: #fff;
      padding: 7px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    .view-more {
      text-align: center;
      margin-top: 20px;
    }

    .view-more button {
      padding: 10px 20px;
      background: #fffc00;
      color: #515151;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }

    .view-more button:hover {
      background: #FFCC00;
    }

    footer {
      background: #222;
      color: white;
      text-align: center;
      padding: 40px 0;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-size: 15px;
    }
   .footer-container {
      display: flex;
      justify-content: space-between;
      max-width: 1100px;
      margin: auto;
      flex-wrap: wrap;
	  margin-bottom: 15px;
    }

   .footer-column {
      flex: 1 1 30%;
      padding: 0 20px;
      min-width: 200px;
    }

    .footer-column h4 {
      margin-bottom: 15px;
      font-size: 18px;
      border-bottom: 1px solid #ffcc00;
      padding-bottom: 3px;
    }

    .footer-column ul {
      list-style: none;
      padding: 0;
    }

    .footer-column ul li {
      margin-bottom: 12px;
    }

    .footer-column ul li a {
      text-decoration: none;
      color: #ccc;
	  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-size: 15px;
      transition: 0.3s;
    }

    .footer-column ul li a:hover {
      color: white;
    }

/* 📱 Mobile View */
@media (max-width: 768px) {
  footer {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-column {
    padding: 10px 0;
  }
  .footer-column h4 {
      margin-bottom: 15px;
      font-size: 21px;
  }
  .footer-column ul li a {
    font-size: 20px;
  }
}

/**** Recent user slider fb type***/
.slider-container {
    position: relative;
    max-width: 1000px; /* control width */
    margin: 0 auto;    /* centers horizontally */
	margin-top:20px;
    overflow: hidden;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
}
   .slider-container h2 {
      text-align: center;
      color: #515151;
	  font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;
	  font-size:28px;
	  margin-bottom: 15px;
      margin-top: -20px;
    }

.slider-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.user-card-recent {
    flex: 0 0 auto;
    background: white;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    width: 160px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

.user-card-recent img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    /*box-shadow: 0px 4px 8px rgba(0,0,0,0.2);*/
}

.left-btn { left: 5px; }
.right-btn { right: 5px; }

@media (max-width: 768px) {
    .user-card-recent {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .user-card-recent {
        width: 150px;
    }
	.slider-container {
     margin-left: 5px;
     margin-right: 5px;
}
}
	
	
/***** User list*****/
.user-grid{
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 10px;
}
    .user-grid h2 {
      margin-bottom: 0;
	  margin-top:30px;
      text-align: center;
      color: #0077ff;
    }
	.user-grid h1 {
      margin-bottom: 20px;
      text-align: center;
	  font-size:32px; 
	  font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; 
	  /*color:#FFCC00;*/
	  color:#515151;
    }
    .user-card {
      background: #fff;
      padding: 14px;
      margin-bottom: 10px;
      border-radius: 12px;
	  border-top: solid 2px #fffc00;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .user-top {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .user-name {
      font-size: 20px;
      font-weight: bold;
	  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      color: #0f1419;
    }

    .user-rating i {
      color: #0bcc00;
      font-size: 15px;
      margin-right: 2px;
    }

    .user-description {
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-size: 19px;
      font-weight: 400;
      color: #0f1419; /* Dark gray, almost black */
      line-height: 1.6;
      margin-bottom: 15px;
      /*overflow: hidden;*/
    }

    .user-description img {
      float: left;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 10px;
      margin-bottom: 1px;
    }

    .user-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-size: 15px;
      font-weight: 400;
      color: #0f1419; /* Dark gray, almost black */
      border-top: 1px solid #0bcc00;
      padding-top: 10px;
    }

    .user-meta div {
      display: flex;
      align-items: center;
    }

    .user-meta i {
      margin-right: 6px;
      color: #6b7280;
    }
	.read-more {
  color: #0bcc00;
  font-weight: 300;
  margin-left: 0px;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: no;
  color:#FFCC00;
} 
  
  .view-toggle {
  text-align: right;
  margin-bottom: 0px;
}
.view-btn {
  background: #e5e7eb;
  border: none;
  padding: 8px 12px;
  margin-left: 8px;
  border-radius: 6px;
  cursor: pointer;
}
.view-btn.active {
  background: #0bcc00;
  color: #fff;
}
.user-container.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}
.user-container.list-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-tags {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  padding: 8px 8px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  background-color: #FFF;
  color: #000000;
  border-radius: 99.9px;
  text-decoration: none;
  border: solid 1px #ffcc00;
  transition: background-color 0.2s;
  display: inline-block;
}

.tag-link:hover {
  background-color: #ffcc00;
}



    @media (max-width: 600px) {
      .user-description img {
        width: 80px;
        height: 80px;
        margin-right: 12px;
        margin-bottom: 8px;
      }

      .user-meta {
        gap: 10px;
		font-size: 16px;
      }
	  .user-tags {
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 21px;
		font-weight: 600;
      }
	 
	  .user-name {
	  font-size: 22px;
	  }
	  .user-description {
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-size: 21px;
      font-weight: 400;
      }
	  .view-toggle {
	  display:none;
	  }
	  .user-grid h1{
	  margin-bottom:15px;
	  }
    }

	
	/********* Pagination css*******/
	/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 20px;
}

.pagination a {
  color: #333;
  padding: 8px 14px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
}

.pagination a:hover {
  background-color: #0bcc00;
  color: white;
}

.pagination a.active {
  background-color: #0bcc00;
  color: white;
  border-color: #0bcc00;
}

.pagination a.prev, 
.pagination a.next {
  font-weight: bold;
}


/**** how we work circle ****/

.circlenav {
    text-align: center;
    padding: 15px 10px;
    background: #f5f5c4;
    margin-top: 30px;
}
.circlenav-title {
  font-size: 32px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: bold;
  margin-bottom: 40px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.circlenav-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.circlenav-card {
  text-decoration: none;
  color: #333;
  width: 250px;
  transition: transform 0.3s ease;
}

.circlenav-card:hover {
  transform: translateY(-10px);
}

.circlenav-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  color: #fff;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Different circle colors */
.circlenav-card:nth-child(1) .circlenav-circle {
  background: linear-gradient(135deg, #d9d739, #ffcc00);
}
.circlenav-card:nth-child(2) .circlenav-circle {
  background: linear-gradient(135deg, #2e6e81, #0072ff);
}
.circlenav-card:nth-child(3) .circlenav-circle {
  background: linear-gradient(135deg, #7ac69f, #0bcc00);
}

/* Titles and text */
.circlenav-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.circlenav-card p {
  font-size: 18px;
  line-height:1.3em;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .circlenav-grid {
    flex-direction: column;
    align-items: center;
  }
}



/**** job list  *****/
.job-list-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px;
}

.job-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.job-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}
.job-title a {
    text-decoration: none; /* Removes underline */
    color: #222;           /* Normal text color */
    transition: color 0.3s;
}

.job-title a:hover {
    color: #0bcc00; /* Changes color on hover */
}

.job-description {
    font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #0f1419;
	line-height: 1.6;
    margin-bottom: 12px;
}

.job-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.job-subjects button {
    /*background: #007bff;*/
	background:none;
	font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #000;
    border: solid 1px #ffcc00;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}
.job-subjects button:hover {
    background: #ffcc00; /* Changes color on hover */
}

.job-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    font-size: 14px;
    color: #555;
}

.job-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.view-more-jobs {
    text-align: center;
    margin-top: 20px;
	margin-bottom: 15px;
}

.view-more-job-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #fffc00;
    color: #515151;
    font-size: 14px;
	font-weight: bolder;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-more-job-btn:hover {
    background-color: #ffcc00;
}

/* Responsive */
@media (max-width: 768px) {
     .job-footer {
        flex-wrap: wrap;   /* wrap to next line if space is less */
        justify-content: flex-start;
    }
    .job-footer span {
        flex-wrap: wrap;   /* two items per line if small */
    }

    .job-footer::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }
    
	.view-more-job-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}



/**** search bar *****/
.search-bar-advanced {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 700px;
  margin: 10px auto;
  padding: 8px;
}

.search-bar-advanced select,
.search-bar-advanced input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  flex: 1;
  min-width: 100px;
}

.search-bar-advanced button {
  padding: 10px 18px;
  background: #fffc00;
  color: #0f1419;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.search-bar-advanced button:hover {
  background: #FFCC00;
}	
/* 📱 Mobile: keep horizontal with scroll */
@media (max-width: 768px) {
  .search-bar-advanced {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .search-input {
    min-width: 100px;
  }
}



/* ==========================================
   1. MAIN PROFILE CARD STYLES
   ========================================== */

/* Layout wrapper built for standard list views */
.user-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Base card structure driven by the PHP dynamic color engine */
.teacher-card {
    background: var(--tutor-card-bg, #ffffff);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 24px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Left Column Profile Section */
.teacher-left {
    flex-shrink: 0;
}

.teacher-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Right Column Data Panel */
.teacher-right {
    flex-grow: 1;
}

.teacher-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

/* Ratings Layer */
.user-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b; /* Golden Yellow stars */
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.user-rating .tag-link {
    color: #475569;
    text-decoration: none;
    margin-right: 8px;
    font-weight: 600;
}

.user-rating .tag-link:hover {
    text-decoration: underline;
}

/* Meta Data Grid Block */
.teacher-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.88rem;
    color: #334155;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.teacher-info div, 
.teacher-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.teacher-info i {
    color: #475569;
    width: 14px;
    text-align: center;
}

/* Subject Badges Engine Hook */
.teacher-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.teacher-subjects .tag-link {
    background-color: var(--tutor-tag-bg, #3b82f6);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.teacher-subjects .tag-link:hover {
    opacity: 0.92;
    transform: scale(1.04);
}

/* About Block styling */
.teacher-about {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}


/* ==========================================
   2. JOB BOARD LISTINGS STYLES (Bottom Section)
   ========================================== */
.job-list-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.job-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.job-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}

.job-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
}

.job-title a:hover {
    color: #2563eb;
}

.job-description {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.job-description .read-more {
    color: #2563eb;
    text-decoration: none;
    margin-left: 5px;
}

/* Job Footer Row Layout */
.job-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
}

.job-footer span {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ==========================================
   3. RESPONSIVE BREAKPOINTS (Mobile Adaptations)
   ========================================== */
@media (max-width: 768px) {
    .teacher-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .teacher-left {
        margin-bottom: 4px;
    }

    .teacher-info {
        justify-content: center;
    }

    .teacher-subjects {
        justify-content: center;
    }
    
    .job-footer {
        gap: 12px;
        justify-content: space-between;
    }
}



/* ==========================================
   MODERN REVIEW SYSTEM & COMPONENT RULES
   ========================================== */

.review-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Review System Alert Modals */
.rev-alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}
.success-alert {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.error-alert {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Primary Dual Column Dashboard */
.review-dashboard-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    margin-bottom: 35px;
}

.review-stats-card, .review-form-card {
    background: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
}

/* Metrics and Aggregate Calculations Display Styling */
.score-summary-box {
    text-align: center;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
}
.big-score {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 6px;
}
.stars-row {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.stars-row i.filled { color: #eab308; }
.stars-row i.empty { color: #cbd5e1; }
.total-count-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

/* Horizontal Progress Distribution Bars Layout */
.rating-bars-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #475569;
}
.bar-label {
    width: 50px;
    white-space: nowrap;
    font-weight: 500;
}
.progress-track {
    flex-grow: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #eab308;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-pct {
    width: 35px;
    text-align: right;
    color: #64748b;
    font-weight: 600;
}

/* Modern Input Forms & Element Framework */
.ux-review-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.center-group {
    align-items: center;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}
.input-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
}
.ux-review-form input[type="text"],
.ux-review-form input[type="email"],
.ux-review-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.92rem;
    background-color: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.ux-review-form input:focus,
.ux-review-form textarea:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

/* CSS Star Rating Selector Engine Layout (Right-to-Left Float mapping) */
.star-rating-selector {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 4px;
}
.star-rating-selector input {
    display: none;
}
.star-rating-selector label {
    font-size: 1.75rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s;
}
.star-rating-selector label:hover,
.star-rating-selector label:hover ~ label,
.star-rating-selector input:checked ~ label {
    color: #eab308;
}
.star-rating-selector label:active {
    transform: scale(0.9);
}

/* Submission Button Accent styling */
.submit-review-btn {
    background: #1877f2;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s;
    align-self: flex-end;
}
.submit-review-btn:hover {
    background: #1565c0;
}
.submit-review-btn:active {
    transform: scale(0.98);
}

/* Testimonial Review Feeds Layout Grid */
.reviews-feed-section {
    margin-top: 15px;
}
.feed-title {
    border-bottom: 2px solid #e4e6eb;
    margin-bottom: 24px;
}
.empty-feed-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}
.empty-feed-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #94a3b8;
}

/* Card Timeline Feed Design block styles */
.feed-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feed-item-card {
    background: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.01);
}
.feed-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.reviewer-meta-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid #bae6fd;
}
.reviewer-meta-text {
    flex-grow: 1;
}
.reviewer-meta-text h4 {
    margin: 0 0 2px 0;
    font-size: 0.98rem;
    color: #0f172a;
    font-weight: 700;
}
.review-post-date {
    font-size: 0.8rem;
    color: #64748b;
}
.reviewer-card-stars {
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}
.reviewer-card-stars i.filled { color: #eab308; }
.reviewer-card-stars i.empty { color: #e2e8f0; }

.feed-card-body p {
    margin: 0;
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.6;
}

/* ==========================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 768px) {
    .review-dashboard-grid {
        grid-template-columns: 1fr; /* Drop into vertical stacked cards for responsive viewports */
    }
    .form-row-split {
        grid-template-columns: 1fr;
    }
    .submit-review-btn {
        width: 100%; /* Auto-scale submission row on mobile views */
    }
}


/* ==========================================
   VIBRANT HIGH-CONVERSION PORTAL UI STYLING 
   ========================================== */

/* Primary Colorful Landing Call To Action Element */
.ux-contact-trigger-btn {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
	margin-top: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ux-contact-trigger-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(168, 85, 247, 0.45);
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
}
.ux-contact-trigger-btn:active {
    transform: translateY(-1px);
}
.ux-contact-trigger-btn:hover .animate-fly {
    transform: translate(3px, -3px);
}
.animate-fly {
    transition: transform 0.2s ease;
}

/* Glassmorphism Structural Base Frame Overlays */
.portal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 99999;
    padding: 16px;
}

/* Modal Content Card Shell Layout */
.portal-window {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: portalScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes portalScaleIn {
    from { transform: scale(0.9) translateY(15px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Colorful Graphic Top Header Block */
.portal-banner-graphic {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    padding: 32px 24px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}
.graphic-circle-accent {
    position: absolute;
    width: 150px; height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -50px; right: -50px;
}
.banner-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #93c5fd;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.portal-banner-graphic h2 {
    font-size: 1.5rem; font-weight: 800; margin: 0 0 6px 0; letter-spacing: -0.5px;
}
.portal-banner-graphic p {
    font-size: 0.92rem; margin: 0; color: #bfdbfe; font-weight: 500;
}

/* Exit Controls Button rules */
.portal-close-x {
    position: absolute;
    top: 16px; right: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: none; color: #ffffff;
    width: 32px; height: 32px; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.portal-close-x:hover { background: rgba(0, 0, 0, 0.4); }

.portal-content-area {
    padding: 28px 24px;
    background: #ffffff;
}

/* Input Form Styling elements */
.portal-form {
    display: flex; flex-direction: column; gap: 20px;
}
.portal-group { display: flex; flex-direction: column; gap: 8px; }
.portal-group label { font-size: 0.88rem; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: 0.5px; }
.portal-group textarea {
    padding: 14px; border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 0.95rem; color: #0f172a; outline: none; resize: none;
    line-height: 1.5; transition: all 0.2s ease; background: #f8fafc;
}
.portal-group textarea:focus {
    border-color: #3b82f6; background: #ffffff; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.portal-submit-btn {
    background: #0f172a; color: #ffffff; border: none;
    padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 8px; transition: all 0.2s ease; margin-top: 4px;
}
.portal-submit-btn:hover { background: #2563eb; transform: translateY(-1px); }

/* Restrained State / Authenticated Lock Screen UI Elements */
.portal-auth-fallback {
    text-align: center; padding: 12px 6px;
}
.lock-shield-icon {
    width: 64px; height: 64px; background: #fee2e2; color: #ef4444;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 16px; border: 2px solid #fecaca;
}
.portal-auth-fallback h3 { font-size: 1.25rem; font-weight: 800; color: #1e293b; margin: 0 0 8px 0; }
.portal-auth-fallback p { font-size: 0.92rem; color: #64748b; line-height: 1.6; margin: 0 0 24px 0; }

.fallback-action-row {
    display: flex; flex-direction: column; gap: 10px;
}
.btn-fallback-login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff; text-decoration: none; padding: 12px 20px;
    border-radius: 10px; font-weight: 700; font-size: 0.95rem; display: block;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2); transition: transform 0.2s;
}
.btn-fallback-join {
    background: #f1f5f9; color: #475569; text-decoration: none; padding: 12px 20px;
    border-radius: 10px; font-weight: 700; font-size: 0.95rem; display: block;
    border: 1px solid #e2e8f0; transition: background 0.2s;
}
.btn-fallback-login:hover { transform: translateY(-1px); }
.btn-fallback-join:hover { background: #e2e8f0; color: #1e293b; }

/* Inline Error Elements inside form */
.portal-inline-error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fecaca;
}

/* Success Card Presentation Layouts */
.portal-success-state {
    text-align: center;
    padding: 16px 8px;
    animation: portalPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes portalPopIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.success-check-icon {
    width: 64px; height: 64px; 
    background: #dcfce7; color: #16a34a;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 18px; 
    border: 2px solid #bbf7d0;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.15);
}
.portal-success-state h3 { font-size: 1.35rem; font-weight: 800; color: #0f172a; margin: 0 0 10px 0; }
.portal-success-state p { font-size: 0.92rem; color: #475569; line-height: 1.6; margin: 0 0 24px 0; }
.portal-success-state .portal-submit-btn {
    width: 100%;
    background: #10b981;
}
.portal-success-state .portal-submit-btn:hover {
    background: #059669;
}