@import url('./variable.css');


#sign_up1 .popup-body {
  max-height: 500px;
}

.signup-link {
  margin-block: 10px;
}

section.about,
section.statistics,
section.services,
section.map-section {
  padding: 40px 0;
}

.statistics {
  background-color: #F8F8F8;
}

footer {
  background-color: #F8F8F8;
}

.top-actions_anchor {
  display: block;
}

section.about {
  background: url(../images/about-bg.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  .section-heading {
    color: #fff;
  }

  .subtitle {
    color: #eee;
  }
}

section.services {
  background-color: #fff;
}

.section-heading {
  font-weight: 700;
  font-size: 2.8rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.announcement-label::after {
  content: "";
  clip-path: polygon(0 0, 0 100%, 50% 50%);
  width: 55px;
  height: 100%;
  position: absolute;
  right: -55px;
  background: var(--primary-color);
}

.announcement-box a::before {
  content: "\f0da";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  font-size: 10px;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.hero img {
  width: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 30%;
  left: 10%;
  color: white;
}

/* ================= HERO OWL NAV ================= */

.hero-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
  /* allow clicks only on buttons */
  z-index: 5;
}

/* Buttons */
.hero-carousel .owl-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #ffffff !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s ease;
}

/* Icons */
.hero-carousel .owl-nav button i {
  font-size: 16px;
}

/* Hover */
.hero-carousel .owl-nav button:hover {
  background: rgba(0, 0, 0, 0.75) !important;
}

/* Remove focus outline */
.hero-carousel .owl-nav button:focus {
  outline: none;
}

/* ================= HERO OWL DOTS ================= */

.hero-carousel .owl-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  background: #00000080;
  padding: 5px;
  border-radius: 10px;
}

/* Base dot */
.hero-carousel .owl-dot {
  width: 18px;
  height: 6px;
  background: #ffffff50 !important;
  border-radius: 10px;
  transition: background 0.2s ease;
  padding: 0;
  border: none;
}

/* Hide default span */
.hero-carousel .owl-dot span {
  display: none;
}

/* Active dot */
.hero-carousel .owl-dot.active {
  background: #ffffff !important;
}

/* Hover (subtle, no animation) */
.hero-carousel .owl-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ================= ANNOUNCEMENT BAR ================= */

.announcement-bar {
  background: #EDFDFE !important;
  border-top: 1px solid #dcdcdc;
  border-bottom: 1px solid #dcdcdc;
}

.announcement-container {
  margin: 0 auto;
  height: 100%;
  display: flex;
  gap: 12px;

}

/* Left label */
.announcement-label {
  background: #2f2f6f;
  color: #ffffff;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 6px;
  margin-right: 10px;
  white-space: nowrap;
  position: relative;
}

/* .announcement-label::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border: 25px solid transparent;
  border-left-color: var(--primary-color);
  position: absolute;
  right: -41px;
} */

/* Slider wrapper */
.announcement-slider {
  padding-left: 32px;
  flex: 1;
  overflow: hidden;
}

.announcement-item {
  color: #333;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right actions */
.announcement-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
}

/* Arrow buttons */
.announcement-actions button {
  /* width: 26px;
  height: 26px;
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
  color: #333;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center; */
}

.control-btn {
  display: flex;
  gap: 6px;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 4px;
  padding: 6px 8px;
}

.control-btn button {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* View all link */
.ann-view-all {
  border: 1px solid var(--secondary-color);
  border-radius: 4px;
  color: var(--text-body);
  padding: 4px 8px;
  padding-left: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.ann-view-all:hover {
  color: #fff;
  text-decoration: underline;
  background-color: var(--secondary-color);
}

.announcement_popup .popup-head {
  background: var(--secondary-color);
}

.announcement_popup .popup-head h2 {
  color: #fff;
}

.announcement_popup .popup-head .close {
  color: #fff;
}

.announcement_popup .popup-body {
  min-height: 200px;
  background: #f0f0f0;
}

.announcement-box {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  color: #323232;
  border-left: 5px solid transparent;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 10px;
}


.announcement-box p {
  margin-bottom: 0;
  font-weight: 600;
}

.announcement-box:hover {
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.ministers-section {
  background-color: #fff;
  padding: 20px 0;
  border-bottom: 2px solid #00000014;
}

.minister-card {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}

.minister-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

@media screen and (max-width: 538px) {

  .minister-cards {
    flex-direction: column;
    gap: 10px;
  }

}

.minister-card img {
  width: 100px;
  border-radius: 50%;
  height: 100px;
  object-fit: cover;
  border: 1px solid #eee;
  padding: 5px;
}

.minister-card:last-child {
  flex-direction: row-reverse;
  text-align: right;
}

.tender-card ul {
  list-style: none;
}

.tender-card ul a {
  text-decoration: none;
  color: var(--text-body);
  /* margin-bottom: 8px; */
  display: block;
  /* background: #f9f9f9; */
  border-bottom: 1px solid #ccc;
  padding: 12px;
  /* border-radius: 6px; */
}

.tender-card ul li:nth-child(even) a,
.announcement-box a {
  background-color: #f9f9f9;
}

.tender-card ul a:hover {
  background-color: var(--secondary-color) !important;
  color: #fff;
}

.card-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px;
  border-radius: 6px 6px 0 0;
}

.card-header h5 {
  margin: 0;
}

.card-header i {
  margin-right: 6px;
}

.card {
  background: #fff;
  border-radius: 6px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.1);
}

.card-body {
  border: 1px solid #eee;
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  flex: 1;
}

.stats-card .card-body {
  padding: 10px 20px;
}

.stats-card .tab-header {
  margin-bottom: 10px;
}

.stats-card,
.tender-card {
  min-height: 634px;
  margin-bottom: 10px;
}


/* ================= CHART HEADER ================= */

.chart-card {
  border-radius: 6px;
  padding: 0;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f3f3f8;
  margin-bottom: 20px;
}

.chart-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #000;
}

