
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  background-color: burlywood;
  #background-image: url("img/mhv.jpg");
  #background-repeat: no-repeat;
  #background-position: center,;
  #background-attachment: fixed;
  #background-size: cover;
}


/*
==================================================================
 2. WHATSAPP FLOATING BUTTON
==================================================================
*/

/* Fixed bottom-right (bottom/right = distance from edge), green pill shape, z-index keeps it on top */
.float {
  position: fixed;
  width: auto;
  height: 40px;
  bottom: 25px;
  right: 20px;
  background-color: #25d366;
  color: #fff;

  border-radius: 50px;
  text-align: center;
  font-size: 24px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}

/* Button grows 20% on mouse-over */
.float:hover {
  transform: scale(1.2)
}

/* Spacing around the WhatsApp icon + text. NOTE: "margin-top:;" is empty (ignored) */
.my-float {
  margin-top:;
  padding: 7px;
}


/*
==================================================================
 3. NAVIGATION BAR  (dark bar with dropdown menus)
==================================================================
*/

/* Navbar container: dark grey (#333); overflow hidden clears the floated items */
.navbar {
  overflow: hidden;
  background-color: #333;
}

/* Top-level navbar links (HOME): float left, white text, no underline */
.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  margin-top: auto;
}

/* .dropdown = one menu item (STN, STM, MUX ...). Floats left so items sit side by side */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Menu button text style (STN., STM, MUX ...): white text, no border, inherits navbar colour */
.dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Hover colour for navbar links and menu buttons (change "red" to restyle) */
.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: red;
}

/* MOBILE (screen <= 700px): smaller menu button text */
@media only screen and (max-width:700px) {
  .dropdown .dropbtn {
    font-size: 14px;
  }
}

/* Dropdown panel (left-aligned menus). Hidden by default, appears on hover (see .dropdown:hover below) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;

  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown panel: black text, block, left aligned */
