/* =========================================
   Common CSS Styles
   ========================================= */

/* =========================================
   Global Styles & Variables
   ========================================= */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --text-color: #2c3e50;
  --light-bg: #f8f9fa;
  --border-radius: 15px;
  --transition-speed: 0.3s;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* =========================================
   Typography
   ========================================= */
.text-gradient {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: auto;
}

/* =========================================
   Employees of the Month Section
   ========================================= */
.emp-testimonials {
  position: relative;
  padding: 40px 0 56px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  background: #fefefe;
}

.emp-testimonials__container {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.emp-testimonials__wrapper {
  position: relative;
  overflow: hidden;
}

.emp-testimonials__track-wrapper {
  overflow: hidden;
  position: relative;
}

.emp-testimonials__track {
  display: flex;
  gap: 48px;
  animation: scrollLeft 25s linear infinite;
  padding: 30px 0;
}

.emp-testimonials__track:hover {
  animation-play-state: paused;
}

.emp-testimonials__slide {
  flex: 0 0 320px;
  height: auto;
  background: #f8fafc;
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08), 0 3px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  padding: 28px 20px 28px 28px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  will-change: transform;
  overflow-wrap: break-word;
  text-align: center;
}

.emp-testimonials__slide:hover {
  transform: scale(1.05);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.12), 0 8px 22px rgba(0, 0, 0, 0.08);
  z-index: 2;
}
.emp-testimonials__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between; /* top image/info and bottom details spaced */
}

.emp-testimonials__ribbon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  color: #3a3a3a;
  display: grid;
  place-items: center;
  z-index: 4;
  box-shadow: 0 8px 24px rgba(255, 204, 51, 0.35);
}

.emp-testimonials__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
  margin-top: 12px;
  min-height: 140px;
}

.emp-testimonials__image {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  background: #f0f4f8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.09);
  margin: 0 auto;
}

.emp-testimonials__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.emp-testimonials__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 110px;
  justify-content: center;
  gap: 15px;
  width: 100%;
}

.emp-testimonials__badge {
  font-weight: 600;
  font-size: 12px;
  color: #1565c0;
  background: #e3f2fd;
  border-radius: 100px;
  padding: 5px 12px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 1px;
  -webkit-user-select: none;
  user-select: none;
  margin: 0 auto;
}

