/* ksksksNAVIGATION -starttttttttttt*/
* {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  box-sizing: border-box;
}

body {
  margin: 100px;
  height: 100vh;
  background: #fffefe;
  font-family: 'Arial', sans-serif;
  display: grid;
}

.web {
  width: 100%;
  background-color: rgb(238, 238, 238);
  background-position: left;
}

.menu {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  padding-left: 50px;
  background-color: rgb(238, 238, 238);

}

.logo {
  cursor: pointer;
  width: 400px;
  height: 120px;
  display: block;
  /* Ensure it's treated as a block-level element */
  background-color: rgb(238, 238, 238);
}

nav {
  /*navigation*/
  width: 100%;
  margin: auto;
  display: flex;
  line-height: 1px;
  position: fixed;
  top: 0;
  font-family: 'Arial', sans-serif;
  font-weight: bolder;
  font-size: medium;
  background: #f7f7f7;
  z-index: 1;
  border-bottom: 1px solid #f7f7f7;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  background-color: rgb(238, 238, 238);

}

nav ul {
  list-style: none;
  display: flex;
  margin-left: auto;
  margin-right: 5.7%;
  font-size: 1em;
  background-color: rgb(238, 238, 238);
}

nav ul li {
  position: relative;
  /* Ensure dropdown positioning */
  margin: 0 30px;
  background-color: rgb(238, 238, 238);
  z-index: 1;
  /* Ensure main navigation items are behind submenu */
  padding: 45px 15px;
  /* Adjust padding for main navigation items */
  display: block;
  height: 120px;
}

nav ul li a {
  color: rgb(55, 55, 59);
  text-decoration: none;
  display: block;
  /* Make the entire area clickable */
  background-color: rgb(238, 238, 238);
}

nav ul li a:hover {
  text-decoration: underline;
  color: rgb(2, 0, 143);
}


/* NAVIGATION -endddddddddddd*/



/* Submenu styles */
nav ul li .submenu {
  display: none;
  position: absolute;
  background-color: white;
  z-index: 2;
  /* Ensure submenu appears above main navigation items */
  width: 200px;
  /* Example width; adjust based on your content */
  margin-top: 50px;
  /* Adjust as needed for spacing */
  padding: 0;
  /* Reset padding for submenu */
  left: 0;
  /* Align submenu to the left */
}

nav ul li:hover .submenu {
  display: block;
}

nav ul li .submenu li {
  text-align: left;
  /* Ensure submenu items are aligned to the left */
  background-color: rgb(232, 232, 232);
  margin: 0;
}

nav ul li .submenu a {
  text-decoration: none;
  margin: 0;
  background-color: rgb(232, 232, 232);

}

nav ul li .submenu a:hover {
  text-decoration: underline;
  margin: 0;
}







/* Toggle Button */
.toggle_btn {
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgb(232, 232, 232);
}

.toggle_btn:hover {
  background-color: #e0e0e0;
  /* Background color on hover */
}

@media (max-width: 768px) {
  .toggle_btn {
    display: flex;
    /* Show toggle button on smaller screens */
  }

  nav ul {
    display: none;
    /* Hide the menu initially */
    flex-direction: column;
    /* Stack the menu items vertically */
    width: 100%;
    /* Full width */
    background-color: rgb(232, 232, 232);
    position: absolute;
    top: 60px;
    /* Position below the navbar */
    left: 0;
    padding: 0;
  }

  nav ul.show {
    display: flex;
    /* Show the menu when the toggle button is clicked */
  }

  nav ul li {
    width: 100%;
    text-align: center;
    margin: 0;
    /* Remove margin for list items */
    padding: 15px 0;
    /* Add padding for better spacing */
    position: relative;
    /* Ensure dropdown positioning */
  }

  nav ul li .submenu {
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
    width: 100%;
    /* Adjust width as needed */
    top: 100%;
    left: 0;
  }

  nav ul li:hover .submenu {
    display: block;
  }

  nav ul li .submenu li {
    margin: 0;
  }

  nav ul li .submenu a {
    padding: 10px 20px;
    display: block;
    color: rgb(55, 55, 59);
    text-decoration: none;
  }

  nav ul li .submenu a:hover {
    background-color: #f2f2f2;
  }
}


