/* Profile Stepper Styles */
.profile-stepper {
  width: 100%;
  margin-bottom: 2.5rem;
}
.stepper-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  position: relative;
  min-width: 80px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.stepper-item:hover {
  transform: translateY(-2px);
}
.stepper-item:hover .stepper-circle {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stepper-item.active {
  transform: translateY(-2px);
}
.stepper-item.active .stepper-circle {
  background: var(--bs-secondary) !important;
  color: var(--primary-color, #ffdb69);
  border-color: var(--bs-secondary) !important;
  box-shadow: 0 4px 12px rgba(26, 38, 52, 0.3);
}
.stepper-item.active:not(:last-child)::after {
  background: var(--bs-secondary) !important;;
}
.stepper-item.active .stepper-label {
  color: var(--bs-secondary) !important;;
  font-weight: 600;
}
.stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 0;
  width: calc(100% - 40px);
  height: 2px;
  background: #e1e1ea;
  z-index: 0;
  transform: translateX(50%);
}
.stepper-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color, #ffdb69);
  color:  var(--secondary-color, #ffdb69);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  z-index: 1;
  border: 2px solid #e1e1ea;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.stepper-label {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
  text-align: center;
}
.stepper-item.completed .stepper-circle {
  background: var(--bs-secondary) !important;;
  color: #fff;
  border-color: var(--primary-color, #ffdb69);
}
.stepper-item.completed .stepper-label {
  color: var(--bs-secondary) !important;;
  font-weight: 600;
}
.stepper-item.completed:not(:last-child)::after {
  background: var(--bs-secondary) !important;;
}
@media (max-width: 767.98px) {
  .profile-stepper {
    margin-bottom: 1.5rem;
  }
  .stepper-list {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  .stepper-item {
    flex: 0 1 auto;
    min-width: 70px;
    max-width: 90px;
  }
  .stepper-item:not(:last-child)::after {
    content: none;
  }
  .stepper-circle {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  .stepper-label {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}
/* User Profile Dashboard Custom Styles */
.user-profile-dashboard {
  margin-top: 2rem;
}
.profile-welcome {
  font-size: 2rem;
  font-weight: 600;
  color: var(--bs-secondary) !important;;
}
.profile-stat-card {
  background: #f8f9fa;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  min-height: 110px;
  margin-bottom: 0.5rem;
}
.profile-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.profile-stat-label {
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
}
.profile-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-secondary) !important;;
}
.profile-section-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 2rem;
  overflow: hidden;
}
.profile-section-header {
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color, #ffdb69);
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bs-secondary) !important;;
}
.profile-section-body {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
}
@media (max-width: 991.98px) {
  .profile-section-body {
    padding: 1rem 0.75rem 0.5rem 0.75rem;
  }
  .profile-section-header {
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }
  .profile-stat-card {
    padding: 1rem 0.75rem;
    min-height: 90px;
  }
  .profile-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  .profile-stat-value {
    font-size: 1.3rem;
  }
}
/* Custom styles for about-sirf.php team section */
.team-card {
  background-color: #f8f9fa;
  border-radius: 1rem;
  transition: box-shadow 0.2s;
  margin-bottom: 1.5rem;
}
.team-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
}
.team-img {
  width: 140px;
  height: 175px;
  object-fit: cover;
  border-radius: 10%;
  border: 2px solid #e1e1ea;
}
@media (max-width: 767.98px) {
  .team-img {
    width: 100px;
    height: 100px;
  }
}


/* For visually hidden elements (accessibility table captions) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Custom list for overview-history */
.custom-list {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}
.custom-list li {
  list-style: disc inside;
  margin-bottom: 0.5rem;
  color: #222;
  font-size: 1rem;
}

