/* Header */
* {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
}

body {
  height: 100vh;
  background-color: white;
  background-size: cover;
  background-position: center;
  margin: 0; /* Ensure no default body margin */

}

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

nav {
  width: 100%;
  height: 20%;
  margin: auto;
  display: flex;
  line-height: 1px;
  position: fixed;
  top: 0;
  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);    
}

.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; /* Adjusted width */
  height: 120px; /* Adjusted height */
  display: block; /* Ensure it's treated as a block-level element */
  background-color: rgb(238, 238, 238);    
}
nav ul {
  list-style: none;
  display: flex;
  margin-left: auto;
  margin-right: 5%;
  font-size: 1.2em;
  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);
}


/* 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(238, 238, 238);    
  margin: 0;
}

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

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(238, 238, 238);    
}

.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(238, 238, 238);    
      position: absolute;
      top: 100px; /* 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-top: 50px; /* Add padding for better spacing */
      
  }

  nav ul li a {
      width: 100%;
      display: block;
      padding: 10px 0;
  }
}






/* HEADER -starttttttttttt*/
#qualitysystem-section h6 { /*PICTURE HEADER*/
  font-size: 4em;
  margin-top: 7%;
  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*/








.front p { /*quality management style*/
  font-size: 1.2em;
  text-align: center;
}











/*BUSINESS AND CERTIFICATE HOVER EME EME - start*/
.contain { 
  display: flex;
  gap: 20px; 
  justify-content: center;
  align-items: center;
}

.card{
  margin-top: 3%;
  margin-left: 0.5%;
  width: 320px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  border: 8px solid #d4d4d48c;
  position: relative;
}
.ILO > .card{
  margin-top: 3%;
  margin-left: 0.5%;
  width: 500px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 8px solid #d4d4d48c;
  position: relative;
}
.card-body{
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  position: absolute;
  background: #8dcde26b;
  backdrop-filter: blur(5px);
  border-radius: 15px;
  color: #070736;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 1s;
}
.card:hover .card-body{
  left: 0;
}
.card-title{
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 50;
  font-family: "Georgia", serif;
}

.card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
}
/*BUSINESS AND CERTIFICATE HOVER EME EME - end*/

h5 { /*header of each subsection*/
  font-family: 'Arial', sans-serif;
  font-weight: 1000;
  font-size: 25px;
  margin-bottom: 40px;
  text-indent: 3%;
  color: #ffffff;
  width: 100%;
  line-height: 60px;
  text-align: left;
  background: #010192da;
}

h2 { /*header of each subsection*/
  font-family: 'Verdana', sans-serif;
  font-weight: 1000;
  font-size: 25px;
  margin-top: 10%;
  text-indent: 3%;
  color: rgb(255, 255, 255);
  width: 100%;
  line-height: 60px;
  text-align: left;
  background: #010192da;
}
/*BUSINESS AND CERTIFICATE HOVER EME EME - end*/



























/*organization*/
:root {
  --level-3: #f0f5ff;
  --level-4: #f0f5ff;
  --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;
}

.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: #f0f5ff;

}
.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: #f0f5ff;

}

.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: #f0f5ff;

}

.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: #f0f5ff;

} 
.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.8%;
  top: 4%;
  height: 50px;
  width: 150px;
  font-size: 12px;
  background: #f3f7ff;

}
.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: #f3f7ff;

}
.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: -260%;
width: 136%;
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: #f3f7ff;
}
.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*/












/*POLICYYYYYYYYYY-start*/
.uno.body{
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
  }

.cont{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

.uno{
  max-width: 800px;
}
.uno .dos{
  position: relative;
  margin: 10px 20px;
}

.uno .dos .tres{
  position: relative;
  padding: 10px;
  background: #3e4b4e;
  color: #fff;
  cursor: pointer;
}
.uno .dos .tres::before{
  content: '+';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 1em;
}

.uno .dos.active .tres::before{
  content: '-';
}
.tres{
  font-size: 20px;
  text-align: left;
}
.uno .dos .kwatro{
  position: relative;
  background: #fff;
  height: 0;
  overflow: hidden;
  transition: 0.5s;
  overflow: auto;
}
.uno .dos.active .kwatro{
  height: 370px;
  padding: 25px;
}
.uno .dos .cinco{
  position: relative;
  background: #fff;
  height: 0;
  overflow: hidden;
  transition: 0.5s;
  overflow: auto;
}
.uno .dos.active .cinco{
  height: 100px;
  padding: 20px;
}
.uno .dos .nueve{
  position: relative;
  background: #fff;
  height: 0;
  overflow: hidden;
  transition: 0.5s;
  overflow: auto;
}
.uno .dos.active .nueve{
  height: 495px;
  padding: 20px;
}

.syete p{  /*accounting under*/
  text-align: left;
  font-size: 18px;
  }
  .sais p{ /*accounting top*/
  text-align: center;
  font-size: 20px;
  }
  .otso p{
    text-align: center;
    font-size: 20px;
    }
  
            /*POLICYYYYYYYYYY--enddddddddd*/














   /* 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 */
      }
  }