/* HEADER -starttttttttttt*/
#organization-section h6 {
  /*PICTURE HEADER*/
  font-size: 4em;
  margin-top: 9%;
  margin-bottom: 20px;
  margin-left: -100px;
  color: black;
  text-align: left;
  background-image: url('/pictures/Polar\ Viking\ 3-used.jpg');
  /* Update with the correct path to your image */
  width: 105.4vw;
  /* Adjusted width to cover the full width of the viewport */
  line-height: 100%;
  /* Adjusted line height */
  background-size: cover;
  background-position: left center;
  color: white;
  /* Ensures text is readable over the background */
  display: inline-block;
  padding: 150px;
  /* Added padding for better readability */
  box-sizing: border-box;
  /* Ensures padding is included in the width calculation */
  background-color: rgb(238, 238, 238);
}

/* HEADER -endddddddddddd*/














/*organization*/
:root {
  --level-3: #d8e1f3;
  --level-4: #d8e1f3;
  --black: rgb(110, 110, 110);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ol {
  list-style: none;
}

body {
  /*dating 50px 0 100px*/
  margin: 1px 0 5px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: small;
  position: sticky;

}

.container {
  left: 20%;
  /*alignment ng buong org*/
  max-width: 50%;
  margin: -1%;
  position: relative;
  margin-top: 6%;
  margin-bottom: 10%;
  padding-left: 8%;
}

.rectangle {
  position: relative;
  margin-top: 5%;
  margin-bottom: 4%;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.container p

/*for paragraphs which is yung mga positions of each employee*/
  {
  position: relative;
  border: 3px solid #2a21ad;
  margin-right: 90%;
  text-align: center;
  font-family: 'Arial', sans-serif;
  /*ayaw gumana nito*************** okay na ata*/
}

/* LEVEL-1 STYLES */
#organization-julito-quiban-jr .level-1 {
  width: 50%;
  margin: 0 auto 40px;
  background: var(--level-1);
}

.level-1 {
  /*sir quiban container/rectangle*/
  left: 37.3%;
  top: 100%;
  width: 200px;
  height: 60px;
  font-size: 15px;
  background: #d8e1f3;

}

.level-1::before {
  /*line connects squiban to sglenn*/
  content: "";
  position: absolute;
  top: 100%;
  left: 49.5%;
  transform: translateX(-50%);
  width: 3px;
  height: 118px;
  background: var(--black);
}

/* LEVEL-2 STYLES --------------- SIR TITO*/
.level-2 {
  /*sir tito container/rectangle */
  right: -11.9%;
  top: 20%;
  width: 150px;
  height: 50px;
  font-size: 12px;
  background: #d8e1f3;

}

.level-2::before {
  /*horizontal*/
  content: "";
  position: absolute;
  top: 25px;
  left: 100%;
  width: 75%;
  height: 3px;
  background: var(--black);
}

/* LEVEL-3 STYLES ------------ SIR GLENN*/
.level-3 {
  /*sir glenn container/rectangle*/
  left: 41%;
  top: 100%;
  width: 150px;
  height: 50px;
  font-size: 12px;
  background: #d8e1f3;

}

.level-3::after {
  /*vertical*/
  content: "";
  position: absolute;
  top: 100%;
  /*position to up or down nung line*/
  left: 50%;
  /*position to left or right nung line*/
  width: 3px;
  /*line na nagdudugtong kay sglenn to its subsections*/
  height: 18px;
  background: var(--black);
}

/* LEVEL-4 STYLES ------------- UNDER NI SIR GLENN-mleonie */
.level-4 {
  /*m leonie container/rectangle*/
  right: 26%;
  bottom: -1.2%;
  width: 160px;
  height: 50px;
  font-size: 12px;
  background: #d8e1f3;

}

.level-4-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}


.level-4::after {
  /*vertical*/
  content: "";
  position: absolute;
  bottom: 98%;
  /*position to up or down nung line*/
  left: 49.5%;
  /*position to left or right nung line*/
  width: 3px;
  /*line na nagdudugtong kay sglenn to its subsections*/
  height: 32px;
  background: var(--black);
}

