/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff; /* white background */
  color: #4c5454;             /* dark grey text/accent */
  line-height: 1.6;
  overflow-x: hidden;
}

/* Links */
a {
  color: #ff715b; /* coral/red links */
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.school-header {
  background-color: #4c5454; /* dark header */
  color: #ffffff;            /* white text in header */
  padding: 1rem 2rem;
  border-bottom: 4px solid #ff715b; /* coral accent line */
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.school-logo {
  height: 60px;
  margin-right: 1rem;
}

.hke-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff; /* white name text */
  margin-bottom: 0.2rem;
}

.school-subtitle {
  font-size: 1.1rem;
  color: #ff715b; /* coral for subtitle */
}

.school-header .text-end {
  font-size: 0.9rem;
  color: #ffffff;
  text-align: right;
}

/* Navigation */
.main-nav {
  background-color: #4c5454;
  padding: 0;
  position: relative;
  z-index: 1000;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center; 
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 15px 20px;
  color: #ffffff; /* white nav links */
  text-decoration: none;
}

.nav-list > li > a:hover {
  background-color: #ff715b; 
  color: #ffffff;              
  text-decoration: none;     
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ff715b; /* coral dropdown */
  min-width: 200px;
  z-index: 999;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #ffffff;
  color: #4c5454;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hamburger Button Style */
.hamburger {
  font-size: 24px;
  background: none;
  border: none;
  color: #ffffff; /* white hamburger icon */
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1001;
}

/* Hide nav by default on small screens */
@media (max-width: 991px) {
  .main-nav {
    display: none;
    flex-direction: column;
    background-color: #4c5454;
    width: 100%;
    padding: 1rem;
  }

  .main-nav.show {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dropdown-menu {
    position: static;
    background: none;
    padding-left: 1rem;
  }

  .dropdown-menu li a {
    font-size: 14px;
  }
}

/* Hero image */
.hero img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Content Box */
.content-box {
  background-color: #ffffff;
  padding: 1rem;
  margin: 2rem auto;
  max-width: 1100px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.container-box {
  max-width: 1200px;
  margin: auto;
}

.content-box h2 {
  margin-bottom: 1rem;
  color: #ff715b;
}
.content-box h1 {
  margin-bottom: 1rem;
  color: #ff715b;
}
.content-box h3 {
  margin-bottom: 1rem;
  color: #ff715b;
}
.content-box p {
  text-align: justify;
  margin-bottom: 1rem;
}

/* Flex Section */
.flex-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.half {
  flex: 1 1 48%;
  min-width: 300px;
  margin: 1rem 0;
}

/* Lists */
.news-list,
.links-list {
  list-style: disc;
  padding-left: 1.5rem;
}
.news-list li,
.links-list li {
  margin-bottom: 0.8rem;
}

/* ===== Compact FOOTER ===== */
footer {
  background-color: #4c5454;
  color: #ffffff;
  padding: 15px 10px;
  font-size: 14px;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: 30px;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.footer-inner a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-inner a:hover {
  color: #ff715b;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
}

.social-icons a {
  color: #ffffff;
  font-size: 22px;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  color: #ff715b;
  transform: scale(1.15);
}

.footer-text {
  margin: 5px auto 0;
  font-size: 14px;
  color: #ccc;
  max-width: 90%;
  line-height: 1.4;
}

/* ==== Back to Top Button (Optimized) ==== */
.back-to-top {
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: #ff715b;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-to-top.show {
  display: block;
  opacity: 1;
}

.back-to-top:hover {
  background-color: #ffffff;
  color: #4c5454;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .main-section {
    padding: 1rem;
  }
  .hospital-name {
    font-size: 1.2rem;
    text-align: left;
  }
  .main-header .logo-section img {
    height: 60px;
    width: 60px;
  }
}

/* Utility */
.text-white {
  color: #ffffff !important;
}
