* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: #e5e5e5;
  color: #000000;
}
/* DEFAULT: Hide all pages */
.page-section {
  display: none !important;
}

/* ACTIVE: Show only active page */
.page-section.active {
  display: block !important;
}

/* When NOT authenticated: Hide main nav and footer */
body:not(.authenticated) .navbar,
body:not(.authenticated) .footer {
  display: none !important;
}

/* When authenticated: Hide auth pages only */
body.authenticated #login-page,
body.authenticated #signup-page,
body.authenticated #forgot-password-page,
body.authenticated #verify-otp-forgot-page,
body.authenticated #new-password-page {
  display: none !important;
}

.landing-page {
  background-color: #e8e8e8;
  min-height: 100vh;
}

.landing-header {
  background-color: #d4d4d4;
  padding: 20px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Hide landing header only on home page when authenticated */
body.authenticated #home-page .landing-header {
  display: none;
}

.landing-logo-text {
  font-size: 20px;
  color: #666;
  font-weight: 500;
}

.auth-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-login {
  background-color: white;
  color: #333;
  border: 2px solid #ddd;
}

.btn-login:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

.btn-signup {
  background-color: #f5a623;
  color: white;
  border: 2px solid #f5a623;
}

.btn-signup:hover {
  background-color: #e09514;
  border-color: #e09514;
}

.landing-main-content {
  display: flex;
  padding: 40px;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.landing-left-section {
  flex: 0 0 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.landing-logo-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
}

.landing-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 30px;
}

.landing-right-section {
  flex: 1;
  background-color: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.landing-section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 40px;
  color: #333;
}

.landing-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}

.landing-service-card {
  background-color: #fafafa;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  perspective: 1000px;
  min-height: 180px;
  height: auto;
  overflow: visible;
}

.landing-card-inner {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 180px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.landing-service-card:hover .landing-card-inner {
  transform: rotateY(180deg);
}

.landing-service-card.flipped .landing-card-inner {
  transform: rotateY(180deg);
}

.landing-card-front,
.landing-card-back {
  position: absolute;
  width: 100%;
  min-height: 180px;
  height: auto !important;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.landing-card-front {
  background-color: #fafafa;
}

.landing-card-back {
  background-color: #f5a623;
  color: white;
  transform: rotateY(180deg);
  padding: 20px 19px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: auto;
  min-height: 180px;
  overflow: hidden;
}

.landing-card-back-content {
  font-size: 12px;
  line-height: 1.4;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  transition: max-height 0.4s ease;
}
/* 
.landing-card-back-content.expanded {
  max-height: 500px; 
} */

.landing-info-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #ccc;
  font-weight: bold;
}

.landing-service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-service-icon svg {
  width: 50px;
  height: 50px;
  stroke: #333;
  fill: none;
  stroke-width: 2;
}

.landing-service-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.landing-about-card {
  background-color: white;
  border: 2px solid #2d4a7c;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.landing-about-card:hover {
  background-color: #2d4a7c;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(45, 74, 124, 0.3);
}

.landing-about-card:hover .landing-service-title,
.landing-about-card:hover .landing-service-icon svg {
  color: white;
  stroke: white;
}

.landing-about-card .landing-service-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #2d4a7c;
  font-size: 18px;
  font-weight: 600;
}

.landing-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.landing-about-card:hover .landing-arrow {
  transform: translateX(5px);
}

.landing-footer {
  background-color: #2d4a7c;
  color: white;
  padding: 25px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center; /* Center vertically if needed */
}

.landing-footer-logo {
  width: 120px;
  height: 120px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin: 51px 0;
}

.landing-footer-logo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: contain;
}

.landing-footer-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.landing-footer-address {
  font-size: 14px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-location-icon {
  font-size: 16px;
}

.know-more-btn {
  background-color: white;
  color: #f5a623;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.know-more-btn:hover {
  background-color: #2d4a7c;
  color: white;
  transform: scale(1.05);
}

/* Service Modal Styles */
.service-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.service-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: slideDown 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.service-modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 35px;
  font-weight: 300;
  color: #999;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.service-modal-close:hover {
  color: #333;
  transform: rotate(90deg);
}

.service-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5a623;
  border-radius: 50%;
  padding: 20px;
}

