/* Base font and colors */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
}

/* container-hkc with max width and responsive padding */
.container-hkc {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2vw 3vw;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header and footer styling */
header, footer {
  background-color: #2c5e2e;
  color: white;
  padding: 1.5rem 0;
}

footer {
  margin-top: 3rem;
  padding: 3rem 0;
}

footer h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

footer p {
  color: #e0e0e0;
  font-size: 0.9rem;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  margin-right: 1rem;
}

.copyright {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #ccc;
}

/* Headings with clamp for fluid sizing */
h1, h2, h3, h4, h5, h6 {
  color: #2c5e2e;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

.main-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  text-align: center;
  margin: 2rem 0 1rem 0;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

.sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #000;
  text-align: center;
  margin: 0.5rem 0 2rem 0;
  font-family: 'Montserrat', sans-serif;
}

/* Section styling */
.section-container-hkc {
  margin: 3rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 3px solid #2c5e2e;
  padding-bottom: 0.5rem;
  margin-top: 3rem;
  display: flex;
  align-items: center;
}

.section-icon {
  font-size: 1.8rem;
  margin-right: 0.75rem;
}

.sub-section-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: #335596;
  margin: 1.5rem 0 1rem 0;
}

/* Component boxes */
.component-box, .service-box, .danger-box {
  background-color: #f1f8e9;
  border-radius: 5px;
  padding: 20px;
  margin: 20px 0;
  border-left: 6px solid #7cb342;
}

.component-title, .service-title {
  color: #2c5e2e;
  font-size: 1.3rem;
  margin-top: 0;
}

.danger-box {
  background-color: #ffebee;
  border-left-color: #e53935;
}

.danger-title {
  color: #c62828;
  font-size: 1.2rem;
}

.service-box {
  background-color: #e8f5e9;
  border-left-color: #2c5e2e;
}

.service-note {
  font-style: italic;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #aaa;
}

/* Comparison table */
.comparison-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th, .comparison-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.comparison-table th {
  background-color: #2c5e2e;
  color: white;
}

.comparison-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Important notes */
.important-note {
  background-color: #fff3e0;
  padding: 15px;
  border-left: 6px solid #ff9800;
  margin: 20px 0;
  font-size: 0.95rem;
}

/* Contact box */
.contact-box {
  background-color: #e3f2fd;
  padding: 25px;
  border-radius: 5px;
  margin: 30px 0;
  text-align: center;
}

.contact-title {
  color: #1565c0;
  margin-top: 0;
}

.contact-cta {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: #1565c0;
}

/* References section */
.references {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eaeaea;
}

.references-title {
  font-size: 1.3rem;
}

.references ul {
  padding-left: 0;
  list-style-type: none;
}

.references li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  word-break: break-all;
}

/* Paragraph and links */
p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: 1rem;
  color: #333;
}

a {
  color: #1565c0;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

/* Responsive images */
.main-banner-image {
  width: 100%;
  max-width: 1000px;
  display: block;
  margin: 0 auto 2rem auto;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Conclusion section */
.conclusion {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 5px;
  margin-top: 3rem;
}

/* Media queries for smaller devices */
@media (max-width: 768px) {
  .container-hkc {
    padding: 15px 10px;
  }

  .main-title {
    font-size: 1.75rem;
  }

  .sub-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .comparison-table {
    font-size: 0.9rem;
  }
  
  .section-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.5rem;
  }

  .sub-title {
    font-size: 1.25rem;
  }
  
  .component-box, .service-box, .danger-box {
    padding: 15px 10px;
  }
  
  .comparison-table th, .comparison-table td {
    padding: 8px 10px;
  }
}