.level-4::before {
  /*line from mleonie to sjun & mcams*/
  content: "";
  position: absolute;
  top: 100%;
  /*placing to up or down nung line*/
  left: 50%;
  /*placing nung line*/
  transform: translateX(-50%);
  width: 1.7%;
  /*yunh line sa baba ng M leonie, s tito, s julius*/
  height: 149px;
  /*haba nung line*/
  background: var(--black);
}

.level-3::before {
  /*horizontal-sir glenn to its subsectors*/
  content: "";
  position: absolute;
  bottom: -20px;
  left: -192.5%;
  width: 487.5%;
  height: 3px;
  background: var(--black);
}

/* LEVEL-12 STYLES ---------- sir tito */
.level-12 {
  /*sir tito container/rectangle*/
  right: 96.5%;
  top: 4%;
  height: 50px;
  width: 150px;
  font-size: 12px;
  background: #d8e1f3;

}

.level-12::after {
  /*vertical*/
  content: "";
  position: absolute;
  top: -53%;
  /*position to up or down nung line*/
  left: 49%;
  /*position to left or right nung line*/
  width: 3px;
  /*line na nagdudugtong kay sglenn to its subsections*/
  height: 28px;
  background: var(--black);
}

/* LEVEL-13 STYLES ---------- sir julius */
.level-13 {
  /*sir julius container/rectangle*/
  right: -10%;
  top: -2%;
  width: 180px;
  height: 50px;
  font-size: 12px;
  background: #d8e1f3;

}

.level-13::before {
  /*vertical line sjulius*/
  content: "";
  position: absolute;
  bottom: 100%;
  /*position to up or down nung line*/
  left: 49.5%;
  /*position to left or right nung line*/
  width: 3px;
  height: 29px;
  background: var(--black);
}

.level-13::after {
  /*horizontal line sjulius to its subsectors*/
  content: "";
  position: absolute;
  bottom: -95%;
  /*position to up or down nung line*/
  right: -6%;
  /*position to left or right nung line*/
  width: 408px;
  height: 3px;
  background: var(--black);
}

.level-4-wrapper::before {
  /*vertical line sjulius to its subsectors*/
  content: "";
  position: absolute;
  top: 17%;
  /*placing to up or down nung line*/
  left: 110%;
  /*placing nung linefrom left to right*/
  transform: translateX(-50%);
  width: 3px;
  height: 52px;
  /*haba nung line*/
  background: var(--black);
}

/* LEVEL-5 STYLES ---------- UNDER NI M LEONIE sjun & mcams*/
.level-5 {
  /*container/rectangle*/
  right: 63%;
  top: 50%;
  width: 120px;
  height: 60px;
  font-size: 12px;
}

.level-5-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.level-5::after {
  /*line sa taas ni sjun & mcams*/
  content: "";
  position: absolute;
  bottom: 81%;
  right: 46%;
  transform: translate(-100%, -50%);
  width: 3px;
  height: 22px;
  background: var(--black);
}

.level-12::before {
  /*horizontal line sa taas ni sjun &mcams*/
  content: "";
  position: absolute;
  top: 99px;
  left: -264%;
  width: 138%;
  height: 3px;
  background: var(--black);
}

.level-5 {
  /*horizontal spacing between sjun & mcams*/
  margin-left: -60px;
  background: var(--level-3);
}

/* LEVEL-6 STYLES -----------UNDER NI S JULIUS*/
.level-6 {
  /*container/rectangle*/
  right: 183%;
  top: 45%;
  width: 100px;
  height: 60px;
  font-size: 12px;
}

.level-6-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.level-6 {
  /*horizontal spacing between subsections*/
  margin-left: 35px;
  background: var(--level-3);
}

.level-6 {
  font-weight: small;
  background: var(--level-4);
}

.level-6::after {
  /*line sa taas ng under ni sjulius*/
  content: "";
  position: absolute;
  bottom: 79%;
  right: 45%;
  transform: translate(-100%, -50%);
  width: 3px;
  height: 22px;
  background: var(--black);
}


