html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #08b45c;
  --primary-light: #0ac766;
  --primary-dark: #067a47;
  --secondary-color: #f8fffe;
  --accent-color: #e8f7f0;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(8, 180, 92, 0.1);
  --shadow-hover: 0 15px 40px rgba(8, 180, 92, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Urbanist", "Segoe UI", -apple-system, BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-radius: 50px;
  padding: 16px 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  gap: 60px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a.active {
  color: var(--primary-color);
}

.auth-buttons {
  display: flex;
  gap: 20px;
}

.btn-login {
  font-family: inherit;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(8, 180, 92, 0.3);
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-login:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

.btn-signup {
  font-family: inherit;
  padding: 12px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-signup:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.user-profile {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--accent-color);
  border: 1px solid rgba(8, 180, 92, 0.3);
  border-radius: 25px;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-btn:hover {
  background: var(--primary-color);
  color: white;
}

.user-btn i {
  width: 20px;
  height: 20px;
}

.user-dropdown {
  position: absolute;
  top: 120%;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  min-width: 250px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.user-dropdown a:hover {
  background: var(--accent-color);
  color: var(--primary-color);
}

.user-dropdown a i {
  width: 20px;
  height: 20px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
  padding: 8px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.096);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: rgba(255, 255, 255, 0.587);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-align: center;
}

.modal p {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-form .form-group {
  margin-bottom: 0;
}

.modal-form input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(8, 180, 92, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
}

.modal-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(8, 180, 92, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
}

.remember-me input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--primary-color);
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.modal-form button {
  padding: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  font-family: inherit;
}

.modal-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.modal-form .password-toggle {
  background-color: transparent;
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.modal-form .password-toggle:hover {
  background-color: transparent;
  transform: translateY(0);
}

.password-toggle i {
  width: 20px;
  height: 20px;
}

.password-match-indicator {
  font-size: 0.85rem;
  margin-top: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.password-match-indicator.match {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

.password-match-indicator.no-match {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.password-match-indicator.empty {
  display: none;
}

.modal-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-light);
}

.modal-switch a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.auth-btn {
  font-family: "Urbanist", "Segoe UI", -apple-system, BlinkMacSystemFont,
    sans-serif;
}

.modal-switch a:hover {
  text-decoration: underline;
}

/* Mobile Drawer Styles */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 2000;
  transition: right 0.3s ease;
  padding: 80px 40px 40px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-links {
  list-style: none;
  margin-bottom: 40px;
}

.mobile-nav-links li {
  margin-bottom: 20px;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 18px;
  display: block;
  padding: 2px 0;
  border-bottom: 1px solid rgba(8, 180, 92, 0.1);
  transition: color 0.3s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--primary-color);
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-user-profile {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.mobile-user-profile a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid rgba(8, 180, 92, 0.1);
  transition: all 0.3s ease;
}

.mobile-user-profile a:hover {
  color: var(--primary-color);
  background: var(--accent-color);
}

.hero {
  min-height: 100vh;
  background-image: url("imgs/hero-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 140px 40px 80px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(248, 255, 254, 0.5) 100%
  );
  z-index: -1;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
  gap: 60px;
}

.hero-content {
  text-align: left;
  flex: 1;
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

.hero h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 40px;
  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 50px;
  line-height: 1.8;
  max-width: 700px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(8, 180, 92, 0.3);
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(8, 180, 92, 0.4);
}

.cta-button::after {
  content: "→";
  transition: transform 0.3s ease;
}

.cta-button:hover::after {
  transform: translateX(5px);
}

.hero-image {
  flex: 1;
  max-width: 500px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 500;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-image img {
  width: 100%;
  height: auto;
}

.about {
  padding: 100px 40px;
  background-color: var(--secondary-color);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 80px;
}

.about-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  animation: fadeInUp 0.8s ease-out;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-image {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.services {
  padding: 100px 40px;
  background-image: linear-gradient(
      135deg,
      #f8fffe 0%,
      rgba(248, 255, 254, 0.2) 100%
    ),
    url("imgs/services-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 80px;
}

.services-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.services-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(8, 180, 92, 0.1);
}

.service-card:last-child {
  justify-self: center;
  grid-column: 1 / -1;
  width: min(350px, 100%);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

.service-list {
  list-style: none;
  margin-top: 15px;
}

.service-list li {
  color: var(--text-light);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.contact {
  padding: 40px 40px;
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.contact-header {
  text-align: center;
  margin-bottom: 80px;
}

.contact-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.contact-header {
  margin-top: 1.5rem !important;
}

.contact-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  height: fit-content;
}

.contact-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.contact-info > p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent-color);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--text-light);
  font-size: 1rem;
}

.contact-form {
  background: white;
  padding: 50px 40px;
  border-radius: 20px;
  border: 1px solid rgba(8, 180, 92, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 1rem;
}

.form-group .password-text {
  font-style: italic;
  color: var(--text-light);
  font-size: 0.75rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(8, 180, 92, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(8, 180, 92, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.submit-btn {
  font-family: inherit;
  width: 100%;
  padding: 18px 36px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(8, 180, 92, 0.3);
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(8, 180, 92, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.footer {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 60px 40px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-light);
}

.footer-section p {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--primary-light);
  padding-top: 30px;
  text-align: center;
  color: var(--text-dark);
}

/* Additional styles for appointment slots */
.appointment-slot {
  margin-top: 8px;
  padding: 8px;
  /* background-color: var(--primary-color); */
  color: var(--text-dark);
  border-radius: 4px;
  font-size: 0.9em;
  text-align: center;
}
.appointment-slot span {
  font-weight: bold;
}

.slot-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}
.slot-item {
  margin-bottom: 12px;
  padding: 8px;
  background-color: #f8fafc;
  border-radius: 4px;
}
.slot-item p {
  margin: 4px 0;
}
.slot-item p:first-child {
  font-weight: bold;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-info,
.contact-form {
  animation: fadeInUp 0.8s ease-out;
}

.contact-form {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

/* Toastify styles */
.toast-success,
.toast-error {
  border-radius: 12px;
  font-family: "Urbanist", "Segoe UI", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-weight: 500;
  box-shadow: var(--shadow);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar {
    top: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    padding: 12px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 15px;
  }

  .nav-links,
  .auth-buttons {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding: 120px 20px 60px;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-image {
    max-width: 100%;
    height: 300px;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .about {
    padding: 60px 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services {
    padding: 60px 20px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-card {
    padding: 30px 25px;
  }

  .contact {
    padding: 60px 20px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info,
  .contact-form {
    padding: 40px 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-item {
    padding: 15px;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .modal {
    padding: 30px 25px;
    margin: 20px;
  }

  .footer-section.quicklinks,
  .footer-section.services-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .contact-info,
  .contact-form {
    padding: 30px 20px;
  }

  .contact-details {
    gap: 20px;
  }

  .modal {
    padding: 25px 20px;
  }
}

/* Announcements Section */
.announcements {
  padding: 40px 40px;
  background-color: var(--secondary-color);
}

.announcements-container {
  max-width: 1200px;
  margin: 0 auto;
}

.announcements-header {
  text-align: center;
  margin-bottom: 80px;
}

.announcements-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.announcements-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
}

.announcement-card {
  background: white;
  padding: 1rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(8, 180, 92, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  backdrop-filter: blur(10px);
}

.announcement-card.hidden {
  display: none; /* Hide additional cards by default */
}

.announcement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 180, 92, 0.02),
    rgba(8, 180, 92, 0.08)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 22px;
  z-index: 0;
}

.announcement-card:hover::before {
  opacity: 1;
}

.announcement-card:active {
  transform: translateY(-8px) scale(1.01);
}

.announcement-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
}

.announcement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-content {
  position: relative;
  z-index: 1;
}

.announcement-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 12px 0;
  line-height: 1.3;
  transition: color 0.3s ease;

  /* Ellipsis styles */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.announcement-card:hover .announcement-content h3 {
  color: var(--primary-color);
}

.announcement-content p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement-date {
  font-size: 0.95rem;
  color: #8b8b8b;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.see-more-container {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    rgba(8, 180, 92, 0.8)
  );
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(8, 180, 92, 0.2);
}

.submit-btn:hover {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    rgba(8, 180, 92, 0.9)
  );
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 180, 92, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Announcement Modal and other existing styles remain unchanged */
.announcement-modal {
  max-width: 650px;
  width: 92%;
  padding: 45px;
  border-radius: 28px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  max-height: 80vh;
  overflow-y: auto; /* better than scroll */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Chrome, Edge, Safari */
.announcement-modal::-webkit-scrollbar {
  width: 6px;
}

.announcement-modal::-webkit-scrollbar-track {
  background: transparent;
}

.announcement-modal::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.announcement-modal-content .image-modal {
  width: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
}

.announcement-modal-content img {
  width: 60%;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 25px;
  max-height: 100% !important;
}

.announcement-modal-content h2 {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 18px;
}

.announcement-modal-content p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 25px;
}

.announcement-modal-content span {
  font-size: 0.85rem;
  color: #8b8b8b;
  text-align: center;
}

/* Existing Schedules Section styles remain unchanged */
.schedules {
  padding: 100px 40px;
  background-color: var(--accent-color);
}

/* ... (rest of the existing CSS for schedules, calendar, and responsive design) ... */

/* Responsive Design */
@media (max-width: 768px) {
  .announcements,
  .schedules {
    padding: 60px 20px;
  }

  .announcements-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .announcement-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .announcement-content {
    padding: 24px;
  }

  .submit-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /* Existing mobile styles for calendar and event cards */
  .calendar-container {
    display: none;
  }

  .event-cards {
    display: flex;
  }

  .event-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .calendar-date {
    height: 100px;
    padding: 8px;
  }

  .sticky-note {
    max-height: 70px;
    padding: 10px;
  }

  .event h4 {
    font-size: 0.85rem;
  }

  .event p {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .announcement-modal {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .announcement-modal-content img {
    height: 220px;
    border-radius: 16px;
  }

  .event-card h4 {
    font-size: 1.1rem;
  }

  .event-card p {
    font-size: 0.9rem;
  }

  .event-details {
    font-size: 0.85rem;
  }

  .submit-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 760px) {
  .hero-image {
    max-width: 100%;
    height: auto;
    display: none;
  }
}

/* Style the signup modal */
.signup-modal {
  max-width: 800px;
  width: 90%;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);

  /* Smooth scroll and minimal scrollbar */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* thumb + track */
}

/* For Chrome, Edge, Safari */
.signup-modal::-webkit-scrollbar {
  width: 6px; /* thinner scrollbar */
}

.signup-modal::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.signup-modal::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.signup-modal::-webkit-scrollbar-track {
  background: transparent;
}
/* Ensure form content is scrollable */
.signup-modal .modal-form {
  max-height: 100%; /* Restrict form height to allow scrolling */
  overflow-y: auto; /* Enable scrolling within the form */
  padding-right: 10px; /* Prevent scrollbar from overlapping content */
}

/* Optional: Style the scrollbar for better aesthetics */
.signup-modal .modal-form::-webkit-scrollbar {
  width: 8px;
}

.signup-modal .modal-form::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.signup-modal .modal-form::-webkit-scrollbar-thumb {
  background: var(--primary-color); /* Use your primary color, e.g., #067a47 */
  border-radius: 4px;
}

.signup-modal .modal-form::-webkit-scrollbar-thumb:hover {
  background: #055f3a; /* Darker shade on hover */
}

/* Style file input fields */
.form-group input[type="file"] {
  padding: 10px;
  border: 2px solid rgba(8, 180, 92, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-group input[type="file"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(8, 180, 92, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-size: 1rem;
}

/* Ensure three inputs in a row for name fields */
.form-row.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-row.three-columns {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .signup-modal {
    max-width: 90%;
    max-height: 85vh; /* Slightly smaller on mobile */
    padding: 20px;
  }

  .signup-modal .modal-form {
    max-height: 65vh; /* Adjust form height for smaller screens */
  }
}

.required-indicator {
  color: #ef4444;
  font-weight: bold;
}

input[type="file"]::file-selector-button {
  background-color: #055f3a; /* blue */
  font-family: inherit;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

input[type="file"]::file-selector-button:hover {
  background-color: #067a47; /* darker blue */
}

/* DUTIES */

/* Floating fixed position */
.bhw-duty-card {
  position: fixed;
  padding: 1rem;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 80vh;
  overflow-y: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hidden (when closed) */
.bhw-duty-card.closed {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* Toggle button */
.duty-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: background-color 0.3s ease;
}

.duty-toggle-btn:hover {
  background-color: #1a242f;
}

/* Duty information */
.duty-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.duty-info:last-child {
  border-bottom: none;
} /* Avatar styling */
.avatar-image img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color, #2c3e50);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
} /* Duty details */
.duty-details {
  flex: 1;
}
.duty-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}
.duty-date {
  font-size: 0.9rem;
  color: #666;
} /* No duty message */
.no-duty {
  text-align: center;
  color: #888;
  font-size: 1rem;
  padding: 20px 0;
}

.duty-title {
  background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  position: relative;
}

/* Terms and Conditions styles */
.terms-checkbox {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Terms Modal Styles */
.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.terms-content::-webkit-scrollbar {
    width: 6px;
}

.terms-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.terms-content h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.terms-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.accept-btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.accept-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Disabled button styles */
#signupButton:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#signupButton:disabled:hover {
    background: #cccccc;
    transform: none;
}