.dropdown-content a {
  float: none;
  color: black;
  font-size: 16px;

  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Highlight colour of a dropdown link on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* MOBILE: smaller dropdown link text */
@media only screen and (max-width:700px) {
  .dropdown-content a {
    font-size: 14px;
  }
}

/* SHOW the dropdown panel when mouse is over the menu */
.dropdown:hover .dropdown-content {
  display: block;
}

/* .dropdown-content1 = dropdown panel for the OTHERS menu (right side). margin-left pulls it back so it stays on screen */
.dropdown-content1 {
  display: none;
  position: absolute;
  margin-left: -50px;

  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* MOBILE: shift OTHERS panel a bit more to the left */
@media only screen and (max-width:700px) {
  .dropdown-content1 {
    margin-left: -58px;
  }
}

/* Links inside OTHERS panel: right aligned text */
.dropdown-content1 a {
  float: none;
  color: black;
  font-size: 16px;

  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: right;
}

/* Hover colour for OTHERS links */
.dropdown-content1 a:hover {
  background-color: #ddd;
}

/* SHOW the OTHERS panel on hover */
.dropdown:hover .dropdown-content1 {
  display: block;
}

/* MOBILE: smaller OTHERS link text */
@media only screen and (max-width:700px) {
  .dropdown-content1 a {
    font-size: 14px;
  }
}


/*
 FLY-OUT SUB-MENU #1 : "Cable/Joints Map"  (opens to the RIGHT)
 .submenu       = wrapper (position:relative so the list can be placed beside it)
 .submenu__list = the fly-out box (hidden until hover)
*/
.submenu {
  position: relative;
}

/* Show fly-out when mouse is over the wrapper */
.submenu:hover .submenu__list {
  display: block;
}

/* Fly-out box: placed at left:100% (right of parent), white background */
.submenu__list {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;

  background-color: #fff;
  min-width: max-content;
  text-align: left;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}


/*
 FLY-OUT SUB-MENU #2 : "MORE INFO" inside OTHERS  (opens to the LEFT)
 Same idea as .submenu but uses right:100% so it opens leftwards
*/
.submenu1 {
  position: relative;
}

/* Show fly-out on hover */
.submenu1:hover .submenu__list1 {
  display: block;
}

/* Fly-out box placed at right:100% (left of parent), text right aligned */
.submenu__list1 {
  display: none;
  position: absolute;
  top: 0;
  right: 100%;

  background-color: #fff;
  min-width: max-content;
  text-align: right;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* MOBILE: hide the HOME button (class="home") to save space */
@media only screen and (max-width:700px) {
  .home {
    display: none;
  }
}


/*
 ACCORDION SUB-MENU : "Cable Route Plan" inside CABLE
 Opens/closes on CLICK (not hover). Controlled by js/script.js
 (SCRIPT 1), which changes max-height of .submenu__list2
*/
.submenu2 {
  position: relative;
}

/* Accordion list box (its max-height is animated by JS; inline style in index.html starts it at 0) */
.submenu__list2 {
  background-color: #fff;
  min-width: max-content;
  text-align-last: center;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}


/*
==================================================================
 4. MAP IMAGE
==================================================================
 .map : section map image, 69% width, centred (margins 15% each side)
*/
.map {
  text-align: center;
  width: 69%;
  height: auto;
  border: 1px solid black;
  padding: 0;
  margin-top: 2.5%;
  margin-left: 15%;
  margin-right: 15%;
  margin-bottom: 2.5%
}

/* MOBILE: map becomes 90% width */
@media only screen and (max-width:700px) {
  .map {
    text-align: center;
    width: 90%;
    height: auto;
    border: 1px solid black;
    padding: 0;
    margin: 5%;
  }
}

/* .map1 : same as .map but fixed height (680px) - for iframe/embedded maps. NOTE: not used on this page */
.map1 {
  text-align: center;
  width: 69%;
  height: 680px;
  border: 1px solid black;
  padding: 0;
  margin-top: 2.5%;
  margin-left: 15%;
  margin-right: 15%;
  margin-bottom: 2.5%
}

/* MOBILE: .map1 height reduced to 400px */
@media only screen and (max-width:700px) {
  .map1 {
    text-align: center;
    width: 90%;
    height: 400px;
    border: 1px solid black;
    padding: 0;
    margin: 5%;
  }
}


/*
==================================================================
 5. TEAM MEMBERS STRIP
==================================================================
 .srn / .srn .sr  : older bordered card style. NOTE: not used on this page
                    (the page uses .srn1 / .sr1 below)
*/
.srn {
  width: 70%;
  height: inherit;
  background-color:;
  margin-left: 15%;
  margin-right: 15%;
  margin-top: auto;
  margin-bottom: 5px;;
  text-align: center;
}

.srn .sr {
  width: 16.9%;
  height: auto;
  display: inline-block;
  border: 1px solid black;
  padding: 0;
  text-align: center;
}

/* .srimg : base style of staff photo (overridden by ".srn1 .sr1 .srimg" below) */
.srimg {
  display: block;
  width: 70%;
  height: auto;
  padding: 2%;
  padding-left: 15%;
}

/* .srn1 : ACTIVE team container, 70% width, centred */
.srn1 {
  width: 70%;
  height: inherit;

  margin-left: 15%;
  margin-right: 15%;
  margin-top: auto;

  text-align: center;
}

/* .sr1 : ONE staff card. 16.9% width x 5 cards = one row. If you add a 6th member, reduce this width (e.g. 14%) */
.srn1 .sr1 {
  width: 16.9%;
  height: auto;
  display: inline-block;
  border: none;
  padding: 0;
  text-align: center;
}

/* Staff photo inside the card: 60% of card width, centred by padding-left */
.srn1 .sr1 .srimg {
  display: block;
  width: 60%;
  height: auto;
  padding: 0%;
  padding-left: 20%;
}


/*
==================================================================
 6. FOOTER  (id="footerpad")
==================================================================
*/
#footerpad {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin: 0;
  background-color: #2c3e50;
  color: #fff;
}


/*
==================================================================
 7. HEADER TITLE
==================================================================
 .title1    : big page title (size in vw = scales with screen width)
 NOTE: "padding top" (missing hyphen) and "margin: 20px,0,0,0" (commas)
       are invalid and ignored by the browser
*/
.title1 {
  display: inline-block;
  font-size: 4.2vw;
  font-family: Georgia, serif;

  font-weight: bold;
  color: #333;
  padding top: 5px;
  background-color: ;

  margin: 20px,0,0,0;
}

/* .subtitle1 : smaller line under the title. NOTE: "padding: 0,1px" has a comma, so it is ignored */
.subtitle1 {
  display: inline-block;
  font-size: 3vw;
  color: #333;
  padding: 0,1px;
  background-color:;
}


/*
==================================================================
 8. STAFF LIST (floating button + popup box)
==================================================================
 Currently UNUSED: the staff HTML (button + #staffBox) was removed from
 index.html. Keep these rules only if you plan to bring the staff list back.
*/

/* Staff Button */
.staff-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 100;
}

.staff-float:hover {
  transform: scale(1.2)
}

/* Staff Box */
.staff-box {
  display: none;
  position: fixed;
  bottom: 130px;
  right: 20px;
  width: 260px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
  padding: 10px;
  z-index: 101;
}

/* Staff Item */
.staff-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.staff-name {
  font-size: 14px;
}

/* ICON COLORS */
.call-icon {
  color: #007bff; /* Blue */
  margin-left: 10px;
}

.whatsapp-icon {
  color: #25d366; /* Green */
  margin-left: 10px;
}

/* Call / WhatsApp icon links created by JS (loadButtons) inside each staff row */
.action-buttons a {
  text-decoration: none;
  font-size: 16px;
}