/* LEVEL-7 STYLES ---------- UNDER NI M LEONIE accountants*/
.level-7 {
  /*container/rectangle*/
  right: 230%;
  top: 60%;
  width: 87px;
  height: 75px;
  font-size: 12px;
}

.level-7-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.level-7-wrapper ol+li+li,
ol {
  /*distance between all lines and containers*/
  position: relative;
  margin-top: 5px;
}

.level-7::after {
  /*line sa taas ng accountantss*/
  content: "";
  position: absolute;
  bottom: 83%;
  right: 44%;
  transform: translate(-100%, -50%);
  width: 3px;
  height: 24px;
  background: var(--black);
}

.level-7 {
  /*horizontal spacing between accountants*/
  margin-left: 15px;
  background: var(--level-3);
}

.level-1-wrapper::before {
  /*horizontal line sa taas ng accountantss*/
  content: "";
  position: absolute;
  top: 69%;
  /*placing to up or down nung line*/
  left: -3.5%;
  /*placing nung linefrom left to right*/
  transform: translateX(-50%);
  width: 48.4%;
  /*yunh line sa baba ng M leonie, s tito, s julius*/
  height: 3px;
  /*haba nung line*/
  background: var(--black);
}

/* LEVEL-8 STYLES ---------- mjo*/
.level-8 {
  /*container/rectangle*/
  left: 82.5%;
  bottom: 45%;
  width: 100px;
  height: 80px;
  font-size: 12px;
}

.level-8-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

.level-8-wrapper ol+li+li,
ol {
  /*distance between all lines and containers*/
  position: relative;
  margin-top: 20px;
}

.level-8::after {
  /*line sa taas ng accountantss*/
  content: "";
  position: absolute;
  bottom: 72%;
  right: 46%;
  transform: translate(-100%, -50%);
  width: 3px;
  height: 44px;
  background: var(--black);
}

.level-8 {
  /*horizontal spacing between accountants*/
  margin-left: 10px;
  background: var(--level-3);
}

.level-8::before {
  /*line sa baba ni mjo*/
  content: "";
  position: absolute;
  top: 118%;
  right: 46%;
  transform: translate(-100%, -50%);
  width: 3px;
  height: 28px;
  background: var(--black);
}


/* LEVEL-9 STYLES ---------- mhearty*/
.level-9 {
  /*container/rectangle*/
  right: -40%;
  bottom: 33%;
  width: 105px;
  height: 80px;
  font-size: 12px;
}

.level-9-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

.level-9-wrapper ol+li+li,
ol {
  /*distance between all lines and containers*/
  position: relative;
  margin-top: 20px;
}

.level-9::after {
  /*line sa taas ng accountantss*/
  content: "";
  position: absolute;
  bottom: 73%;
  right: 46%;
  transform: translate(-100%, -50%);
  width: 3px;
  height: 44.4px;
  background: var(--black);
}

.level-9 {
  /*horizontal spacing between accountants*/
  margin-left: 10px;
  background: var(--level-3);
}

.level-9::before {
  /*line sa baba ng accountantss*/
  content: "";
  position: absolute;
  top: 118%;
  right: 46%;
  transform: translate(-100%, -50%);
  width: 3px;
  height: 28px;
  background: var(--black);
}

/* LEVEL-10 STYLES ---------- sdobs*/
.level-10 {
  /*container/rectangle*/
  right: 32%;
  bottom: -62%;
  width: 150px;
  height: 50px;
  font-size: 12px;
  background: #d8e1f3;
}

.level-10-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

.level-10-wrapper ol+li+li,
ol {
  /*distance between all lines and containers*/
  position: relative;
  margin-top: 20px;
}

.level-10::after {
  /*vertical line sa taas ni sdobs*/
  content: "";
  position: absolute;
  bottom: 75%;
  right: 47%;
  transform: translate(-100%, -50%);
  width: 3px;
  height: 24px;
  background: var(--black);
}

.level-10::before {
  /*horizontal line sa taas ni sdobs*/
  content: "";
  position: absolute;
  bottom: 140%;
  left: 98%;
  transform: translate(-100%, -50%);
  width: 137px;
  height: 3px;
  background: var(--black);
}