.chart-title span {
  font-size: 13px;
  color: #666;
}

.chart-metric {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  /* matches screenshot purple */
}

.about {
  text-align: center;
  padding: 40px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.about-box {
  background-color: #fff;
  border: 1px solid #eeeeee;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 6px;
}

.about-box p {
  margin-bottom: 0;
}

.about-box i {
  font-size: 2.6rem;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 10px;
}

.about .about-box:nth-child(1) i {
  color: #564FFD;
  background-color: #564FFD1A;
}

.about .about-box:nth-child(2) i {
  color: #289BA0;
  background-color: #289BA01A;
}

.about .about-box:nth-child(3) i {
  color: #FF6636;
  background-color: #FFEEE8;
}

.about .about-box:nth-child(4) i {
  color: #23BD33;
  background-color: #E1F7E3;
}

.map-section {
  text-align: center;
  padding: 30px 0;
  background: #F8F8F8;
}

.map-img {
  width: 70%;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.service-box {
  background: #EBEBFF;
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 190px;
  height: 190px;
}

.service-box span {
  height: 45px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

#eservices {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

#eservices .service-box img {
  height: 100px;
  width: 100px;
  background-color: #fff;
  padding: 10px;
  border-radius: 6px;
  object-fit: contain;
}

.map-section svg {
  width: 100%;
  height: 100%;
  max-width: 992px;
}

.auth-form {
  max-width: 420px;
  margin: auto;
  padding: 0 24px;
  background: #fff;
  border-radius: 10px;
}

.auth-title {
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
}

.form-row {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input-wrap input:focus+.input-icon,
.input-wrap input:focus+.input-btn {
  color: #2e2f6f;
}

.input {
  width: 100%;
  padding: 10px 38px 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
}

.input:focus {
  outline: none;
  border-color: #2e2f6f;
  box-shadow: 0 0 0 1px #2e2f6f;
}

.input-icon,
.input-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.icon-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.form-error {
  font-size: var(--fs-small);
  color: #d32f2f;
  margin-top: 4px;
}

.hidden {
  display: none;
}

.captcha-img img {
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.captcha-img a {
  display: none;
}

.captcha-grid {
  display: flex;
  gap: 12px;
  align-items: center;
}

.otp-grid .otp-wrap {
  display: flex;
  gap: 10px;
}

#otpRequire {
  display: none;
}

.otp-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.otp-timer {
  color: #555;
}

.align-right {
  text-align: right;
}

.link {
  color: #2e2f6f;
  text-decoration: none;
}

/* #sign_up2 {
  z-index: 1004 !important;
}

#sign_up2_overlay {
  display: none;
  width: 100%;
  height: 100%;
  background: #0000008a;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1003 !important;
} */

.sign-boxes:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transition: box-shadow 0.3s ease-in-out;
}

.sign-boxes {
  background: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 0px 2px 0px #acacac;
  border-radius: 8px;
  color: var(--primary-color);
  height: 75px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sign-boxes span {
  color: inherit;
  font-size: 1.8rem;
  font-weight: bold;
}

.services .tab-panel {
  position: relative;
}

.gov-service-carousel.owl-carousel {
  position: static !important;
}

.gov-service-item img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: auto;
}

.gov-service-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  /* allow clicks only on buttons */
}

/* Nav buttons */
.gov-service-carousel .owl-nav button {
  pointer-events: all;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6) !important;
  color: #fff !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

/* Icons */
.gov-service-carousel .owl-nav button i {
  font-size: 16px;
}

/* Hover effect */
.gov-service-carousel .owl-nav button:hover {
  background: #000 !important;
  transform: scale(1.1);
}

/* Left / Right spacing */
.gov-service-carousel .owl-nav .owl-prev {
  margin-left: -15px;
}

.gov-service-carousel .owl-nav .owl-next {
  margin-right: -15px;
}

/* Disabled state */
.gov-service-carousel .owl-nav button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- <=1200px ---------- */
@media (max-width: 1200px) {

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 992px) {

  .tender-card,
  .stats-card {
    min-height: auto;
  }

  .hero-overlay {
    top: 25%;
    left: 5%;
  }

  /* Announcement bar */
  .announcement-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .announcement-actions {
    padding: 4px 0;
  }

  /* Services */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Map */
  .map-img {
    width: 90%;
  }
}

@media (max-width: 576px) {

  .hero-overlay {
    position: static;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    margin: -80px 10px 0;
    border-radius: 6px;
  }


  /* Announcement */
  .announcement-slider,
  .control-btn {
    display: none !important;
  }

  .announcement-label {
    justify-content: center;
  }

  .announcement-actions {
    margin-left: auto;
    margin-right: 10px;
  }

  .announcement-item {
    white-space: normal;
  }

  .service-box {
    width: 100%;
    height: auto;
    min-height: 160px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Services */
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.maintainance_popup {
  .popup-body p {
    margin: 0 0 15px;
  }

  .popup-body .alert-box {
    background: #fff8e5;
    border-left: 4px solid #f0ad4e;
    padding: 15px;
    margin: 18px 0;
    border-radius: 4px;
    color: #555;
  }

  .popup-body strong {
    color: #222;
  }

  .popup-body .mb-0 {
    margin-bottom: 0;
  }

  .popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    background: #f8f9fa;
    border-radius: 0 0 6px 6px;
  }

  .popup-footer .dont-show {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
  }

  .popup-footer .dont-show input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
  }

  .popup-footer .btn {
    min-width: 90px;
    padding: 8px 20px;
    font-weight: 600;
  }
}