/* Style for the popup */
#popup {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 52.5%;
    left: 50%;
    width: 100%;
    height: 90vh;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
    flex-direction: column;
}

#popup1,
#popup2,
#popup3,
#popup4,
#popupStep {
    display: none;
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 52.5%;
    left: 50%;
    width: 90%;
    max-width: 1600px;
    height: 90vh;
    max-height: 800px;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.popup-content {
    height: 70vh;
    width: 900px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* better for scrolling */
    border-radius: 4px;
    border: 2px solid #ccc;
    gap: 0.7em;

    overflow-y: auto;     /* enables vertical scroll */
    overflow-x: hidden;   /* prevents sideways scroll */
}

.content1,
.content3,
.content5 {
    min-height: 650px; /* use min-height instead of height */
    display: flex;
    justify-content: left;
}

.content2,
.content4,
.content6 {
    min-height: 650px; /* use min-height instead of height */
    display: flex;
    justify-content: right;
}

/* optional: make images responsive so they don’t overflow */
.imageStep {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.imageStep {
    width: 56vw;
    height: 100%;
}

/* Style to overlay the background when the popup is active */
#overlay,
#overlay1,
#overlay2,
#overlay3,
#overlay4,
#overlayStep {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.dl {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    top: 10px;
    right: 40px;
    cursor: pointer;
}

i {
    width: 20px;
    color: #fff;
}

/* Style for the close button */
#close-btn {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.imgWrap {
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.img-fluid1 {
    height: 15vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2vh;
}

.epayButton {
  width: 1253px;
  display: flex;
  margin: auto;
  margin-bottom: 1vh;
  justify-content: center;
  gap: 1em;
}

.epButon {
  padding: 5px;
  width: 150px;
  background-color: rgba(0, 89, 179, 1);
  color: #fff;
  text-align: center;
  border-radius: 4px;
  border: 2px solid white;
  cursor: pointer;
}

.epStep {
  padding: 5px;
  width: 150px;
  background-color: rgba(0, 89, 179, 1);
  color: #fff;
  text-align: center;
  border-radius: 4px;
  border: 2px solid white;
  cursor: pointer;
}

.epRow1 {
    margin: 0px auto;
    padding: 12px 15vw;
    column-count: 2;
    column-gap: 38px;
}
.epRow1 p {
    font-size: 2.3vh;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 22px;
}

.imgWrap1 {
    width: 90%;
    height: 80%;
    overflow-y: scroll;
}

.image1 {
    width: 100%;
    height: 1300px;
    transition: transform 0.2s ease;
    cursor: grab;
}

.image1:active {
    cursor: grabbing;
}

.image {
    width: 90%;
    height: 90%;
}


/* MAIN WRAPPER */
.wrapper {
  width: 97vw;
  height: 82vh;
  margin: auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  margin-top: 20px;
}

