.subtitle {
  color: var(--secondary-color);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.about-content p {
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cta-link {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.cta-link:visited {
  color: var(--primary-color);
}

.cta-link:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.stats-mini {
  display: flex;
  gap: 20px;
}

.stat-item {
  border-left: 3px solid var(--accent-color);
  padding-left: 15px;
}

.stat-item strong {
  display: block;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

.contact-item p {
  margin: 0;
  color: var(--text-light);
}

.contact-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.contact-phone-link {
  color: inherit !important;
  text-decoration: none !important;
}

/* SLIDESHOW STYLES */
.slideshow-container {
  position: relative;
  min-height: 150px;
  width: 100%;
  margin-bottom: 1rem;
}

.recenzie {
  display: none;
  background-color: #fefefe;
  border-left: 6px solid var(--primary-color);
  padding: 2rem;
  font-style: italic;
  color: #444444;
  border-radius: 0 8px 8px 0;
  animation: fadeEffect 0.5s ease-in;
}

.recenzie.active {
  display: block;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slideshow-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 1.5rem;
  padding: 10px;
}

.slide-btn {
  background-color: var(--primary-color);
  color: var(--accent-color);
  border: none;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  transition:
    transform 0.2s,
    background-color 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.slide-btn:hover {
  background-color: var(--secondary-color);
  transform: scale(1.15);
}

/* CONTACT FORM */
#contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#contact-form div {
  margin-bottom: 1rem;
}

#contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #444444;
}

#contact-form input,
#contact-form textarea,
#contact-form button {
  box-sizing: border-box;
  width: 100%;
  padding: 0.9rem;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

#contact-form input,
#contact-form textarea {
  border: 1px solid #ddd;
  background-color: #fdfdfd;
  color: #333333;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 74, 122, 0.1);
}

#contact-form button {
  background: var(--gradient-red);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(176, 58, 46, 0.3);
  transition: all 0.3s ease;
}

#contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(176, 58, 46, 0.4);
  filter: brightness(1.1);
}

/* --- STYLING NOTIFICĂRI --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--white);
  color: var(--text-color);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  border-left: 6px solid var(--primary-color);
  animation: slideIn 0.4s ease-out forwards;
}

.toast.success {
  background-color: #e8f5e9;
  border-left-color: #2e7d32;
  color: #1b5e20;
}

.toast.error {
  border-left-color: var(--secondary-color);
}

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

/* --- BUTON BACK TO TOP --- */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 30px;
  z-index: 2501;
  border: none;
  outline: none;
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    background-color 0.3s,
    transform 0.3s,
    opacity 0.3s;
  opacity: 0.8;
  -webkit-backface-visibility: hidden;
}

#back-to-top:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
  opacity: 1;
}

@media (max-width: 768px) {
  #back-to-top {
    width: 40px;
    height: 40px;
    font-size: 22px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    right: 10px;
    padding-bottom: 3px;
    transition:
      opacity 0.3s,
      background-color 0.3s;
  }
}

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 2500;
  width: 60px;
  height: 60px;
  background-color: var(--success-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  -webkit-backface-visibility: hidden;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    transition: background-color 0.3s ease;
  }
  .whatsapp-float img {
    width: 25px;
    height: 25px;
  }
}

/* Card Profesor */
.profesor-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 0;
  box-shadow: 0 10px 30px rgba(26, 74, 122, 0.08);
  transition: transform 0.3s ease;
  scroll-margin-top: 180px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profesor-card:nth-child(odd) {
  border-top: 5px solid rgba(255, 184, 28, 0.3);
}
.profesor-card:nth-child(even) {
  border-top: 5px solid #4682b4;
}

.profesor-slide-image-container {
  position: relative;
  display: inline-block; /* To contain the badge correctly */
}

.profesor-slide-image-container .badge-special {
  top: 10px; /* Position it inside the image container */
}

.profesor-top {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}
.profesor-img-container {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.profesor-img-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fcfaf2;
  box-sizing: border-box;
}

.badge-special {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap; /* Ensures long text does not wrap */
  background: #3f51b5;
  color: white;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  justify-content: center;
}
.badge {
  background: #f0f4f8;
  color: var(--primary-color);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}

.profesor-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.mini-stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.contact-prof-btn {
  background: linear-gradient(135deg, #1a4a7a 0%, #2c5c8c 100%);
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(26, 74, 122, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-prof-btn:hover {
  background: var(--gradient-red);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(176, 58, 46, 0.3);
  cursor: pointer;
}

.founder-tag {
  background-color: var(--accent-color) !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--white);
  margin: 0;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-top: 6px solid var(--accent-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal-content h3 {
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}
.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

#booking-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  align-items: center;
}
#booking-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: -10px;
}
#booking-form input {
  padding: 12px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.submit-booking {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-booking:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  filter: brightness(1.05);
}

@media (max-width: 600px) {
  .modal-content {
    padding: 20px;
    margin: 0;
    width: 80%;
  }
  .close-modal {
    top: 10px;
    right: 10px;
  }
  #booking-form {
    gap: 10px;
  }
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 16px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 184, 28, 0.3);
}

.btn-primary:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .btn-primary {
    padding: 16px 35px;
    font-size: 1.1rem;
  }
}

@media (max-width: 600px) {
  .profesor-card {
    padding: 1.25rem 1rem;
  }

  .profesor-top {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profesor-img-container {
    margin: 15px auto 0;
    width: 150px;
    height: 150px;
  }

  .badges-row {
    justify-content: center;
  }

  .profesor-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: center;
  }

  .contact-prof-btn {
    width: 100%;
  }

  .recenzie {
    padding: 1.25rem 1rem;
  }
}
