/* =========================================================
   MERGED CSS (Safe Merge)
   - Base preserved from File #1 to avoid breaking pages
   - Added form styles + login-warning from File #2 (SCOPED)
   - Removed duplicates where identical
   ========================================================= */

/* CSS Document */
html{
  height: 100%;
  width: 100%;
  margin: 0;
}

body{
  width: 100%;
  height: 100%;
  margin: 0;
  background-image:url(../images/nav-back1.gif);
  background-repeat:repeat-x;
  font-family:Verdana,Arial, Helvetica, sans-serif;
  font-size:13px;
  line-height:18px;
  color:#474747;
}

/* ===== Header (kept from File #1 to avoid breaking layout) ===== */
header {
  width: 600px;
  height: 40px;
  margin: 5px 0 0 300px;
  padding: 0;
  color: #666666;
  font-size: 20px;
}

/* OPTIONAL: If you ever want the “big pink header” from File #2,
   use <header class="site-header"> in HTML */
header.site-header{
  height: 140px;
  width: 1100px;
  margin: 0;
  padding: 0;
  text-align: left;
  background: #e03e52;
  color: #FFFFFF;
}
header.site-header h1{
  padding: 1em;
  margin: 0;
}

/* OPTIONAL footer style (only affects <footer>) */
footer{
  clear: both;
  height: 3em;
  margin: 0;
  padding: 1em;
  text-align: center;
  background: #e03e52;
  color: #FFFFFF;
}

/* ===== Main container (kept from File #1) ===== */
#main {
  width: 100%;
  height: 100%;
  min-height: 800px;
  margin: 0;
  padding: 0;
  background: #c8ced2;
}

/* NOTE: File #2 had flex layout. To avoid breaking pages, it is OPTIONAL:
   Add class="layout-flex" on body to enable it when you want.
   Example: <body class="layout-flex"> */
body.layout-flex #main{
  display:flex;
  min-height:100vh;
  background:#ffffff;
}

/* ===== Sidebar Navigation (kept from File #1) ===== */
navigation {
  float: left;
  width: 400px;
  height: 100%;
  background: #838383;
}

/* OPTIONAL: File #2 alternative sidebar look (only with body class) */
body.alt-sidebar navigation{
  width: 300px;
  min-height: 100vh;
  background: #7a6855;
}

navigation a {
  color: #FFFFFF;
  text-decoration: none;
}

navigation a:hover {
  color: #e03e52;
  text-decoration: underline;
}

/* OPTIONAL: File #2 hover color (only with body class) */
body.alt-sidebar navigation a:hover{
  color:#f6ad0d;
}

ul.chapters {
  margin-top: 20px;
  margin-left: 20px;
  padding: 0;
  list-style: none;
}

ul.chapters > li {
  margin-bottom: 1em;
}

ul.pages {
  margin-left: 15px;
  padding: 0;
  list-style: none;
  font-weight: normal;
}

/* File #2 additions (safe to keep) */
navigation li{
  font-size: 16px;
  line-height: 1.5em;
}
.selected > a{
  color:#eea633;
  font-style: italic;
}

/* Optional left/right split (from File #2) */
.left-content {
  width:300px;
  float:left;
}
.right-content {
  width:980px;
  float:left;
  margin-left: 20px;
}

/* ===== Page content ===== */
#page {
  float: right;
  width: 900px;
  height: 100%;
  padding-left: 0;
  vertical-align: top;
  background: #ffffff;
}

/* If using flex mode, let #page grow */
body.layout-flex #page{
  float:none;
  flex:1;
}

#page h1 {
  font-size: 16px;
  color: #000000;
  line-height: normal;
}

#page h2 {
  font-size: 14px;
  color: #000000;
  line-height: normal;
}

#page p {
  font-family: "Gill Sans","Gill Sans MT","Myriad Pro","DejaVu Sans Condensed",Helvetica,Arial,sans-serif;
  font-size: 12px;
  color: #000000;
  padding: 0;
  line-height: normal;
}

#page h3 {
  font-size: 14px;
  color: #e03e52;
}

/* global h3 (kept) */
h3{
  color:#c70640;
  font-size:14px;
  font-family:Verdana, Arial, Helvetica, sans-serif;
  padding:0px;
  margin: 8px 0;
}

/* ===== Top Nav Bar ===== */
.nav-bar{
  height:65px;
  width: 100%;
  margin:auto;
}
.nav-bar ul{
  margin:0px;
  padding-top: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
  padding-left: 45px;
  list-style-type:none;
}
.nav-bar ul li{
  height:42px;
  width:auto;
  float:left;
  text-transform:uppercase;
  background-image:url(../images/list-left1.gif);
  background-repeat:no-repeat;
  display:inline;
  padding-left:12px;
  padding-right:12px;
  padding-top:23px;
}
.nav-bar ul li a{
  font-family:Arial, Helvetica, sans-serif;
  font-size:17px;
  color:#595959;
  background-image:url(../images/arrow-list1.gif);
  background-repeat:no-repeat;
  float:left;
  padding-left:20px;
  text-decoration:none;
  font-weight:bold;
  background-position: 6px;
}
.nav-bar ul li a:hover{ text-decoration:underline}
.nav-bar ul li a.current{ text-decoration:underline}

