body {
    background-color: #f2f2f2; /* 比原本灰淺少少，睇落舒服啲 */
  }

/* Page Title Container with Background Image */
.page-title-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    transition: background-position 0.3s ease-out;
}
  
.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.content-container {
  max-width: 1400px; /* 由 1200 加大少少 */
    margin: 0 auto;
    padding: 20px;
    min-height: 400px; /* Ensures there's some space on the page */
}

.ade-card {
  background-color: #f9fbff;
  padding: 80px 60px; /* Increased padding from 60px 40px to 80px 60px */
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 1000px; /* Increased from 800px to 1000px */
  text-align: center;
  animation: fadeIn 1s ease;
  margin: 60px auto; /* Center the card horizontally and add vertical spacing */
}

.ade-title {
  font-size: 2rem;
  color: #222;
  margin-bottom: 20px;
}

.highlight-blue {
  color: #007aff;
  font-weight: 700;
}

.ade-text {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.ade-btn {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(90deg, #007aff, #5c6ac4, #5856d6);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.2);
  transition: all 0.3s ease;
}

.ade-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.ade-steps-section {
  margin: 60px auto;
  max-width: 1200px;
  border-radius: 12px;
  overflow: hidden;
}

.ade-steps-header {
  background-color: #e6f2ff;
  padding: 30px 40px;
  text-align: left;
}

.ade-steps-header h2 {
  font-size: 2rem;
  color: #0066cc;
  margin-bottom: 8px;
  font-weight: 600;
}

.ade-steps-header p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}

.ade-steps-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 40px;
  background-color: #ffffff;
}

.ade-step-card {
  background: #fff;
  padding: 20px 30px;
  flex: 1;
  margin: 0 15px;
  text-align: left;
}

.ade-step-icon {
  background-color: #0066cc;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.ade-step-card h3 {
  color: #333;
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.ade-step-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.highlight-blue {
  color: #0066cc;
}



.ade-video-guide-section {
  margin: 60px auto;
  max-width: 1200px;
  background-color: #f0fbf0;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.video-guide-header {
  text-align: left;
  margin-bottom: 30px;
}

.video-guide-header h2 {
  font-size: 2rem;
  color: #34a853;
  margin-bottom: 8px;
  font-weight: 600;
}

.video-guide-header p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
}

.video-guide-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.video-card {
  background: #fff;
  padding: 25px 30px;
  flex: 1;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.green-title {
  color: #34a853;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.video-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.submission-title {
  color: #34a853;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 40px 0 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(52, 168, 83, 0.2);
}

.apple-teacher-section {
  margin: 60px auto;
  max-width: 1200px;
  background-color: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid #f8f8f8;
}

.teacher-header {
  text-align: left;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 20px;
}

.teacher-header:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #FF9500, #FF5E3A);
  border-radius: 2px;
}

.teacher-header h2 {
  font-size: 2rem;
  color: #FF9500;
  margin-bottom: 12px;
  font-weight: 600;
}

.teacher-header p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
  max-width: 90%;
  line-height: 1.6;
}

.teacher-cards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 30px;
}

.teacher-card {
  background: linear-gradient(145deg, #fff, #fafafa);
  padding: 30px;
  flex: 1;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #FF9500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.teacher-icon {
  background: linear-gradient(to right, #FF9500, #FF5E3A);
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.orange-title {
  color: #FF9500;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.teacher-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.teacher-footer {
  background-color: #fafafa;
  padding: 25px;
  border-radius: 10px;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 20px;
  border-left: 4px solid #FF9500;
}

.portfolio-section {
  margin: 60px auto;
  max-width: 1200px;
  background: linear-gradient(135deg, #f0e6ff, #e6e0ff, #f5edff);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e8e0ff;
}

.portfolio-header {
  text-align: left;
  margin-bottom: 40px;
  position: relative;
}

.portfolio-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 600;
  background: linear-gradient(to right, #6e41c0, #9c6efa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-header p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

.portfolio-card {
  background: #fff;
  padding: 25px 30px;
  flex: 1 1 calc(33.333% - 20px);
  min-width: 250px;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(110, 65, 192, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(110, 65, 192, 0.15);
}

.portfolio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #6e41c0, #9c6efa);
}

.purple-title {
  color: #6e41c0;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.portfolio-card:hover .purple-title {
  color: #9c6efa;
}

.portfolio-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.portfolio-subtitle {
  color: #6e41c0;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 30px 0;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.portfolio-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, #6e41c0, #9c6efa);
  border-radius: 2px;
}

/* For the second grid with 4 cards */
.portfolio-grid:last-of-type .portfolio-card {
  flex: 1 1 calc(25% - 20px);
  min-width: 200px;
}

.apple-community-section {
  margin: 60px auto;
  max-width: 1200px;
  background: linear-gradient(to bottom right, #f8f8f8, #ffffff);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.apple-community-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm63 31c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM34 90c1.657 0 3-.895 3-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.657 0 3-.895 3-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%2334a853' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.community-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.community-header h2 {
  font-size: 2.2rem;
  color: #34a853;
  margin-bottom: 12px;
  font-weight: 600;
}

.community-header p {
  font-size: 1.1rem;
  color: #555;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.6;
}

.community-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 25px;
  position: relative;
  z-index: 1;
}

.community-card {
  background: #fff;
  padding: 30px;
  flex: 1;
  text-align: left;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.community-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #34a853, #4caf50);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.community-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(52, 168, 83, 0.1);
}

.community-card:hover::after {
  transform: scaleX(1);
}

.community-card h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.community-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.help-contact-section {
  margin: 60px auto;
  max-width: 1200px;
  background: #fff;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.help-header {
  text-align: center;
  margin-bottom: 50px;
}

.help-header h2 {
  font-size: 2.2rem;
  color: #1d1d1f;
  margin-bottom: 12px;
  font-weight: 600;
}

.help-header p {
  font-size: 1.1rem;
  color: #555;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.6;
}

.help-contact-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 30px;
  margin: 0 auto;
  max-width: 900px;
}

.help-card {
  background: #fff;
  padding: 40px 20px 30px;
  flex: 1;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.help-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.help-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.help-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.help-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

/* Media query for responsive design */
@media (max-width: 768px) {
  .help-contact-grid {
    flex-direction: column;
    gap: 20px;
  }
  
  .help-card {
    padding: 30px 20px 25px;
  }
  
  .help-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
}