.emp-testimonials__category {
  font-weight: 700;
  font-size: 13px;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.emp-testimonials__name {
  font-weight: 800;
  font-size: 18px;
  color: #222;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.emp-testimonials__details {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  color: #515151;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-top: 16px;
  max-width: 100%;
}

.emp-testimonials__detail {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.emp-testimonials__detail i {
  color: #888;
  font-size: 16px;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive tweaks */
@media (max-width: 1100px) {
  .emp-testimonials__slide {
    flex: 0 0 280px;
    height: 400px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .emp-testimonials__image {
    width: 90px;
    height: 90px;
  }
  .emp-testimonials__name {
    font-size: 18px;
  }
  .emp-testimonials__category {
    font-size: 14px;
  }
  .emp-testimonials__details {
    gap: 18px;
    font-size: 13px;
  }
  .emp-testimonials__badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

@media (max-width: 768px) {
  .emp-testimonials__track {
    gap: 32px;
    animation-duration: 15s;
  }
  .emp-testimonials__slide {
    flex: 0 0 260px;
    height: 380px;
    height: auto; /* let height adjust automatically */
    min-height: 380px; /* minimum height to keep shape */
    padding-bottom: 36px; /* more bottom padding */
  }
  .emp-testimonials__info {
    min-height: auto;
    padding-bottom: 12px;
  }
  .emp-testimonials__name {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .emp-testimonials__category {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .emp-testimonials__details {
    font-size: 13px;
    gap: 18px;
    margin-top: 14px;
  }
}

@media (max-width: 500px) {
  .emp-testimonials__track {
    gap: 24px;
    animation-duration: 12s;
  }
  .emp-testimonials__slide {
    flex: 0 0 240px;
    height: 350px;
  }
  .emp-testimonials__details {
    gap: 14px;
    font-size: 12px;
  }
}

/* =========================================
   Responsive Styles
   ========================================= */
@media (max-width: 768px) {
  .emp-testimonials__image img {
    width: 140px;
    height: 140px;
  }

  .emp-testimonials__name {
    font-size: 1.5rem;
  }

  .emp-testimonials__nav {
    width: 35px;
    height: 35px;
    opacity: 1;
  }
}

/* project.html Button Styling start */
#resetMapView {
  background-color: #f8f9fa; /* Light background initially */
  color: #ebb506;
  padding: 8px 15px; /* Rectangular button with larger padding */
  border: 1px solid #ebb506; /* Border to define the button */
  font-size: 1rem;
  border-radius: 3px; /* Slightly rounded corners for a modern look */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align icon to the left */
  transition: all 0.2s ease;
}

/* FontAwesome icon styling */
#resetMapView .fas {
  margin-right: 10px; /* Space between icon and text */
}

/* Button Hover Effect */
#resetMapView:hover {
  background-color: #ebb506; /* Dark background on hover */
  color: white;
  border-color: #ebb506; /* Dark border on hover */
  transform: scale(1); /* Slight scale on hover */
}

#resetMapView:focus {
  outline: none;
}
/* project.html Button Styling end */

/* directory  Styling start */
.table-heading {
  background-color: #ebb506 !important; /* Ensures your color is applied */
  color: white !important; /* Ensures text remains white */
  font-size: 0.8rem !important; /* Mobile-first font size */
  padding: 10px 5px !important; /* Adds consistent padding */
  font-weight: bold !important; /* Ensures bold text */
  text-align: center !important; /* Centers the text */
}
.text-muted {
  --tblr-text-opacity: 1;
  color: rgba(var(--tblr-muted-rgb), var(--tblr-text-opacity)) !important;
}

@media (min-width: 768px) {
  .table-heading {
    font-size: 1rem !important; /* Larger font size for tablets */
  }
}

@media (min-width: 1024px) {
  .table-heading {
    font-size: 1.2rem !important; /* Larger font size for desktops */
  }
}

/* directory  Styling start */

/* infrastructure  Styling start */
/* Add this CSS to your stylesheet */
.row-equal-height {
  display: flex;
  flex-wrap: wrap;
}

.col-equal-height {
  display: flex;
  flex-direction: column;
}

.col-equal-height .card {
  flex-grow: 1;
}

/* infrastructure  Styling start */

/* overview.html start */
/* overview.html Mobile-first approach: Make image take full width on mobile and place it above text */
@media (max-width: 767.98px) {
  .row-0 {
    display: flex;
    flex-direction: column;
  }

  .row-0 .col-3 {
    order: -1; /* Move the image above the text */
    width: 100%; /* Make the image take full width */
  }

  .row-0 .col-3 img {
    width: 100%;
    height: auto; /* Maintain the aspect ratio of the image */
    object-fit: cover;
  }
}

/* overview.html end */

/* waterresources.html start
  /* Add this CSS to your stylesheet */
.row-equal-height {
  display: flex;
  flex-wrap: wrap;
}

.col-equal-height {
  display: flex;
  flex-direction: column;
}

.col-equal-height .card {
  flex-grow: 1;
}

/* waterresources.html end


/* power.html start
  /* Add this CSS to your stylesheet */
.row-equal-height {
  display: flex;
  flex-wrap: wrap;
}

.col-equal-height {
  display: flex;
  flex-direction: column;
}

.col-equal-height .card {
  flex-grow: 1;
}
/* power.html end


  /*** Hindi Pages ***/

/* hindi_infrastructure start
  /* Add this CSS to your stylesheet */
.row-equal-height {
  display: flex;
  flex-wrap: wrap;
}

.col-equal-height {
  display: flex;
  flex-direction: column;
}

.col-equal-height .card {
  flex-grow: 1;
}
/* hindi_infrastructure end


 /* hindi_management start*/

.row-equal-height {
  display: flex;
  flex-wrap: wrap;
}

.col-equal-height {
  display: flex;
  flex-direction: column;
}

.col-equal-height .card {
  flex-grow: 1;
}
/* Ensure the card text wraps properly on smaller screens */
.text-wrap {
  text-wrap: auto;
}
/* hindi_management end*/

/* hindi_overview start*/
/* Mobile-first approach: Make image take full width on mobile and place it above text */
@media (max-width: 767.98px) {
  .row-0 {
    display: flex;
    flex-direction: column;
  }

  .row-0 .col-3 {
    order: -1; /* Move the image above the text */
    width: 100%; /* Make the image take full width */
  }

  .row-0 .col-3 img {
    width: 100%;
    height: auto; /* Maintain the aspect ratio of the image */
    object-fit: cover;
  }
}

/* hindi_overview end */

/* hindi_power start */
/* Add this CSS to your stylesheet */
.row-equal-height {
  display: flex;
  flex-wrap: wrap;
}

.col-equal-height {
  display: flex;
  flex-direction: column;
}

.col-equal-height .card {
  flex-grow: 1;
}
/* hindi_power end */

/* hindi_waterresources start */
/* Add this CSS to your stylesheet */
.row-equal-height {
  display: flex;
  flex-wrap: wrap;
}

.col-equal-height {
  display: flex;
  flex-direction: column;
}

.col-equal-height .card {
  flex-grow: 1;
}
/* hindi_waterresources end */

/* masters */
/* tender_detail.html start */
.alert {
  transition: opacity 0.6s ease;
}
#resultSection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#resultMessage {
  flex-grow: 1; /* Allows the message to take up available space */
}
/* tender_detail.html end */

/* Management page css */
.row-equal-height {
  display: flex;
  flex-wrap: wrap;
}

.col-equal-height {
  display: flex;
  flex-direction: column;
}

.col-equal-height .card {
  flex-grow: 1;
}

/* Ensure the card text wraps properly on smaller screens */
.text-wrap {
  text-wrap: auto;
}

/* new one  */
.carousel-inner {
  transition: transform 0.6s ease-in-out;
}
.carousel-item {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
.carousel-item.active {
  opacity: 1;
}
.card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Maps in project html Button Styling */
#resetMapView {
  background-color: #f8f9fa; /* Light background initially */
  color: #ebb506;
  padding: 8px 15px; /* Rectangular button with larger padding */
  border: 1px solid #ebb506; /* Border to define the button */
  font-size: 1rem;
  border-radius: 3px; /* Slightly rounded corners for a modern look */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align icon to the left */
  transition: all 0.2s ease;
}

/* FontAwesome icon styling */
#resetMapView .fas {
  margin-right: 10px; /* Space between icon and text */
}

/* Button Hover Effect */
#resetMapView:hover {
  background-color: #ebb506; /* Dark background on hover */
  color: white;
  border-color: #ebb506; /* Dark border on hover */
  transform: scale(1); /* Slight scale on hover */
}

