* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Header styles */
header {
  background: #4A148C;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo {
  height: 60px;
  border-radius: 8px;
}

h1 {
  flex: 1;
  text-align: center;
  font-size: 1.5em;
  font-weight: 700;
  color: #ffffff;
}

/* Navigation styles */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s;
  padding: 10px 15px;
  display: block;
}

nav ul li:hover > a {
  color: #80cbc4;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

nav ul li:hover .dropdown {
  display: block;
}

.dropdown li a {
  color: #1a1a1a;
  padding: 10px 20px;
  transition: background 0.3s;
}

.dropdown li a:hover {
  background-color: #f0f0f0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #1a1a1a;
  line-height: 1.6;
  background-image: url(images/background.gif);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content styles */
.content {
  text-align: center;
  padding: 80px 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  margin-bottom: 40px;
}

.content h2 {
  font-size: 2.5rem;
  color: #0f172a;
  margin-bottom: 10px;
}

.content p {
  font-size: 1.2rem;
  color: #4A148C;
}

.projects {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.projects h2 {
    color: #4A148C;
    font-size: 2em;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.index1 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

.index {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 270px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.index:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.index h3 {
    color: #4A148C;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.index img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.index p {
    color: #444;
    font-size: 0.95em;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

.Completed-Projects {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Completed-Projects h2 {
    font-size: 1.3em;
    margin-bottom: 12px;
}

.Completed-Projects img {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 10px;
    background: #f4f4f4;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.Current-Projects {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Current-Projects h2 {
    font-size: 1.3em;
    margin-bottom: 12px;
}

.Current-Projects img {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 10px;
    background: #f4f4f4;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.Current-Projects, .Completed-Projects {
  text-align: center;
}

.NBPOL img,
.BGH img,
.BUIN img,
.BDH img,
.MHC img,
.AMB img,
.VTK img,
.MNS img {
    width: 320px;        
    height: 220px;       
    object-fit: cover; 
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 10px;
    background: #f4f4f4;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Projects section */
.projects {
    width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-position: center;
    position: relative;
    width: 100%;
    min-height: 500px; /* Adjust as needed for your content */
}

.projects h2 {
    margin-bottom: 20px; /* Add space below the heading */
    text-align: center; /* Center the heading */
    font-size: 2em; /* Adjust font size as needed */
}

.slideshow-container {
    position: relative;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    max-width: 900px;
    height: 520px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px auto;
    background: #f4f4f4;
    display: block;
}

.prev, .next {
    font-size: 2.2em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(76, 21, 140, 0.7);
    border: none;
    outline: none;
    cursor: pointer;
    color: #fff;
    position: absolute;
    top: 50%; /* Move slightly lower if needed */
    transform: translateY(-50%);
    z-index: 10;
    transition: background 0.2s;
    margin-top: 0;
    margin: 50px;
}

.prev {
    left: 8px; /* Reduced from 48px or 32px to bring closer */
    border-radius: 90%;
}

.next {
    right: 8px; /* Reduced from 48px or 32px to bring closer */
    border-radius: 90%;
}

.prev:hover, .next:hover {
    background: #4A148C;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Responsive styles */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  header {
    flex-direction: column;
    align-items: center;
  }
  h1 {
    margin: 10px 0;
  }
  .index1 {
    flex-direction: column;
    align-items: center;
  }
}
.PDC, .about, .goals, .dept, .contacts, .construction, .Earthmoving, .civil-engineering {
    max-width: 1100px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: justify;
}

.PDC:hover, .about:hover, .goals:hover, .dept:hover, .Earthmoving:hover, .construction:hover, .civil-engineering:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.PDC h2, .about h2, .goals h3, .dept h3, .values h3, .contacts h3, .construction h2, .Earthmoving h2, .civil-engineering h2 {
    color: #4A148C;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.about p, .goals ul, .dept p, .content p, .construction p, .Earthmoving p {
    font-size: 1.1em;
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
}

.goals ul.a, .values ul.a {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 10px;
}

.goals ul.a li, .values ul.a li {
    margin-bottom: 10px;
}

.values {
    margin-top: 30px;
}

.contacts address {
    font-style: normal;
    color: #333;
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 1.1em;
}

.contacts ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 18px;
}

.contacts ul li {
    margin-bottom: 10px;
    font-size: 1.08em;
    color: #444;
}

.contacts ul li strong {
    color: #000000;
    font-weight: 600;
}

.contacts a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contacts a:hover {
    color: #00aeff;
    text-decoration: underline;
}

.contacts span[aria-label] {
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .PDC, .about, .goals, .dept, .construction, .contacts, .Earthmoving, .civil-engineering {
        margin: 20px;
        padding: 20px;
    }
    .PDC h2, .about h2, .goals h3, .dept h3, .construction h2, .contacts h3, .Earthmoving h2, .civil-engineering h2 {
        font-size: 1.5em;
    }
}


/* Footer */
footer {
  background: #059105;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}