.level-1:hover,
.level-2:hover,
.level-3:hover,
.level-4:hover,
.level-5:hover,
.level-6:hover,
.level-7:hover,
.level-8:hover,
.level-9:hover,
.level-10:hover,
.level-12:hover,
.level-13:hover,
.level-14:hover {
  background: rgb(2, 0, 107);
  text-decoration: none;
  color: white;
}














/*HOVERINGGGG for organization--startttttttt*/

.rectangle {
  position: relative;
}

.rectangle .hover-text {
  visibility: hidden;
  width: 150px;
  background-color: rgb(2, 0, 107);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  /* Position the hover text above the rectangle */
  left: 50%;
  margin-left: -75px;
  /* Use half of the width (200/2 = 100), to center the hover text */
  opacity: 0;
  transition: opacity 0.3s;
}

.rectangle .hover-text::after {
  /*arrow sa baba ng hover eme*/
  content: "";
  position: absolute;
  top: 100%;
  left: 47%;
  margin-left: 0px;
  border-width: 5px;
  border-style: solid;
  border-color: rgb(0, 0, 0) transparent transparent transparent;
}

.rectangle:hover .hover-text {
  visibility: visible;
  opacity: 1;
}

/*HOVERINGGGG for organization--endddddddddd*/

















/* Footer Section */
#below {
  width: 100%;
  padding-top: 30px;
  padding-bottom: 1px;
  background-color: rgb(238, 238, 238);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 120px;
  background-color: rgb(238, 238, 238);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-left: 100%;
  background-color: rgb(238, 238, 238);
}

.footer-section {
  margin-left: 10px;
  margin-right: 50px;
  background-color: rgb(238, 238, 238);
  cursor: pointer;
  color: black;
}

.footer-section h3 {
  margin-bottom: 40px;
  white-space: nowrap;
  background-color: rgb(238, 238, 238);
  color: black;
}

.footer-section p {
  margin-bottom: 5px;
  white-space: nowrap;
  color: black;
  background-color: rgb(238, 238, 238);
}

.left-img {
  width: 100%;
  height: 100px;
  margin-top: 50px;
  margin-left: 50px;
  cursor: pointer;
}



/* Apply background color to all anchor elements */
.footer-section a {
  text-decoration: none;
  background-color: rgb(238, 238, 238);
  color: black;
  padding: 5px 0px;
}


.footer-section a:hover {
  text-decoration: underline;
  background-color: rgb(238, 238, 238);
}

/* Copyright Section */
#Copyright .wrapper1 {
  padding-left: 550px;
  background-color: rgb(238, 238, 238);
}

#Copyright p {
  background-color: rgb(238, 238, 238);
}

#Copyright .fab.fa-facebook.fa-2x {
  background-color: rgb(238, 238, 238);
  padding-left: 410px;
  margin-bottom: 10px;
}

/* Media query for responsive alignment */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer .footer-content {
    padding-left: 0;
    padding-top: 20px;
    /* Adjust as needed */
  }

  .footer-section {
    margin-right: 0;
  }

  .footer-section h3 {
    margin-bottom: 20px;
    /* Adjust as needed */
  }

  #Copyright {
    text-align: left;
    /* Align left on smaller screens */
    padding: 20px;
    /* Add padding for spacing */
    padding-left: 20px;
    /* Adjust left padding for smaller screens */
  }

  .fab.fa-facebook.fa-2x {
    margin-left: auto;
    /* Align to the right on smaller screens */
    margin-right: auto;
    /* Align to the left on smaller screens */
    padding-left: 0;
    /* Remove left padding on smaller screens */
    display: block;
    /* Display as block element */
    margin-top: 10px;
    /* Adjust spacing between icon and text */
    text-align: center;
    /* Center align icon */
  }
}

@media (min-width: 769px) {

  /* Larger screens */
  .fab.fa-facebook.fa-2x {
    margin-left: 250px;
    /* Adjust spacing between icon and text */
    padding-left: 200px;
    /* Add padding to separate from the line */
  }
}