#resetMapView:focus {
  outline: none;
}

/* master pages css */
.flag-grad-border {
  background-image: linear-gradient(90deg, #f09e4b, #e1dcd7, #e0e0e0, #d3dad2, #298921);
  border-top: 5px transparent;
  height: 5px;
}

/* Hide native cursor */
/* .cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: rgba(49, 149, 243, 0.8);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 50ms ease, background 50ms ease, border 50ms ease, box-shadow 50ms ease;
  will-change: transform;
  z-index: 2147483647;
  box-shadow: 0 0 6px rgba(0, 191, 165, 0.4);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
} */

/* Hover effect – glassy bubble with transparency */
.dot-hovered {
  width: 30px;
  height: 30px;
  background: rgba(0, 89, 191, 0.15); /* Transparent fill */
  border: 1.5px solid rgba(0, 191, 165, 0.6);
  box-shadow: 1 1 10px rgba(0, 191, 165, 0.35);
  -webkit-backdrop-filter: blur(0.5px);
  backdrop-filter: blur(0.5px); /* glass effect */
}

/* Apply Now Button style for carrer page */
.action-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding-left: 10px;
}

.button {
  position: relative;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  color: #ffffff;
}

.btn-effect-7 {
  background: linear-gradient(135deg, #003366, #007bff);
  color: #ffffff;
  border: 2px solid #00bfff;
  box-shadow: 0 0 4px rgba(0, 191, 255, 0.4);
}

.btn-effect-7:hover {
  animation: lightning 1.2s infinite ease-in-out;
  background: linear-gradient(135deg, #004080, #00aaff);
}

@keyframes lightning {
  0%,
  100% {
    box-shadow: 0 0 4px rgba(0, 102, 204, 0.7), 0 0 6px rgba(0, 191, 255, 0.5); /* subtle double glow */
  }
  25% {
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.9), 0 0 18px rgba(0, 204, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 14px rgba(0, 191, 255, 1), 0 0 25px rgba(0, 229, 255, 0.8), inset 0 0 4px rgba(0, 204, 255, 0.5);
  }
  75% {
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.9), 0 0 20px rgba(0, 204, 255, 0.7);
  }
}

.label-text {
  font-weight: 600;
  font-size: 16px;
  color: #003366;
}

/* =========================================
   Accessibility Styles
   ========================================= */

.kingster-top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Accessibility Controls */
.accessibility-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accessibility-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 32px;
  min-width: 32px;
  white-space: nowrap;
  overflow: hidden;
}