.service-modal-icon svg {
  width: 50px;
  height: 50px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

.service-modal-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.service-modal-description {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  text-align: center;
  margin-bottom: 30px;
}

.service-modal-btn {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 12px 30px;
  background-color: #2d4a7c;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-modal-btn:hover {
  background-color: #f5a623;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 166, 35, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .service-modal-content {
    margin: 10% auto;
    padding: 30px 20px;
    width: 95%;
  }

  .service-modal-title {
    font-size: 22px;
  }

  .service-modal-description {
    font-size: 14px;
  }
}

/* Contact Modal Styles */
.contact-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.contact-modal-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 8% auto;
  padding: 50px 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: slideDown 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: white;
}

.contact-modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 35px;
  font-weight: 300;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  opacity: 0.8;
}

.contact-modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.contact-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.contact-modal-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
}

.contact-modal-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-modal-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.contact-modal-email {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 15px 25px;
  border-radius: 12px;
  margin: 0 auto 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-modal-email:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-modal-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background-color: white;
  color: #667eea;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-modal-copy-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-modal-copy-btn svg {
  width: 20px;
  height: 20px;
}

.contact-copy-success {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #10b981;
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.contact-copy-success.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-modal-content {
    margin: 15% auto;
    padding: 40px 25px;
    width: 95%;
  }

  .contact-modal-title {
    font-size: 26px;
  }

  .contact-modal-email {
    font-size: 16px;
    padding: 12px 20px;
  }
}

/* Landing Page Mobile Responsive */
@media (max-width: 1200px) {
  .landing-main-content {
    flex-direction: column;
    align-items: center;
  }

  .landing-left-section {
    flex: none;
  }
}

@media (max-width: 768px) {
  .landing-header {
    padding: 15px 20px;
  }

  .landing-logo-text {
    font-size: 16px;
  }

  .btn {
    padding: 10px 25px;
    font-size: 14px;
  }

  .landing-main-content {
    padding: 20px;
  }

  .landing-right-section {
    padding: 25px;
  }

  .landing-section-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  /* .landing-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  } */
  /* 
  .landing-service-card {
    padding: 20px 15px;
  } */

  .landing-footer {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .landing-footer-address {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  /* .landing-services-grid {
    grid-template-columns: 1fr;
  } */

  .auth-buttons {
    gap: 10px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Tablet Landscape (900px - 1023px) */
@media (min-width: 900px) and (max-width: 1023px) {
  .landing-services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .landing-service-card {
    min-height: 165px;
    padding: 22px 15px;
  }

  .landing-card-back {
    max-height: 165px;
    padding: 15px 3px; /* Proportional padding */
  }

  .landing-card-back-content {
    max-height: 90px;
    font-size: 10px;
    line-height: 1.3;
  }

  .landing-service-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .landing-service-icon svg {
    width: 45px;
    height: 45px;
  }

  .landing-service-title {
    font-size: 14px;
  }

  .know-more-btn {
    padding: 7px 16px;
    font-size: 12px;
  }
}

/* Tablet Portrait (768px - 899px) */
@media (min-width: 768px) and (max-width: 899px) {
  .landing-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .landing-service-card {
    min-height: 170px;
    padding: 25px 18px;
  }

  .landing-card-back {
    max-height: 170px;
    padding: 10px 1px; /* Proportional padding */
  }

  .landing-card-back-content {
    max-height: 95px;
    font-size: 10px;
  }

  .landing-service-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .landing-service-icon svg {
    width: 45px;
    height: 45px;
  }

  .landing-service-title {
    font-size: 15px;
  }

  .know-more-btn {
    padding: 8px 18px;
    font-size: 12px;
  }
}

/* Mobile Landscape (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .landing-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .landing-service-card {
    min-height: 165px;
    padding: 22px 16px;
  }

  .landing-card-back {
    max-height: 165px;
    padding: 6px 1px; /* Proportional padding */
  }

  .landing-card-back-content {
    max-height: 90px;
    font-size: 10px;
    line-height: 1.3;
  }

  .landing-service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }

  .landing-service-icon svg {
    width: 42px;
    height: 42px;
  }

  .landing-service-title {
    font-size: 14px;
  }

  .know-more-btn {
    padding: 7px 16px;
    font-size: 11px;
  }
}

/* Mobile Portrait (481px - 599px) */
@media (min-width: 481px) and (max-width: 599px) {
  .landing-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .landing-service-card {
    min-height: 160px;
    padding: 20px 15px;
  }

  .landing-card-back {
    max-height: 160px;
    padding: 16px 4px; /* Proportional padding */
  }

  .landing-card-back-content {
    max-height: 88px;
    font-size: 9px;
    line-height: 1.3;
  }

  .landing-service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .landing-service-icon svg {
    width: 40px;
    height: 40px;
  }

  .landing-service-title {
    font-size: 13px;
  }

  .know-more-btn {
    padding: 6px 14px;
    font-size: 11px;
  }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
  .landing-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .landing-service-card {
    min-height: 180px;
    padding: 25px 20px;
  }

  .landing-card-back {
    max-height: 180px;
    padding: 6px 0px; /* Proportional padding */
  }

  .landing-card-back-content {
    max-height: 100px;
    font-size: 11px;
    line-height: 1.4;
  }

  .landing-service-icon {
    width: 55px;
    height: 55px;
    margin-bottom: 12px;
  }

  .landing-service-icon svg {
    width: 45px;
    height: 45px;
  }

  .landing-service-title {
    font-size: 15px;
  }

  .know-more-btn {
    padding: 8px 20px;
    font-size: 12px;
  }
}

/* Extra Small Mobile (up to 360px) */
@media (max-width: 360px) {
  .landing-service-card {
    min-height: 170px;
    padding: 20px 16px;
  }

  .landing-card-back {
    max-height: 170px;
    padding: 18px 15px; /* Proportional padding */
  }

  .landing-card-back-content {
    max-height: 92px;
    font-size: 10px;
  }

  .landing-service-title {
    font-size: 14px;
  }

  .know-more-btn {
    padding: 7px 18px;
    font-size: 11px;
  }
}

/* Navbar Styles */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  flex: 1;
  justify-content: center;
  margin-left: 60px;
}