/* Definition page custom styles */
.definition-block {
  background: #f9f9f9;
  border-left: 4px solid var(--primary-color, #ffdb69);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.definition-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary-color, #4b3504);
  margin-bottom: 0.5rem;
}
.definition-authority {
  display: block;
  font-size: 0.98rem;
  color: #555;
  font-style: italic;
  margin-top: 0.5rem;
}
.definition-note {
  background: #fffbe6;
  border-left: 4px solid #f7c948;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #6a4a00;
}
@media (max-width: 767.98px) {
  .definition-block {
    padding: 1rem 0.75rem;
  }
  .definition-note {
    padding: 0.75rem 0.5rem;
  }
}

/* Officer directory card styles */
.officer-card {
  border-radius: 1rem;
  transition: box-shadow 0.2s;
  margin-bottom: 1.5rem;
  background: #fff;
}
.officer-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
}
.division-heading {
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color, #ffdb69);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bs-secondary) !important;;
  border-radius: 0.5rem 0 0 0.5rem;
}
@media (max-width: 767.98px) {
  .officer-card {
    margin-bottom: 1rem;
  }
  .division-heading {
    font-size: 1rem;
    padding-left: 0.75rem;
  }
}

/* Org Chart Styles for ZSW Hierarchy */
.orgchart-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.orgchart-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.orgchart-card {
  border-radius: 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e1e1ea;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.orgchart-list li {
  margin-bottom: 0.5rem;
}
.orgchart-list .badge {
  font-size: 1rem;
  padding: 0.5em 1em;
}
.orgchart-connector {
  width: 2px;
  height: 24px;
  background: #adb5bd;
  margin: 0 auto 0.5rem auto;
}
.orgchart-connector-horizontal {
  height: 2px;
  width: 40px;
  background: #adb5bd;
  margin-bottom: 0.5rem;
}
@media (max-width: 767.98px) {
  .orgchart-container {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  .orgchart-card {
    min-width: 140px;
    font-size: 0.95rem;
  }
  .orgchart-list .badge {
    font-size: 0.95rem;
    padding: 0.4em 0.7em;
  }
}

/* Gallery image and social icon improvements */
.award-listing {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.press-image {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.press-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  /* background: #f6f6f6; */
  max-height: 240px;
  min-height: 140px;
}
.social-icon-wrap ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0;
  padding-left: 0;
}
.social-icon-wrap li {
  list-style: none;
}
.event-social-icon-wrap a img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f8f9fa;
  padding: 4px;
  transition: box-shadow 0.2s;
}
.social-icon-wrap a img:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 767.98px) {
  .award-listing {
    padding: 0.75rem;
    border-radius: 0.75rem;
  }
  .press-image {
    padding: 6px;
    border-radius: 0.5rem;
  }
  .press-image img {
    max-height: 160px;
    min-height: 80px;
  }
  .social-icon-wrap a img {
    width: 32px;
    height: 32px;
    padding: 2px;
  }
}

/* Schemes card styles */
.scheme-card {
  border-radius: 1rem;
  background: #f8f9fa;
  transition: box-shadow 0.2s;
}
.scheme-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
}
.scheme-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
}
@media (max-width: 767.98px) {
  .scheme-card {
    border-radius: 0.75rem;
    padding: 0.75rem;
  }
  .scheme-download-btn {
    font-size: 0.98rem;
    padding: 0.5em 1em;
  }
}

/* SVG Map Styling */
path, .area {
  cursor: pointer;
  transition: fill 0.2s ease;
}

path:hover, .area:hover {
  fill: #ffdb69 !important;
}

/* Reading Mode and Accessibility Improvements */
.content-text {
  line-height: 1.6;
  font-size: 1rem;
}

.content-text p {
  margin-bottom: 1rem;
}

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

.contact-item h4 {
  margin-bottom: 0.5rem;
  color: #333;
}

/* Ensure content is readable in all modes */
@media print {
  .scheme-card,
  .definition-block,
  .award-listing {
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
  
  .content-text {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .scheme-card,
  .definition-block {
    border: 2px solid #000 !important;
  }
  
  .contact-item h4 {
    color: #000 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .scheme-card {
    transition: none !important;
  }
}

/* .footer {
  background-color: #111 !important;
  color: #fff;
} */