/* TOP BLUE STRIP */
.topBar {
  height: 16px;
  background: linear-gradient(to right, #274c77, #4f7cac);
}

/* CONTENT GRID */
.content {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
}

/* LEFT PANEL */
.leftPanel {
  padding: 40px 50px;
  background-image: url("../image/isep.png"); /* change path */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 83vh;
}

/* HEADER */
.headerRow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.headerRow img {
  width: 95px;
}

.headerText h1 {
  font-size: 30px;
  font-weight: 700;
  color: #1f2d3d;
}

.headerText h2 {
  font-size: 26px;
  font-weight: 700;
  color: #1f2d3d;
}

.headerText span {
  font-size: 15px;
  color: #444;
}

/* DESCRIPTION */
.description {
  font-size: 15px;
  line-height: 1.6;
  color: #000000;
  max-width: 650px;
  margin-bottom: 25px;
  text-align: justify;
  hyphens: auto;          
  word-break: break-word;
  margin-top: 10px;
}

/* FEATURES LIST */
.features {
  list-style: none;
  margin-bottom: 25px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 10px;
}


/* FOOTER TEXT */
.footerNote {
  font-size: 15px;
  color: #000000;
  margin-bottom: 25px;
}

/* OFFICE HOURS */
.officeHours {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 30px;
  padding: 14px 22px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  font-size: 15px;
}

/* RIGHT PANEL */
.rightPanel {
  background: #f4f6f9;
  padding: 40px 30px;
}

/* ENTIRE QUICK ACCESS CARD */
.quickAccess {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  margin-top: -30px;
  background: #f4f6f9; /* body background */
  height: 79vh;
}

/* HEADER WITH BACKGROUND IMAGE */
.quickAccessHeader {
  background-image: url('../image/access.png');
  background-size: cover;
  background-position: center 38%; /* moves the image down */
  padding: 40px 15px;
}

.quickAccessHeader h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* BODY OF QUICK ACCESS */
.quickAccessBody {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ACCESS ITEMS */
.accessItem {
  background: #fff;
  color: #1f2d3d;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-decoration: none;
  transition: transform 0.2s;
}

.accessItem:hover {
  transform: translateY(-2px);
}

.accessLeft {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iconBox {
  width: 42px;
  height: 42px;
  background: #e8f0fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.accessText strong {
  display: block;
  font-size: 15px;
}

.accessText span {
  font-size: 13px;
  color: #666;
}

.arrow {
  font-size: 20px;
  color: #3a6ea5;
}

/* TAGLINE */
.tagline {
  margin: 20px;
  text-align: center;
  font-size: 15px;
  color: #6b7c93;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .content {
    grid-template-columns: 1fr;
  }

  .leftPanel, .rightPanel {
    padding: 30px;
  }
}

/*home page */

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Top Bar */
.top-bar {
  background: #0a2f6b;
  color: white;
  padding: 12px 0;
}

.top-bar a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Main Content */
.main-content {
  display: flex;
  gap: 15px;
  margin: 1px auto;
  flex-direction: row;
  width: 97vw;
  margin-top: 20px;
}

/* Payment Section */
.payment-section {
  flex: 2.2;
  background-image: url("../image/index.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10px;
  border-radius: 10px;
  color: #1a1a1a;
  height: 85vh;
}


.payment-section h1 {
  margin-bottom: 5px;
}

.payment-container {
  display: flex;
  gap: 20px;
  align-items: center;  /* <-- centers video vertically */
  height: 68vh;
}

/* Left side */
.payment-left {
  flex: 2.2;             /* bigger portion */
  max-width: 65%;         /* optional to limit width */
}

/* Right side (video) */
.payment-right {
  flex: 1;                
  max-width: 50%;         
  min-width: 30vw;       
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 2vh; /* adjust this value */
}


.payment-right video {
  width: 100%;             
  height: auto;            
  max-height: 350px;       
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background: #000;
}

.accessDropdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* center dropdown */
}

/* Card wrapper */
.accessItem {
  width: 100%;
  max-width: 420px; /* optional width for center alignment */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
}

/* Dropdown list container */
.dropdownMenu {
  display: none;
  width: 100%;
  max-width: 420px; /* match card width */
  flex-direction: column;
  gap: 8px; /* space between boxes */
  margin-top: 5px; /* spacing below card */
}

/* Each option box */
.dropdownMenu a {
  display: flex;
  align-items: center;
  gap: 10px; /* space between icon and text */
  padding: 12px 16px;
  font-size: 14px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: background 0.2s ease;
}

.dropdownMenu a:hover {
  background: #f2f2f2;
}

.dropdownIcon {
  font-size: 16px;
}

/* Show dropdown */
.accessDropdown.active .dropdownMenu {
  display: flex;
}

/* Arrow rotation */
.accessDropdown.active .arrow {
  transform: rotate(180deg);
}

.aboutSection{
    margin: 0px auto;
    padding: 0px 14vw;
    column-count: 1;
    column-gap: 38px;
}

.aboutSection p {
    font-size: 2vh;
    line-height: 1.7;
    text-align: justify;
    margin-bottom: 22px;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
  .payment-container {
    flex-direction: column;
    align-items: flex-start;  /* stack top-to-bottom */
  }

  .payment-left,
  .payment-right {
    max-width: 100%;
  }

  .payment-right video {
    max-height: 250px;
  }
}


.subtitle {
  margin-bottom: 20px;
}

.btn-dpwh {
  background: linear-gradient(
    to bottom,
    #f4f6f8 0%,
    #e6e9ee 45%,
    #cfd5dd 100%
  );
  color: #1e3a8a;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;

  border: 1px solid #b8bec6;
  border-bottom: 2px solid #aeb4bc;
  border-radius: 999px;

  padding: 10px 30px;
  cursor: pointer;

  text-shadow: 0 1px 0 rgba(255,255,255,0.6);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 2px 4px rgba(0,0,0,0.2);

  transition: all 0.2s ease;
  margin-bottom: 25px;
}


.arta-card {
  max-width: 100%;
  background: #cdcdcd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  height: 58vh;
  display: flex;
  width: 35vw;
}

/* HEADER */
.arta-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111;
}

.arta-header h3 span {
  margin-right: 1.3vw;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 24px;
}

.subtitle {
  margin: 4px 0 15px;
  font-size: 14px;
  color: #000000;
}

/* BODY LAYOUT */
.arta-body {
  display: flex;
  gap: 12px;
}

/* LEFT CONTENT */
.arta-left {
  flex: 1;
}

/* BUTTON */
.btn-view {
  background: linear-gradient(to bottom, #ffd65a, #f4b400);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;

  font-size: 13px;
  font-weight: 700;
  color: #333;

  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.btn-view:hover {
  filter: brightness(1.05);
}

/* RIGHT PREVIEW */
.arta-right {
  width: 14vw;
}

.pdf-preview {
  width: 17.22vw;
  height: 48vh;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f5f5f5;
  position: relative;
  margin-left: 2vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🔥 KEY FIX */
.pdf-thumb {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;   /* prevents zoom/cropping */
  object-position: center;
  user-select: none;
  pointer-events: none;
}



/* iframe itself */
.pdf-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
  pointer-events: none;
}

/* 🔥 force-hide scrollbar (Chrome / Edge / Safari) */
.pdf-preview iframe::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* 🔥 Firefox */
.pdf-preview iframe {
  scrollbar-width: none;
}

.banks {
  display: flex;
  gap: 40px;
}

.banks ul {
  list-style: none;
}

.banks li {
  margin-bottom: 8px;
}

/* Sidebar */
.sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 82vh;
}

.card {
  background: #d7d6d6;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-secondary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
}

/* Footer */
footer {
  background: #0a2f6b;
  color: white;
  padding: 10px 0;
  margin-top: 1%;
}

.footer-content {
  display: flex;
  font-size: 14px;
  gap: 20px;
  margin-left: 1%;
}

/* Card */
.track-doc-card {
  background: #cdcdcd;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  height: 28vh;
}

/* Title */
.track-title {
  text-align: left;
  color: #0f172a;
  margin-bottom: 15px;
}

/* Bottom layout */
.track-body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.blueCircleLink img {
  margin-left: 26px;
  width: 64%;        /* adjust size here */
  height: auto;
  cursor: pointer;
}

/* Optional hover effect */
.blueCircleLink img:hover {
  transform: scale(1.05);
  transition: 0.2s ease;
}

/* Right content */
.track-content p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 10px;
  line-height: 1.4;
  text-align: justify;
  text-justify: inter-word;
}

/* Button */
.track-btn {
  background: linear-gradient(to right, #1e40af, #2563eb);
  color: white;
  border: none;
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

.track-btn:hover {
  opacity: 0.9;
}

/* Modal popup */
.popup {
  display: none;               /* hidden by default */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32.5vw;
  max-width: 98vw;
  height: 90%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  z-index: 999;
  overflow: hidden;
}

.popup::-webkit-scrollbar {
  width: 1px;
}


/* Overlay behind modal */
#overlayPdf {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}

/* Close button */
.close-btn {
  position: absolute;
  top: -4px;
  right: 15px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  z-index: 1000;
}

.popup-content {
  width: 100%;
  height: 100%;
  padding: 0;
}

@media (max-width: 768px) {

  /* 🚫 Kill fake extra height */
  body,
  html {
    height: auto;
    overflow-x: hidden;
  }

  /* MAIN WRAPPER */
  .main-content {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 10px;
  }

  /* LEFT SECTION */
  .payment-section {
    height: auto !important;
    min-height: unset !important;
    padding: 30px 20px;
  }

  /* SIDEBAR */
  .sidebar {
    height: auto !important;
  }

  /* CARDS */
  .track-doc-card,
  .arta-card {
    height: auto !important;
    min-height: unset !important;
  }

  /* ARTA BODY FIX */
  .arta-body {
    flex-direction: column;
  }

  .arta-right,
  .pdf-preview {
    width: 100%;
  }

  /* BANK LIST */
  .banks {
    flex-direction: column;
    gap: 10px;
  }

  /* 🚨 IMPORTANT: remove vw traps */
  .wrapper,
  .orangeBox2,
  .headerWrap {
    width: 100%;
    max-width: 100%;
  }

}
