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

.page-title {
    text-align: center;
    padding: 40px 0 20px; /* 👈 原本 40px 上下，改為上40下20 */
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.content-container {
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    padding: 20px 40px; /* Added horizontal padding */
    min-height: 400px; /* Ensures there's some space on the page */
}



/* AppleCare 教育方案 Section */
.applecare-education-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 30px; /* Increased padding */
}
  
.applecare-card {
    text-align: center;
    background: linear-gradient(135deg, #007aff, #5856d6, #7670dd);
    color: white;
    padding: 70px 60px; /* Increased padding */
    border-radius: 20px;
    max-width: 1100px; /* Increased from 900px */
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }
  
  .applecare-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .applecare-subtitle {
    font-size: 1.4rem;
    line-height: 1.6;
  }
  
  /* 動畫效果 */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .applecare-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Increased from 260px */
    gap: 40px; /* Increased from 30px */
    padding: 70px 30px; /* Increased padding */
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
  }
  
  .feature-box {
    background: white;
    padding: 50px 40px; /* Increased from 40px 30px */
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  }
  
  .feature-main {
    font-size: 2.5rem;
    color: #007aff;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
  }
  
  .feature-desc {
    font-size: 0.95rem;
    color: #777;
  }
  

  .product-coverage {
    background-color: #f9f9f9;
    padding: 90px 30px; /* Increased from 80px 20px */
    border-radius: 20px;
    max-width: 1500px; /* Increased from 1300px */
    margin: 0 auto;
  }
  
  .coverage-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #222;
  }
  
  .coverage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Changed from auto-fit to fixed 4 columns */
    gap: 40px; /* Increased from 30px */
  }

  @media (max-width: 1024px) {
    .coverage-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
  }

  @media (max-width: 640px) {
    .coverage-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }
  }
  
  .coverage-card {
    background-color: #f4f4f6;
    padding: 30px 20px 20px 20px; /* Reduced padding, especially at the bottom */
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 350px;
    overflow: hidden;
  }
  
  .coverage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  }
  
  .coverage-card h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px; /* Reduced from 10px */
  }
  
  .coverage-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px; /* Reduced from 15px */
  }
  
  .coverage-card img {
    width: 90%; /* Increased from 80% */
    height: 210px; /* Increased from 180px */
    border-radius: 10px;
    object-fit: contain;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0; /* Ensure no bottom margin */
    display: block;
  }

  .mac-card img {
    width: 100%;
    height: 260px;
    transition: transform 0.3s ease;
  }
  
  /* Add special styling for Other Devices card */
  .coverage-card:nth-child(4) img {
    width: 100%;
    height: 260px;
    transition: transform 0.3s ease;
  }

  .warranty-comparison {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .comparison-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 50px;
    color: #222;
  }
  
  .comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .warranty-box {
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  }
  
  .warranty-box h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #222;
  }
  
  .warranty-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .warranty-box ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 1rem;
    color: #444;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
  }
  
  .warranty-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007aff;
    font-weight: bold;
  }
  
  /* 白色 box（左邊） */
  .warranty-box.third-party {
    background-color: #ffffff;
  }
  
  /* 漸變藍 box（右邊） */
  .warranty-box.applecare {
    background: linear-gradient(135deg, #007aff, #5856d6, #7670dd);
    color: white;
  }
  
  .warranty-box.applecare h3,
  .warranty-box.applecare ul li {
    color: white;
  }
  
  .warranty-box.applecare ul li::before {
    color: #ffffff;
  }


  /*repair process section*/

  .repair-process {
    padding: 80px 20px;
    max-width: 1300px;
    margin: 0 auto;
  }
  
  /* 外框大卡片 */
  .process-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 30px;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    border: 2px solid #007aff;
    overflow: hidden; /* To contain the animation */
  }
  
  /* Animated line */
  .process-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    height: 2px;
    width: 100px; /* Fixed width */
    background: linear-gradient(to right, #007aff, #5856d6);
    box-shadow: 0 0 8px rgba(0, 122, 255, 0.6);
    animation: lineMove 4s infinite linear;
  }
  
  /* Animation for the line */
  @keyframes lineMove {
    0% {
      left: -100px;
    }
    100% {
      left: 100%;
    }
  }
  
  /* 加標題放入框內 */
  .process-title {
    width: 100%;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #222;
    text-align: left;
  }
  
  /* Step 卡片 */
  .repair-step {
    flex: 1 1 200px;
    min-width: 200px;
    background-color: #fafafa;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  }
  
  .step-number {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background-color: #007aff;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px;
  }
  
  .step-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #333;
  }
  
  .step-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
  }


  /* CTA section */
  .cta-section {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
    border-radius: 20px;
    padding: 80px 20px;
    text-align: center;
    margin: 80px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .cta-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #f2f2f2;
  }
  
  .cta-desc {
    font-size: 1rem;
    color: #e0e0e0;
  }
  
  /* AppleCare Business Support Section */
  .applecare-business-support {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 70px 40px;
    margin: 80px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
  }

  /* Decorative gradient line at the top */
  .applecare-business-support::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, #007aff, #5856d6);
  }

  .applecare-container {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
  }

  .applecare-icon {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
    transition: transform 0.3s ease;
  }

  .applecare-icon:hover {
    transform: translateY(-5px);
  }

  .applecare-text {
    flex: 1;
  }

  .applecare-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .applecare-text p {
    font-size: 1.1rem;
    color: #515154;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  .learn-more-link {
    color: #0066cc;
    font-size: 1.05rem;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
  }

  .learn-more-link:hover {
    color: #007aff;
    text-decoration: underline;
  }

  /* Responsive styles for mobile devices */
  @media (max-width: 768px) {
    .applecare-business-support {
      padding: 50px 25px;
    }

    .applecare-container {
      flex-direction: column;
      text-align: center;
      gap: 30px;
    }

    .applecare-text h2 {
      font-size: 1.7rem;
    }

    .applecare-text p {
      font-size: 1rem;
    }
  }