/****************************** Global Styles ******************************/
:root {
  --primary: #00c1ee;
  --dark-primary: #009acc;
  --secondary: #333;
  --light: #f5f5f5;
  --gray: #666;
  --light-gray: #eee;
  --border: #ddd;
  --text-color: #333;
  --white: #fff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 16px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--text-color);
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn:hover {
  background-color: var(--dark-primary);
}

.btn:disabled {
  background-color: var(--dark-primary);
  cursor: not-allowed;
}

.btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-whatsapp {
  align-items: center;
  padding: 10px 20px;
  background-color: #25d366;
  color: var(--white);
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-whatsapp img {
  margin-right: 5px;
}

.btn-whatsapp:hover {
  background-color: #1da851;
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #444;
}

.btn-block {
  display: block;
  width: 100%;
}

.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
}

.alert-danger {
  background-color: #f8d1d4;
}

.compulsory,
.form-alert {
  color: red;
  font-size: 16px;
}

.form-hint {
  color: var(--gray);
  font-size: 16px;
}

.form-hint i {
  color: #2196f3;
}

input:read-only {
  background-color: var(--light-gray);
}

.text-success {
  color: green;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 10px;
  }

  .btn {
    padding: 10px 25px;
    font-size: 14px;
  }
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse {
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Header Navigation Bar */
header {
  background-color: white;
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: var(--primary);
  font-size: 20px;
  padding: 0;
}

.logo img {
  height: 55px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav > ul > li {
  margin-left: 10px;
}

nav ul li a,
.header-right ul li a {
  display: block;
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
}

nav ul li a:hover,
.dropdown-menu li a:hover,
.header-right a:hover {
  color: var(--primary) !important;
}

/* Burger Menu Button Style */
.burger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
}

.burger-menu span {
  height: 3px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
    clip-path: circle(0px at top right);
    transition: clip-path 0.5s ease-in-out;
  }

  nav.active {
    clip-path: circle(1000px at top right);
  }

  nav ul {
    display: block;
    flex-direction: column;
    padding: 20px 5%;
  }

  nav ul li {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  nav ul li:last-child {
    border-bottom: none;
  }

  .navbar-nav {
    padding: 0;
  }
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  display: none;
  min-width: max-content;
  margin: 0;
  color: var(--secondary);
  text-align: left;
  list-style: none;
  background-color: var(--white);
  background-clip: padding-box;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  box-shadow: 0 1.5rem 4rem rgba(22, 28, 45, 0.12);
  padding: 0.5rem 1.5rem;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
}

.dropdown-menu li {
  margin-left: 0;
  padding: 5px 0;
}

.dropdown-menu li a {
  padding: 0;
}

@media (min-width: 768px) {
  nav ul li a {
    padding: 15px 10px;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s;
  }
}

/* Click to show dropdown menu */
@media (max-width: 768px) {
  .navbar-nav .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
    background: none;
  }

  .navbar-nav .dropdown-menu.show {
    display: block;
  }

  .navbar-nav .dropdown-menu li {
    padding-top: 15px;
  }

  .navbar-nav .dropdown-menu li:last-child {
    padding-bottom: 0;
  }

  li .navbar-nav .nav-item {
    padding: 0;
  }

  li a,
  .navbar-nav .dropdown-menu li a {
    padding-left: 15px;
  }
}

/* Header notification - only visible on mobile */
.header-notification-mobile {
  position: relative;
  cursor: pointer;
  padding: 15px 10px;
  display: none;
}

.header-account-mobile .account-link {
  padding: 15px 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 768px) {
  /* Show mobile notification and account */
  .header-notification-mobile,
  .header-account-mobile {
    display: block;
  }

  /* Hide desktop notification and account in navbar */
  .nav-notification,
  .nav-account {
    display: none !important;
  }

  .dropdown-menu {
    top: 150%;
  }

  .header-right .dropdown:hover .dropdown-menu.show {
    display: block;
    animation: fadeInUp 0.3s;
  }
}

/* Desktop only - show navbar notification and account */
@media (min-width: 769px) {
  .header-notification-mobile,
  .header-account-mobile {
    display: none;
  }
}

.join-hero,
.login-container {
  padding-top: 69px;
}

.section-container {
  padding-top: 89px;
}

/* Header notification indicator */
.header-notification {
  position: relative;
  cursor: pointer;
  padding: 15px 10px;
}

.notification-icon {
  font-size: 20px;
}

.notification-badge {
  position: absolute;
  top: 10px;
  right: 5px;
  background-color: #ff5252;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Message Notification */
.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
}

.message-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 330px;
  max-width: 500px;
  max-height: 90vh;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-header {
  background-color: var(--primary);
  color: white;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-title {
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.notification-title i {
  margin-right: 8px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.student-info {
  padding: 15px 15px 0;
  display: flex;
  align-items: center;
}

.student-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
}

.student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-details h3 {
  font-size: 15px;
  margin-bottom: 3px;
}

.student-details p {
  font-size: 13px;
  color: var(--gray);
}

.message-preview {
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.message-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.message-time {
  font-size: 12px;
  color: var(--gray);
  text-align: right;
}

.notification-actions {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
}

.action-btn {
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.primary-action {
  background-color: var(--primary);
  color: white;
  border: none;
  flex-grow: 1;
  margin-right: 10px;
}

.primary-action:hover {
  background-color: var(--dark-primary);
}

.secondary-action {
  background-color: white;
  color: var(--secondary);
  border: 1px solid var(--border);
  flex-grow: 1;
}

.secondary-action:hover {
  background-color: var(--light-gray);
}

.question-section {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.main-question {
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 20px;
  text-align: center;
}

.status-options {
  display: grid;
  gap: 12px;
}

.status-option {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
}

.status-option:hover {
  border-color: var(--primary);
  background: #f8faff;
}

.status-option.selected {
  border-color: var(--primary);
  background: #f0f4ff;
}

.status-option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-right: 16px;
  position: relative;
  transition: all 0.2s;
}

.status-option.selected .status-option-radio {
  border-color: var(--primary);
  background: var(--primary);
}

.status-option.selected .status-option-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.status-option-content {
  flex: 1;
}

.status-option-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 4px;
}

.status-option-description {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.3;
}

.option-icon {
  font-size: 20px;
  margin-left: 12px;
}

.pending .option-icon {
  color: var(--warning);
}

.received .option-icon {
  color: var(--success);
}

.no-message .option-icon {
  color: var(--danger);
}

.invalid .option-icon {
  color: #8b5cf6;
}

.rejected .option-icon {
  color: var(--danger);
}

@media (max-width: 480px) {
  .message-notification {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    max-height: 95vh;
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 90%;
  max-height: 90vh;
  transform: translateY(-50px) scale(0.9);
  transition: all 0.3s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-lg {
  max-width: 600px;
}

.modal-xl {
  max-width: 1100px;
}

.modal-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  opacity: 0.8;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  opacity: 1;
  background-color: rgba(238, 238, 238, 0.8);
  transform: scale(1.1);
}

.modal-body {
  padding: 20px 25px;
}

.modal-body p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.modal-body video {
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.video-container {
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-dialog {
    width: 95%;
    margin: 20px;
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }

  .modal-title {
    font-size: 1.2rem;
  }

  .modal-body p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-dialog {
    width: 98%;
    margin: 10px;
  }

  .modal-header,
  .modal-body {
    padding: 15px;
  }
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 30px 5%;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #444;
  margin: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: var(--primary);
}

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

  .footer-links a {
    margin: 10px 0;
  }
}

/****************************** Index Page ******************************/
/* Hero */
.hero {
  height: 75vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  color: var(--white);
  max-width: 800px;
  padding: 0 15px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-buttons a {
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
}

.cta-btn-outline {
  color: var(--white);
  background-color: transparent;
  border: 1px solid var(--white);
}

.cta-btn-outline:hover {
  color: var(--secondary);
  background-color: var(--white);
}

/* Feature Blocks */
.features {
  background-color: var(--primary);
  padding: 60px 30px;
}

.feature-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  height: 300px;
}

.feature-card-1,
.feature-card-2,
.feature-card-3 {
  background: rgba(255, 255, 255, 0.85);
  background-blend-mode: overlay;
}

.feature-card {
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(31, 38, 135, 0.25);
}

.logo-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #74c0fc 0%, #339af0 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.content-feature-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.feature-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #339af0;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.feature-card-content {
  color: #666;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  max-height: 0;
  overflow: hidden;
  font-size: 0.95rem;
}

.content-feature-card:hover .feature-card-content {
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
}

.content-feature-card:hover .feature-card-title {
  transform: translateY(-10px);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(116, 192, 252, 0.3),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.feature-card:hover::before {
  animation: shine 0.6s ease-in-out;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Tuition Centre */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

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

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.card-content p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.card-badge {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 13px;
  margin-top: 10px;
}

/* Tutor */
.teacher-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.teacher-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  display: flex;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.teacher-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.teacher-visual {
  flex: 1;
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.teacher-image {
  width: 280px;
  height: 380px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.teacher-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 25px;
}

.teacher-image:hover::before {
  opacity: 1;
}

.teacher-image:hover {
  transform: translateY(-8px) rotateY(5deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  color: #1e40af;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(59, 130, 246, 0.3);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.teacher-info {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teacher-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.teacher-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.subject-tag {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.teacher-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

.badge {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.online {
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.badge.verified {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
}

.badge.location {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.teacher-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 30px;
}

.class-type {
  display: inline-block;
  width: 130px;
  color: var(--text-color);
}

.price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: #718096;
}

.navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.teacher-showcase .nav-btn {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(59, 130, 246, 0.1);
}

.teacher-showcase .nav-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.nav-prev {
  left: -40px;
}

.nav-next {
  right: -40px;
}

.indicators {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.indicator {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transition: left 0.4s ease;
}

.indicator.active {
  transform: scale(1.4);
}

.indicator.active::before {
  left: 0;
}

.teacher-actions {
  display: flex;
  gap: 10px;
}

.teacher-actions .btn-outline,
.teacher-actions .btn-whatsapp {
  flex: 1;
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}

.featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: #ff5722;
  color: var(--white);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

/* Categories */
.categories {
  background-color: #f9f9f9;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.category-card {
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.category-name {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--white);
  font-size: 22px;
  font-weight: 600;
}

/* Join Us */
.join-us {
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  position: relative;
  color: var(--white);
  text-align: center;
}

.join-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.join-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.join-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.join-content p {
  margin-bottom: 30px;
  font-size: 18px;
}

.index-join-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.join-option {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  flex: 0 0 250px;
}

.join-option h3 {
  margin-bottom: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .feature-container {
    grid-template-columns: 1fr 1fr;
    height: auto;
    gap: 15px;
  }

  .feature-card {
    height: 200px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .teacher-card {
    flex-direction: column;
    margin: 0 10px;
  }

  .teacher-visual {
    min-height: 300px;
    padding: 30px;
  }

  .teacher-image {
    width: 200px;
    height: 250px;
  }

  .teacher-info {
    padding: 30px;
  }

  .teacher-name {
    font-size: 2rem;
  }

  .teacher-showcase .navigation {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
  }

  .teacher-showcase .nav-btn {
    display: none;
  }

  .teacher-showcase .nav-btn:hover {
    transform: scale(1.05) !important;
  }

  .teacher-actions {
    flex-direction: column;
    gap: 8px;
  }

  .teacher-actions .btn-outline,
  .teacher-actions .btn-whatsapp {
    flex: none;
    width: 100%;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .category-card {
    height: 150px;
  }

  .category-name {
    font-size: 18px;
    bottom: 15px;
    left: 15px;
  }

  .join-us {
    padding: 60px 0;
  }

  .join-content h2 {
    font-size: 28px;
  }

  .join-content p {
    font-size: 16px;
  }

  .index-join-options {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .join-option {
    flex: none;
    width: 100%;
    max-width: 300px;
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 85vh;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .feature-container {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: 120px;
  }

  .card-content {
    padding: 15px;
  }
}

/****************************** Search Page ******************************/
.search-hero-section {
  background: linear-gradient(135deg, var(--primary), var(--dark-primary));
  padding: 80px 20px;
  margin-top: 69px;
  text-align: center;
  color: white;
}

.search-hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 40px;
}

.search-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-container .form-alert {
  display: none;
  position: relative;
  bottom: -5px;
}

.select-group {
  flex: 1;
  position: relative;
}

.select-group select {
  width: 100%;
  padding: 15px 20px;
  border: none;
  background: var(--light);
  border-radius: 25px;
  font-size: 16px;
  color: var(--gray);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.select-group select:focus {
  outline: none;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(0, 194, 238, 0.1);
}

/* Select2 */
.select-group .select2-container--default .select2-selection--single {
  width: 100%;
  height: 51px;
  padding: 15px 20px;
  border: none;
  background: var(--light);
  border-radius: 25px;
  font-size: 16px;
  color: var(--gray);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.select-group .select2-container--default .select2-selection--single:focus {
  outline: none;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(0, 194, 238, 0.1);
}

.select2-container--default
  .selection
  .select2-selection--single
  .select2-selection__rendered {
  line-height: normal;
}

.select2-container--default
  .selection
  .select2-selection--single
  .select2-selection__clear {
  height: auto;
}

.select2-selection .select2-selection__arrow {
  display: none;
}

.select2-results__option {
  font-size: 16px;
}

.search-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.search-btn:hover {
  transform: translateY(-2px);
}

.filter-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-item,
.sort-item {
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter-item:hover,
.sort-item:hover {
  background-color: #e0e0e0;
}

.filter-item.active,
.sort-item.active {
  background-color: var(--primary);
  color: white;
}

.results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
  position: relative;
}

.card-cover {
  height: 100px;
  background-image: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--dark-primary) 100%
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
}

.card-avatar {
  position: absolute;
  bottom: -30px;
  left: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid white;
  background-color: white;
  overflow: hidden;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 40px 20px 20px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.card-subtitle {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 15px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
}

.card-tag {
  background-color: var(--light-gray);
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
}

.card-rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #ffb400;
}

.card-rating span {
  margin-left: 5px;
  color: var(--gray);
  font-size: 14px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.card-price {
  font-weight: bold;
  color: var(--primary);
}

.card-action {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.card-action:hover {
  background-color: var(--dark-primary);
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.pagination-item {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination-item:hover {
  background-color: #e0e0e0;
}

.pagination-item.active {
  background-color: var(--primary);
  color: white;
}

.pagination-item.disabled {
  cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .search-hero-title {
    font-size: 32px;
  }

  .search-container {
    border-radius: 15px;
  }

  .search-form {
    flex-direction: column;
  }

  .select-group select,
  .select-group .select2-container--default .select2-selection--single {
    border-radius: 10px;
  }

  .search-btn {
    border-radius: 10px;
  }

  .results-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .search-hero-title {
    font-size: 28px;
  }
}

/****************************** Join Us Page ******************************/
.join-hero {
  background-size: cover;
  background-position: center;
  height: 369px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.join-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.join-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.join-hero-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.join-hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.join-options {
  padding: 80px 0;
}

.options-container {
  display: flex;
  gap: 30px;
}

.option-card {
  flex: 1;
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.option-header {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.option-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
}

.option-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--white);
  font-size: 24px;
  font-weight: 600;
}

.option-content {
  padding: 25px;
}

.option-description {
  margin-bottom: 20px;
  color: var(--gray);
}

.benefits-list {
  margin-bottom: 25px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.benefit-icon {
  flex: 0 0 30px;
  height: 30px;
  background-color: rgba(0, 193, 238, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-right: 12px;
  font-size: 14px;
}

.benefit-text {
  flex: 1;
}

.benefit-text h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--secondary);
}

.benefit-text p {
  font-size: 14px;
  color: var(--gray);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white);
  padding: 60px 0;
}

.section-title p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--light);
  border-radius: 10px;
  padding: 25px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 60px;
  color: rgba(0, 193, 238, 0.1);
  font-family: Georgia, serif;
}

.testimonial-text {
  margin-bottom: 20px;
  font-style: italic;
  color: var(--secondary);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 16px;
  margin-bottom: 3px;
  color: var(--secondary);
}

.author-info p {
  font-size: 14px;
  color: var(--gray);
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
  background-color: var(--light);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--white);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.accordion-header h3 {
  font-size: 18px;
  color: var(--secondary);
}

.accordion-icon {
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-text {
  padding: 20px 0;
  color: var(--gray);
}

.accordion-item.active .accordion-header {
  border-bottom-color: var(--border);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-content p {
  margin-bottom: 30px;
  font-size: 18px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background-color: #f0f0f0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .options-container {
    flex-direction: column;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .join-hero-content h1 {
    font-size: 32px;
  }

  .option-title {
    font-size: 22px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .join-hero-content h1 {
    font-size: 28px;
  }

  .option-title {
    font-size: 20px;
  }

  .cta-content h2 {
    font-size: 24px;
  }
}

/****************************** Tutor Profile Page ******************************/
.profile-header {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  grid-column: span 2;
}

.cover-photo {
  height: 400px;
  background-image: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--dark-primary) 100%
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--primary);
  position: relative;
}

.profile-info {
  padding: 20px;
  position: relative;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid white;
  background-color: white;
  position: absolute;
  top: -75px;
  left: 30px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-details {
  margin-left: 180px;
}

.profile-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}

.profile-subtitle {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 10px;
}

.profile-location {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--gray);
  font-size: 16px;
}

.profile-stats {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-weight: bold;
  font-size: 18px;
  color: var(--secondary);
}

.stat-label {
  font-size: 14px;
  color: var(--gray);
}

.profile-actions {
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  gap: 10px;
}

.primary-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.primary-btn:hover {
  background-color: var(--dark-primary);
}

.secondary-btn {
  background-color: white;
  color: var(--secondary);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.edit-btn {
  background-color: white;
  color: var(--secondary);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: absolute;
  top: 15px;
  right: 20px;
}

.secondary-btn:hover,
.edit-btn:hover {
  background-color: var(--light-gray);
}

/* Profile Sidebar */
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.sidebar-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-content {
  font-size: 15px;
  line-height: 1.5;
}

.quote {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 10px;
  padding-left: 15px;
  border-left: 3px solid var(--primary);
}

.url-item,
.education-item,
.experience-item {
  margin-bottom: 15px;
}

.url-description {
  margin-bottom: 10px;
}

.url-value {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  width: 100%;
}

.url-value input {
  min-width: 100px;
  width: 100%;
}

.url-note {
  margin-top: 12px;
  line-height: 1.2;
  font-style: italic;
}

.education-school,
.experience-role {
  font-weight: bold;
  margin-bottom: 3px;
}

.education-degree,
.experience-company {
  margin-bottom: 3px;
}

.education-date,
.experience-date {
  color: var(--gray);
  font-size: 14px;
}

.experience-description {
  margin-top: 3px;
}

.url-edit-actions {
  text-align: end;
  margin-top: 12px;
}

.url-edit-actions button {
  padding: 5px 20px;
  font-size: 14px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.profile-tag {
  background-color: var(--light-gray);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
}

/* Profile Main Content */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.see-all {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.result-card {
  background-color: var(--light-gray);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.result-subject {
  font-weight: bold;
  margin-bottom: 5px;
}

.result-score {
  font-size: 20px;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 5px;
}

.result-student {
  font-size: 14px;
  color: var(--gray);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-item {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviewer-name {
  font-weight: bold;
}

.review-date {
  margin-left: auto;
  font-size: 14px;
  color: var(--gray);
}

.review-rating {
  color: #ffb400;
  margin-bottom: 5px;
}

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.post-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author {
  flex: 1;
}

.post-name {
  font-weight: bold;
}

.post-date {
  font-size: 14px;
  color: var(--gray);
}

.post-content {
  margin-bottom: 15px;
  line-height: 1.5;
}

.post-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  max-height: 300px;
  object-fit: cover;
}

.post-actions {
  display: flex;
  gap: 20px;
  color: var(--gray);
  font-size: 14px;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.empty-state {
  text-align: center;
  color: var(--gray);
  font-style: italic;
  padding: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cover-photo {
    height: 300px;
  }

  .profile-header {
    grid-column: span 1;
  }

  .profile-details {
    margin-left: 0;
    margin-top: 80px;
    text-align: center;
  }

  .profile-avatar {
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-actions {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 15px;
    justify-content: center;
  }

  .profile-stats {
    justify-content: center;
  }

  .post-header,
  .review-header {
    flex-direction: column;
  }

  .post-avatar,
  .reviewer-avatar {
    margin-bottom: 10px;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .cover-photo {
    height: 250px;
  }

  .profile-actions {
    flex-direction: column;
    gap: 5px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .post-actions {
    flex-wrap: wrap;
  }
}

/****************************** Edit Tutor Profile Page ******************************/
.profile-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.profile-edit-header h1 {
  color: var(--secondary);
  font-size: 32px;
}

.edit-actions {
  display: flex;
  gap: 10px;
}

.edit-panel {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.panel-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--secondary);
}

.edit-profile-pic {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.profile-pic-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 30px;
  position: relative;
  border: 5px solid white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.profile-pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-pic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

.profile-pic-container:hover .profile-pic-overlay {
  opacity: 1;
}

.profile-pic-overlay span {
  color: white;
  font-weight: bold;
}

.cover-photo-section {
  margin-bottom: 30px;
}

.cover-photo-container {
  height: 400px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-color: var(--primary);
  background-image: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--dark-primary) 100%
  );
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.cover-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

.cover-photo-container:hover .cover-photo-overlay {
  opacity: 1;
}

.cover-photo-overlay span {
  color: white;
  font-weight: bold;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 16px;
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 193, 238, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-column {
  flex: 1;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: 0.125rem;
}

.form-check-inline {
  display: inline-block;
  margin-right: 2rem;
}

.form-check-input {
  width: 1em;
  height: 1em;
  margin-top: 0.25em;
  vertical-align: top;
  background-color: #fff !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid rgba(0, 0, 0, 0.25);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check .form-check-input {
  float: left;
  margin-left: -1.5em;
}

.form-check-input:checked {
  background-color: var(--primary) !important;
  border-color: var(--primary);
}

.form-check-input:checked[type="radio"] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

.text-counter {
  display: flex;
}

.text-counter span {
  font-size: 16px;
  margin-left: auto;
}

.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  min-height: 50px;
}

.tag {
  background-color: var(--light-gray);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.tag-close {
  margin-left: 5px;
  font-weight: bold;
  cursor: pointer;
}

.tag-input {
  flex: 1;
  min-width: 100px;
  border: none;
  outline: none;
  padding: 5px;
  font-size: 14px;
}

.dynamic-section {
  margin-bottom: 30px;
}

.dynamic-item {
  background-color: var(--light);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  position: relative;
}

.remove-item {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f0f0f0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: var(--gray);
}

.add-item-btn {
  background-color: transparent;
  border: 2px dashed var(--border);
  padding: 10px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  color: var(--gray);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-item-btn:hover {
  background-color: var(--light-gray);
}

.section-header {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary);
}

.preview-link {
  text-align: center;
  margin: 20px 0;
}

.preview-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .profile-edit-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .edit-profile-pic {
    flex-direction: column;
    text-align: center;
  }

  .profile-pic-container {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .cover-photo-container {
    height: 300px;
  }

  .edit-panel {
    padding: 20px;
  }

  .edit-actions button {
    width: 100%;
  }

  .edit-actions {
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .secondary-btn,
  .primary-btn {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cover-photo-container {
    height: 250px;
  }
}

/****************************** Login and Sign Up Page ******************************/
.login-container {
  min-height: calc(100vh - 170px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  background-color: var(--light);
}

.login-box {
  width: 100%;
  max-width: 900px;
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
}

.login-image {
  flex: 0 0 45%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.login-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.login-image-content {
  position: absolute;
  bottom: 40px;
  left: 30px;
  color: var(--white);
  max-width: 80%;
}

.login-image-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.login-form {
  flex: 0 0 55%;
  padding: 40px;
}

.login-form h1 {
  font-size: 28px;
  color: var(--secondary);
  margin-bottom: 30px;
  text-align: center;
}

.user-type-selector {
  display: flex;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.user-type-option {
  flex: 1;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--white);
  border-right: 1px solid var(--border);
}

.user-type-option:last-child {
  border-right: none;
}

.user-type-option.active {
  background-color: var(--primary);
  color: var(--white);
}

.user-type-option h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.user-type-option p {
  font-size: 13px;
  color: var(--gray);
}

.user-type-option.active p {
  color: rgba(255, 255, 255, 0.8);
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  background-color: #f0f2f5;
  color: #333;
}

.password-toggle:active {
  transform: scale(0.95);
}

.password-toggle i {
  font-size: 18px;
  transition: all 0.2s ease;
}

.forgot-password {
  display: block;
  text-align: right;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--primary);
}

.login-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
}

.login-footer a {
  color: var(--primary);
  font-weight: 600;
}

.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.remember-me input {
  margin-right: 8px;
}

.remember-me label {
  font-size: 16px;
}

/* Social Login */
.social-login {
  margin-top: 30px;
  text-align: center;
}

.social-login p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 15px;
  position: relative;
}

.social-login p::before,
.social-login p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: var(--border);
}

.social-login p::before {
  left: 0;
}

.social-login p::after {
  right: 0;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--light);
  font-size: 20px;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.social-button:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .login-box {
    flex-direction: column;
    max-width: 500px;
  }

  .login-image {
    flex: 0 0 200px;
  }

  .login-form {
    flex: 1;
  }

  .login-image-content h2,
  .login-form h1 {
    font-size: 24px;
  }

  .user-type-selector {
    flex-direction: column;
  }

  .user-type-option {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .user-type-option:last-child {
    border-bottom: none;
  }
}

/****************************** Terms and Condition Page ******************************/
.tnc-section {
  margin-bottom: 30px;
}

.tnc-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.tnc-content {
  line-height: 1.5;
}

.tnc-content,
.tnc-content strong,
.tnc-content a {
  font-size: 18px;
}

.tnc-content a {
  color: var(--primary);
}

.tnc-content a:hover {
  color: var(--dark-primary);
}