/* Global links (kept from File #2 but does NOT override nav links strongly) */
a {
  color: #E03E52;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.clear{ clear:both }

/* ===== Staff bar ===== */
.nav-barstaff{
  height:65px;
  width: 1300px;
  margin:auto;
}
.nav-barstaff h1{
  all: unset;
  font-family:Arial, Helvetica, sans-serif;
  font-size:30px;
  color:#666666;
  float:left;
  padding-left:20px;
  margin-top: 20px;
  text-decoration:none;
  font-weight:bold;
}

/* ===== Layout blocks ===== */
#content {
  width: 1300px;
  min-height: 800px;
  padding: 0 30px;
  font-family:Arial, Helvetica, sans-serif;
  font-size:20px;
}

#body-back{
  height:auto;
  width: 1300px;
  margin:auto;
  background-image:url(../images/body-back8.jpg);
  background-repeat:no-repeat;
}

#body-back1{
  height:auto;
  width: 1300px;
  margin: 300px 0;
  background-repeat:no-repeat;
}

#header{
  height:193px;
  width: 1300px;
  margin:auto;
}

/* NOTE: kept selector as-is; if you intended h2 inside #staffHeading, use #staffHeading h2 */
#staffHeading.h2{
  all: unset;
  display: block;
  font-size: 24px;
  color: #666666;
  margin: 10px 0;
}

.logo{
  height:126px;
  width:392px;
  float:left;
  font-family:Arial, Helvetica, sans-serif;
  color:#666666;
  font-size:11px;
  padding-left:86px;
  padding-top:67px;
  text-align:right;
}
.logo-right{
  height:118px;
  width:520px;
  float:left;
  padding-top: 75px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 17px;
  color: #8F8F8F;
  line-height: 34px;
}
.logo-right p{
  padding:0px;
  margin: 0 0 0 40px;
}

#header-1{
  height:136px;
  width:914px;
  margin:auto;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 22px;
  color: #FFFFFF;
  padding-top: 7px;
  padding-left: 86px;
}
#header-2{
  height:auto;
  width:914px;
  margin:auto;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 22px;
  color: #FFFFFF;
  padding-top: 7px;
  padding-left: 86px;
}
#header-1 b{ font-size:15px; }
#header-1 p{
  width:421px;
  float:left;
  margin:0px;
  padding:0px;
}

/* ===== Body part blocks ===== */
#body-part{
  height:auto;
  width: 100%;
  margin:auto;
}
#body-part a{ color:#FF6704; }
#body-part p{
  font-family:Verdana, Arial, Helvetica, sans-serif;
  font-size:11px;
  color:#464646;
  padding:0px;
  line-height: 22px;
  margin: 5px 0 15px 0;
}
#body-part-left{
  height:auto;
  width:520px;
  float:left;
  padding-top: 52px;
  padding-left: 86px;
  padding-right: 81px;
}
#body-part-right{
  height:auto;
  width:268px;
  float:left;
  padding-top: 160px;
  padding-right: 45px;
}

.globe{
  height:131px;
  width:123px;
  float:left;
  background-image:url(../images/globe.gif);
  background-repeat:no-repeat;
  margin-right:10px;
  margin-bottom:10px;
}
.latest-work{
  height:auto;
  width:268px;
  float:left;
  background-image: url(../images/latest-work1.gif);
  background-repeat: no-repeat;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-top: 130px;
}

