* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* Layout wrapper */
body {
  display: flex;
  flex-direction: column;
}

/* Site header / hero */
header {
  flex-shrink: 0;
}

/* Top navigation */
.navbar {
  background: #004080;
  color: #fff;
  padding: 0.4em 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-weight: 600;
  font-size: 1.1em;
}

.navbar-nav {
  display: flex;
  gap: 0.8em;
}

.navbar-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1em;
  background: #e6f2ff;
}

.hero-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.8em;
}

.hero-text h1 {
  margin-bottom: 0.2em;
  color: #004080;
  font-size: 1.7em;
}

.hero-text p {
  font-size: 0.95em;
  line-height: 1.3;
  color: #004080;
}

/* Main content area */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Container for side-by-side sections on home/contact */
.container {
  flex: 1;
  display: flex;
  gap: 0.8em;
  padding: 0.8em 1em;
  /* Try to fit inside viewport: hero ~150px + nav ~40px + footer 40px */
  max-height: calc(100vh - 230px);
}

/* Single-column content pages */
.page-content {
  flex: 1;
  padding: 0.8em 1em 1em;
  max-height: calc(100vh - 230px);
  overflow: auto;
}

/* Each box (Achievements, Inquiry, etc.) */
.box {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 0.9em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: auto; /* inner scroll if content overflows */
}

.box h2 {
  margin-bottom: 0.4em;
  color: #004080;
  font-size: 1.2em;
}

/* Achievements list */
#about ul {
  list-style: none;
  margin-top: 0.3em;
}

#about li {
  margin: 3px 0;
  font-size: 0.9em;
}

/* General text content */
.page-content h2 {
  color: #004080;
  margin-bottom: 0.4em;
  font-size: 1.3em;
}

.page-content h3 {
  margin-top: 0.6em;
  margin-bottom: 0.3em;
  font-size: 1.05em;
  color: #004080;
}

.page-content p {
  font-size: 0.95em;
  line-height: 1.45;
  margin-bottom: 0.5em;
}

.page-content ul {
  margin-left: 1.2em;
  margin-bottom: 0.5em;
}

.page-content li {
  margin-bottom: 0.25em;
}

/* Inquiry form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  flex: 1;
}

.row {
  display: flex;
  gap: 0.5em;
}

.row-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.85em;
  margin-bottom: 0.1em;
}

input,
select,
textarea,
button {
  padding: 6px;
  font-size: 0.9em;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
}

textarea {
  resize: none;
  flex: 1;
}

/* Phone input */
.phone-input {
  display: flex;
  align-items: center;
}

.phone-input .prefix {
  padding: 6px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.phone-input input {
  flex: 1;
  border-radius: 0 4px 4px 0;
  border-left: none;
}

/* Small helper text */
small {
  font-size: 0.75em;
  color: #666;
}

/* Submit button */
button {
  background: #004080;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #003060;
}

/* Footer */
footer {
  height: 40px;
  background: #004080;
  color: white;
  text-align: center;
  line-height: 40px;
  flex-shrink: 0;
  font-size: 0.85em;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3em;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-img {
    margin-right: 0;
    margin-bottom: 0.5em;
  }

  .container {
    flex-direction: column;
    max-height: none;
  }

  .page-content {
    max-height: none;
  }
}