/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* CMAHK Hero Section */
.cmahk-hero {
  position: relative;
  background: url("assets/background.jpg") center/cover no-repeat;
  padding: 120px 20px;
  text-align: center;
  color: white;
  font-family: Georgia, 'Times New Roman', Times, serif;
  min-height: 90vh; /* dynamic height to match premium feeling */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmahk-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 40, 0.55); /* Original navy tone overlay */
  z-index: 1;
}

.cmahk-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo */
.cmahk-logo {
  width: 180px;
  max-width: 60%;
  margin-bottom: -30px; /* Pulls the heading slightly closer, matching original spacing */
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Title */
.cmahk-content h1 {
  font-size: 38px;
  margin-top: 20px;
  margin-bottom: 25px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Paragraphs */
.cmahk-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  font-weight: 400;
}

.cmahk-content p a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
  transition: opacity 0.25s ease;
}

.cmahk-content p a:hover {
  opacity: 0.8;
}

/* Buttons Container */
.cmahk-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Premium Button Styling */
.cmahk-buttons .btn {
  display: inline-block;
  padding: 12px 28px;
  background: #ffffff;
  color: #000000;
  border-radius: 6px;
  margin: 10px;
  font-weight: bold;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.cmahk-buttons .btn:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.cmahk-buttons .btn:active {
  transform: translateY(0);
}

/* Social Icon Section */
.cmahk-social {
  margin-top: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cmahk-social a {
  color: #ffffff;
  margin: 0 16px;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}

.cmahk-social .social-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}

.cmahk-social a:hover {
  transform: translateY(-3px) scale(1.15);
  opacity: 1;
}

/* ---------------------------
   MOBILE RESPONSIVE SETTINGS
   ----------------------------*/
@media (max-width: 768px) {
  .cmahk-hero {
    padding: 80px 20px;
    min-height: 85vh;
  }

  .cmahk-logo {
    width: 150px;
    margin-bottom: -15px;
  }

  .cmahk-content h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-top: 15px;
  }

  .cmahk-content p {
    font-size: 16px;
    line-height: 1.6;
  }

  .cmahk-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .cmahk-buttons .btn {
    display: block;
    width: 100%;
    margin: 8px 0;
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
  }

  .cmahk-social a {
    margin: 0 12px;
  }

  .cmahk-social .social-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 480px) {
  .cmahk-hero {
    padding: 60px 15px;
  }

  .cmahk-logo {
    width: 130px;
  }

  .cmahk-content h1 {
    font-size: 24px;
  }

  .cmahk-content p {
    font-size: 15px;
  }

  .cmahk-social a {
    margin: 0 10px;
  }

  .cmahk-social .social-icon {
    width: 20px;
    height: 20px;
  }
}