.nav-links li a {
  text-decoration: none;
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-links li a.active {
  color: #000000;
  font-weight: 500;
}

.nav-links li a:hover {
  color: #000000;
}

.contact-btn {
  background-color: #ffb800;
  color: #000000;
  border: none;
  padding: 9px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: #eaa800;
}

.user-icon {
  margin-left: 18px;
  cursor: pointer;
  color: #000000;
}

.user-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 150px;
  display: none;
  z-index: 1000;
}

.user-dropdown.active {
  display: block;
}

.user-dropdown-item {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  color: #000000;
  font-size: 14px;
}

.user-dropdown-item:hover {
  background-color: #f5f5f5;
}

.logout-icon {
  width: 18px;
  height: 18px;
}

/* Services Page Styles */
.container {
  width: 100%;
  margin: 0;
  padding: 0;
}

.services-box {
  background-color: #ededed;
  padding: 35px 0 50px;
  position: relative;
}

.services-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0;
  padding-bottom: 20px;
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 50px;
  padding-right: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 45px 50px;
  margin-top: 27px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 50px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #f8f9fa;
  border: 0px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-color: #e8e6f2;
  border-radius: 50%;
  padding: 12px;
}

.service-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.service-title {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin-top: 0;
  margin-bottom: 5px;
}

.service-description {
  font-size: 13px;
  line-height: 1.6;
  color: #000000;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* Consulting Page Styles */
.consulting-container {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #ededed;
}

.consulting-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 50px 80px;
}

.consulting-title {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 50px;
}

.consulting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.consulting-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  min-height: 120px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.consulting-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 22px 13px 0 0;
  border-color: #ffb800 transparent transparent transparent;
  position: absolute;
  top: 0;
  left: 0;
  border-top-left-radius: 8px;
}

.card-icon-bottom-right {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 22px 13px;
  border-color: transparent transparent #ffb800 transparent;
  position: absolute;
  bottom: 0;
  right: 0;
  border-bottom-right-radius: 8px;
}

.card-title {
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  justify-content: center;
  padding-top: 16px;
}

/* PROJECTS PAGE STYLES */
#projects-page {
  background: #ededed;
  min-height: calc(100vh - 80px);
}
.projects-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header Section */
.projects-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}

.projects-title {
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 auto 24px auto;
  text-align: center;
}

/* City Filter Dropdown */
.city-filter-dropdown {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.city-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.city-filter-btn:hover {
  border-color: #2d4a7c;
  background: #f8f9fa;
}

.dropdown-arrow {
  stroke: #666;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.city-filter-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.city-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  min-width: 250px;
  max-height: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.city-dropdown-menu.active {
  display: flex;
}

/* Search Wrapper */
.city-search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 2px solid #e0e0e0;
  background: #f8f9fa;
}

.search-icon {
  stroke: #999;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.city-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  outline: none;
}

.city-search-input::placeholder {
  color: #999;
}

/* City Options List */
.city-options-list {
  overflow-y: auto;
  max-height: 320px;
}

.city-option {
  padding: 12px 15px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.city-option:hover {
  background: #f0f4ff;
  border-left-color: #2d4a7c;
}

.city-option.selected {
  background: #e8f0ff;
  color: #2d4a7c;
  font-weight: 600;
  border-left-color: #2d4a7c;
}
/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Project Card */
.project-card {
  background: white;
  border: 3px solid #333;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
  box-shadow: 6px 6px 0 #333;
}

.project-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #333;
}

.project-name {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  text-align: center;
}

/* Project Details */
.project-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.project-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #555;
}