/* Specific widths for different buttons */
#decreaseTextBtn {
  width: 36px;
}

#defaultTextBtn {
  width: 36px;
}

#increaseTextBtn {
  width: 36px;
}

#contrastToggleBtn {
  width: auto;
  min-width: 36px;
  padding: 4px 12px;
}

#contrastToggleBtn span {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 500;
}

.accessibility-btn:hover {
  background: #f5f5f5;
}

.accessibility-btn.active {
  background: #e0e0e0;
}

.accessibility-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.accessibility-btn span {
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  padding: 0 2px;
}

/* High Contrast Mode */
.contrast-wrapper.contrast-view {
  background-color: #000000;
  color: #ffffff;
}

.contrast-wrapper.contrast-view .section-background,
.contrast-wrapper.contrast-view .kingster-top-bar,
.contrast-wrapper.contrast-view .kingster-body-wrapper,
.contrast-wrapper.contrast-view .kingster-footer-wrapper {
  background-color: #000000;
  color: #ffffff;
}

.contrast-wrapper.contrast-view a {
  color: #ffff00;
}

.contrast-wrapper.contrast-view input,
.contrast-wrapper.contrast-view select,
.contrast-wrapper.contrast-view textarea,
.contrast-wrapper.contrast-view button {
  background-color: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

/* Text Size Classes */
.text-small {
  font-size: 14px;
}

.text-default {
  font-size: 16px;
}

.text-large {
  font-size: 18px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .accessibility-btn {
    height: 28px;
    min-width: 28px;
    padding: 3px 6px;
  }

  #decreaseTextBtn {
    width: 32px;
  }

  #defaultTextBtn {
    width: 32px;
  }

  #increaseTextBtn {
    width: 32px;
  }

  #contrastToggleBtn {
    padding: 3px 8px;
  }

  .accessibility-btn svg {
    width: 14px;
    height: 14px;
  }

  .accessibility-btn span {
    font-size: 12px;
    padding: 0 1px;
  }
}

/* last updated section style  */

.last-updated-pill {
  display: inline-block;
  white-space: nowrap;
  padding: 15px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 400;
  background-color: #616b7957;
  color: #fff;
}
