header {
  background: url('images/header-background.jpg') no-repeat center center;
  background-size: cover; /* Cover the entire header area */
  color: white; /* Text color for contrast */
  padding: 60px 20px; /* Space around text */
  text-align: center;
  position: relative;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}

<!--
header {
  background: #004080;
  color: #fff;
  padding: 0;
  text-align: center;
}
-->

h1 {
  margin: 0;

}

nav .menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #005a9c;
  display: flex;
  justify-content: center;
  box-shadow: 0;
}

nav .menu > li {
  position: relative;
}

nav .menu > li a {
  color: white;
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  font-weight: bold;
}

nav .menu > li a:hover,
nav .menu > li a.active {
  background-color: #003366;
}

nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #0074cc;
  display: none;
  min-width: 180px;
  z-index: 1000;
}

nav .menu > li:hover .submenu {
  display: block;
}

nav .submenu li a {
  padding: 12px 20px;
  font-weight: normal;
  color: white;
  display: block;
}

nav .submenu li a:hover {
  background-color: #005a9c;
}

main {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: white;
  box-shadow: 0;
  min-height: 350px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table, th, td {
  border: 1px solid #bbb;
}

th, td {
  padding: 10px;
  text-align: left;
}

footer {
  text-align: center;
  padding: 15px 0;
  color: #666;
  font-size: 0.9em;
}

h2 {
  color: #004080;              /* Deep blue color matching your header */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Elegant and modern font */
  font-size: 2.2rem;           /* Larger font size for emphasis */
  font-weight: bold;           /* Bold for strong impact */
  text-align: center;          /* Center aligned heading */
  margin-top: 40px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px #aaa; /* Subtle shadow for depth */
  border-bottom: 3px solid #005a9c; /* Underline with brand color */
  padding-bottom: 8px;
  letter-spacing: 1px;         /* Slight spacing between letters */
}

.banner-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  text-align: center;
  margin-bottom: 20px;
}

.banner-container img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: inline-block;
}

p {
  margin-top: 0; /* Remove top margin */
}

.banner-caption {
  position: absolute;
  bottom: 0;
  width: 20%;
  color: white;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  padding: 8px 0;
  font-size: 1.2rem;

}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  color: white;
  gap: 50px; /* Space between logos and text */
}

.header-logo {
  height: 120px; /* Adjust logo size */
  width: 120px;
}

.header-text {
  text-align: center;
}

.header-text h1 {
  margin: 0;
  font-size: 2.5rem;
}

.header-text p {
  margin: 5px 0 0;
  font-size: 1.1rem;
}


.page-container {
  display: flex;
  max-width: 100vw;      /* Use full viewport width */
  margin: 10px;             /* Remove auto margin */
  padding: 0;            /* Remove side padding */
  gap: 10px;                /* No gap between columns */

}

.news-events, .principal-message {
  width: 300px;          /* Fixed width for sidebars */
  min-width: 300px;
  background-color: #f7faff;
  border: 1px solid #cce0ff;
  border-radius: 8px;
margin: 10px;             /* Remove auto margin */

  padding: 20px;
  box-sizing: border-box;
  color: #003366;
  height: auto;          /* Take full vertical space */
text-align: justify;
}

.main-content {
  flex: 1;               /* Take up all remaining space */
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 0 8px #ccc;
  color: #333;
margin: 11px;             /* Remove auto margin */

  min-width: 0;          /* Prevent overflow in flex */

}

.page-container h2 {
  margin-top: 0;
  font-weight: bold;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

/* News list styling */
.news-events ul {
  list-style-type: disc;
  padding-left: 20px;
  line-height: 1.5;
}

/* Responsive layout for smaller screens */
@media (max-width: 900px) {
  .page-container {
    flex-direction: column;
  }
  .news-events, .principal-message, .main-content {
    flex: none;
    margin-bottom: 30px;
  }
}

.principal-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20%;      /* Makes the photo round */
  display: block;
  margin: 0 auto 16px auto; /* Center and add space below */
  border: 3px solid #005a9c;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,90,156,0.10);
}

.principal-name {
  text-align: center;
  font-weight: bold;
  color: #004080;
  font-size: 1.15rem;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  display: block;
}

.principal-desk-heading {
  text-align: center;
  font-weight: bold;
  color: #004080;
  font-size: 1.4rem;
  margin-bottom: 12px;
  letter-spacing: 0.7px;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}

.carousel-slide {
  position: relative;
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.carousel-caption {
  position: absolute;
  bottom: 12px;
  left: 20px;
  color: white;
  font-size: 1.2rem;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 4px;
  max-width: 90%;
}

/* Dots */
.carousel-dots .dot {
  cursor: pointer;
  height: 14px;
  width: 14px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: #005a9c;
}