.detail-icon {
  width: 20px;
  height: 20px;
  stroke: #666;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Project Footer */
.project-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.project-status {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
}

.project-status.completed {
  background: #d4f4dd;
  color: #1d8c3a;
}

.project-status.in-process {
  background: #fff3cd;
  color: #856404;
}

.project-year {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #666;
  justify-content: flex-end;
}

/* Hidden Cards (Filtered) */
.project-card.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  }
}

@media (max-width: 768px) {
  .projects-container {
    padding: 20px 15px;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .projects-title {
    font-size: 26px;
  }

  .city-filter-dropdown {
    width: 100%;
  }

  .city-filter-btn {
    width: 100%;
    justify-content: space-between;
  }

  .city-dropdown-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    padding: 24px;
  }

  .project-name {
    font-size: 20px;
  }

  .project-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-year {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .projects-title {
    font-size: 22px;
  }

  .project-detail-item {
    font-size: 13px;
  }

  .project-card {
    padding: 20px;
    box-shadow: 4px 4px 0 #333;
  }
}

/*Associate page styles */
#associates-page {
  padding: 40px 0;
  background-color: #ededed;
}

.associates-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

.associate-content {
  text-align: center;
  margin-bottom: 50px;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  color: #000000;
}

.associates-container.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.associate-card {
  background: #f8f8f8;
  border: 2px solid #000;
  border-radius: 10px;
  padding: 30px 25px;
  transition: all 0.3s;
}

.associate-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.associate-name {
  font-size: 22px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 2px solid #ccc;
}

.info-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  margin-bottom: 15px;
  font-size: 15px;
  color: #333;
  gap: 12px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row svg,
.info-row img {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  stroke: #000;
  justify-self: center;
}

.info-content {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
}

.info-left {
  text-align: left;
  font-weight: 400;
}

.info-content img {
  width: 20px;
  height: 20px;
}

.info-right {
  text-align: right;
  font-weight: 400;
  white-space: nowrap;
  min-width: fit-content;
}

.info-row > span {
  flex: 1;
}

@media (max-width: 1024px) {
  .associates-container.cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .associates-container.cards-grid {
    grid-template-columns: 1fr;
  }

  .associates-container {
    padding: 0 20px;
  }
}

/* Alliances Page Styles */
.alliances-container {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #ededed;
}

.alliances-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 50px 50px 80px;
}

.alliances-title {
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 50px;
  text-align: center;
}

.alliances-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
}

.alliance-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  min-height: 120px;
}

.alliance-logo img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Footer */
.footer {
  background-color: #232e5e;
  color: #ffffff;
  text-align: center;
  padding: 18px;
}

.footer p {
  font-size: 13px;
  font-weight: 300;
}

/* ========== AUTH PAGES CSS  ========== */

.auth-page-container {
  min-height: 100vh;
  background-color: #e8e8e8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-box {
  max-width: 450px;
  margin: 60px auto 40px;
  background-color: white;
  padding: 40px 45px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
}

.signup-box {
  max-width: 500px;
}

.back-arrow {
  position: absolute;
  top: 25px;
  left: 25px;
  background: none;
  border: 2px solid #333;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.back-arrow:hover {
  background-color: #f5f5f5;
}

.back-arrow svg {
  color: #333;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.auth-title {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  color: #000;
  margin-bottom: 30px;
}

.auth-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
}

.auth-subtitle span {
  font-weight: 600;
  color: #000;
}

.auth-form-group {
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin-bottom: 8px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 15px;
  color: #999;
  pointer-events: none;
}

.auth-input-wrapper input {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: none;
  background-color: #f5f5f5;
  border-radius: 8px;
  font-size: 14px;
  color: #000;
  transition: background-color 0.3s;
}

.auth-input-wrapper input:focus {
  outline: none;
  background-color: #ebebeb;
}

.auth-input-wrapper input::placeholder {
  color: #999;
}

.name-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.half-width {
  flex: 1;
  margin-bottom: 0 !important;
}