.bottom-strip{
  height:32px;
  width:auto;
  margin:auto;
  background-image:url(../images/bottom-strip2.gif);
  background-repeat:repeat-x;
  padding-top:22px;
}
.bottom-strip p{
  font-family:Verdana, Arial, Helvetica, sans-serif;
  font-size:11px;
  color:#FFFFFF;
  margin:0px;
  width:854px;
  padding: 0 60px 0 86px;
  text-align:right;
}
.bottom-strip p b{ float:left; }
.bottom-strip p a{ color:#FFFFFF; }

.staffarea {
  all: unset;
  margin: 300px 0 0 0;
  padding: 5px;
  font-size: 30px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  text-align: center;
}

/* ===== Tables ===== */
table {
  border-collapse: collapse;
  vertical-align: top;
}
table.list { width: 100%; }
table.list tr td { border: 1px solid #474747; }
table.list tr th {
  border: 1px solid #474747;
  background: #474747;
  color: white;
  text-align: left;
}

/* ===== DL ===== */
dl {
  clear: both;
  overflow: hidden;
  margin: 0.5em 0;
}
dt {
  float: left;
  font-weight: bold;
  width: 125px;
}
dd {
  float: left;
  margin-left: 1em;
}

/* ===== Nav-bar header h1 links ===== */
.nav-bar header h1 a { color: #474747; }
.nav-bar header h1 a:hover { color: #0ea5e9; }
.nav-bar header h1 a:visited { color: #474747; }

/* ===== Errors ===== */
.errors ul li { color:#c70640; }

/* ===== Inner pages ===== */
h5{
  font:15px Tahoma, Arial, Helvetica, sans-serif;
  color:#FF6704;
  font-weight:bold;
  padding:0px 0px 5px 0px;
  border-bottom:1px dotted #FF6704;
  margin:0px 0px 10px 0px;
}
h6{
  font:18px Tahoma, Arial, Helvetica, sans-serif;
  color:#FF6704;
  font-weight:bold;
  padding:0px 0px 5px 0px;
  margin:0px 0px 10px 0px;
}

.aboutus-img{float:right; border:4px solid #FF6704; margin:0 0px 10px 20px;}
.aboutcolumnzone{padding:20px 0px 16px 0px;}
.aboutcolumn1{width:48%; float:left; margin:0px 0px 10px 0px;}
.aboutcolumn2{width:48%; float:right; margin:0px 0px 10px 0px;}
.abouticon{float:left; margin:0px 20px 0px 0px;}
.insidereadmore{padding:10px 0px 10px 0px;}
input.button{color:#fff; background:#333; font:bold 11px Arial, Helvetica, sans-serif; text-decoration:none; padding:10px 10px; margin:0px 5px 5px 0; border:1px solid #FF6704;}
input.button:hover{cursor:pointer; color:#fff; background:#999}
.project-img{float:right; margin-left:20px; border: 6px solid #FF6704;}
.whiteheading{font:30px Myriad Pro, Arial; color:#CBD76B; font-weight:100; padding:0px; margin:25px 0px 20px 0px;}
.ourprojectrow{margin-bottom:20px; border-bottom:1px dotted #FF6704; padding-bottom:10px; padding-right:20px}
.servicecolumnzone{padding:20px 0px 16px 0px;}
.servicecolumn1{width:48%; float:left; margin:0px 0px 10px 0px;}
.servicecolumn2{width:48%; float:right; margin:0px 0px 10px 0px;}
.blog-posted-row{padding:3px;}

/* ===== Profile Popover ===== */
.profile-menu { position: relative; }

.popover {
  position: absolute;
  top: 48px;
  right: 0;
  width: 190px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #374151;
  box-shadow: 0 10px 25px rgba(188, 123, 2, 0.15);
  display: none;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-menu.open .popover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.popover::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 16px;
  width: 14px;
  height: 14px;
  background: #1f2933;
  border-left: 1px solid #374151;
  border-top: 1px solid #374151;
  transform: rotate(45deg);
}

.popover a {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  color: #374151;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.popover a:hover {
  background: #374151;
  color: #ffffff;
}

.popover .divider {
  height: 1px;
  background: #f3f4f6;
  margin: 6px 0;
}

/* ===== Dropdown (User Manual etc.) ===== */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 40px;
  left: 0;
  background: #ffffff;
  min-width: 180px;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: #333;
  text-decoration: none;
}

.dropdown-menu a:hover { background: #f3f3f3; }

.dropdown-menu.show { display: block; }

/* =========================================================
   Form Styles (from File #2) - SCOPED to avoid breaking site
   ========================================================= */
.form-container {
  background: #fff;
  margin-left: auto;
  margin-right: auto;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  width: 550px;
}

/* IMPORTANT: scoped (was global h2 in file #2) */
.form-container h2 {
  text-align: center;
  margin: 0 0 20px;
  color: #333;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.form-group label {
  width: 150px;
  font-weight: bold;
  color: #444;
}

.form-group .note {
  width: 100%;
  margin-left: 150px;
  font-size: 12px;
  color: #888;
  margin-top: -10px;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0,123,255,0.3);
  outline: none;
}

.captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafafa;
  margin-top: 10px;
}

.captcha input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

.captcha span {
  font-size: 14px;
  color: #333;
  user-select: none;
}

/* IMPORTANT: scoped (was global button in file #2) */
.form-container button {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #7a6855;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
.form-container button:hover {
  background: #5e6265d8;
}

.success {
  background: #e6ffed;
  border: 1px solid #b3e6c9;
  padding: 15px;
  margin-bottom: 16px;
  border-radius: 6px;
  color: #2e7d32;
  font-size: 14px;
}

.error,
.success-message {
  background: #ffecec;
  border: 1px solid #f5c2c7;
  padding: 12px 15px;
  margin-bottom: 16px;
  border-radius: 6px;
  color: #b02a37;
  font-size: 14px;
}

.error ul {
  margin: 6px 0 0 16px;
}

/* ===== Login warning (safe class) ===== */
.login-warning {
  max-width: 520px;
  margin: 30px auto;
  padding: 16px 20px;
  background: #fff5f5;
  border-left: 6px solid #d93025;
  color: #b00020;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}
.login-warning strong { font-weight: 700; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