.half-width input {
  width: 100%;
  padding: 14px 15px;
  border: none;
  background-color: #f5f5f5;
  border-radius: 8px;
  font-size: 14px;
  color: #000;
}

.half-width input::placeholder {
  color: #999;
}

/* Input with Button (Phone + Send OTP) */
.with-button {
  display: flex;
  gap: 10px;
}

.with-button input {
  flex: 1;
}

.send-otp-btn,
.verify-otp-btn {
  padding: 14px 20px;
  background-color: white;
  border: 2px solid #333;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.send-otp-btn:hover,
.verify-otp-btn:hover {
  background-color: #f5f5f5;
}

/* Password with Eye Icon */
.with-eye {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password svg {
  color: #666;
}

/* OTP Inputs */
.otp-inputs {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 30px 0;
}

.otp-input {
  width: 55px;
  height: 55px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: none;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #000;
}

.otp-input:focus {
  outline: none;
  background-color: #ebebeb;
}

/* Forgot Password Link */
.forgot-password-link {
  text-align: right;
  margin-bottom: 25px;
  margin-top: -8px;
}

.forgot-password-link a {
  font-size: 13px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}

/* Resend OTP */
.resend-otp-text {
  text-align: center;
  margin-top: 15px;
}

.resend-otp-text a {
  font-size: 14px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.resend-otp-text a:hover {
  text-decoration: underline;
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  padding: 15px;
  background-color: #f5a623;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

.auth-submit-btn:hover {
  background-color: #e09514;
}

/* Switch Text (Login/Signup) */
.auth-switch-text {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.auth-switch-text a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.auth-switch-text a:hover {
  text-decoration: underline;
}

/* Auth Footer */
.auth-footer {
  background-color: #2d4a7c;
  color: white;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.auth-footer-logo {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: contain;
}

.auth-footer-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.auth-footer-address {
  font-size: 13px;
  opacity: 0.9;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.auth-footer-address svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Success Popup */
.success-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.success-popup.active {
  display: flex;
}

.success-popup-content {
  background-color: white;
  padding: 40px 60px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.success-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-close:hover {
  color: #666;
}

.success-icon {
  margin-bottom: 20px;
}

.success-popup-content p {
  font-size: 16px;
  font-weight: 500;
  color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-box {
    margin: 30px 20px;
    padding: 35px 25px;
  }

  .signup-box {
    max-width: 100%;
  }

  .auth-title {
    font-size: 20px;
  }

  .name-row {
    flex-direction: column;
    gap: 20px;
  }

  .otp-inputs {
    gap: 10px;
  }

  .otp-input {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .auth-footer {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .auth-footer-address {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .auth-box {
    margin: 20px 15px;
    padding: 30px 20px;
  }

  .back-arrow {
    top: 15px;
    left: 15px;
  }

  .with-button {
    flex-direction: column;
  }

  .send-otp-btn,
  .verify-otp-btn {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar {
    padding: 12px 30px;
  }

  .nav-links {
    gap: 22px;
    margin-left: 40px;
  }

  .services-grid {
    gap: 40px 55px;
  }

  .consulting-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .consulting-content {
    padding: 40px 40px 60px;
  }

  .alliances-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    gap: 15px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-left: 0;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .consulting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .consulting-content {
    padding: 30px 25px 50px;
  }

  .alliances-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .alliances-content {
    padding: 0 25px;
  }

  .alliances-box {
    padding: 30px 25px 40px;
  }
}

/* Super Admin Styles */
.super-admin-only {
    display: none !important;
}

body.role-super-admin .super-admin-only {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    background: #f5a623;
    border-radius: 50%;
    padding: 5px;
    transition: all 0.2s ease;
}

body.role-super-admin .super-admin-only:hover {
    background: #2d4a7c;
    transform: scale(1.1);
}

body.role-super-admin .super-admin-only svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

[contenteditable="true"] {
    outline: 2px solid #f5a623;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(245, 166, 35, 0.1);
    min-width: 20px;
    display: inline-block;
}

[contenteditable="true"].is-editing {
    border: 1px dashed #2d4a7c;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.edit-actions {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
    vertical-align: middle;
}

.edit-btn {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
}

.save-btn:hover {
    background-color: #45a049;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
}

.cancel-btn:hover {
    background-color: #da190b;
}

body.role-super-admin .super-admin-only {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
    background: #f5a623;
    border-radius: 50%;
    padding: 6px;
    transition: all 0.2s ease;
    vertical-align: middle;
}
