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

.page-title {
  text-align: center;
  padding: 40px 0;
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

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

.apple-edu-intro-section {
  background: linear-gradient(135deg, #42275a, #734b6d); /* Purple gradient inspired by Apple */
  padding: 100px 80px; /* Increased horizontal padding from 20px to 80px */
  text-align: center;
  margin: 0 auto;
  border-radius: 20px; /* Added rounded corners */
  box-shadow: 0 10px 30px rgba(66, 39, 90, 0.2); /* Subtle shadow that matches the gradient */
}

.intro-container {
  max-width: 980px; /* Apple typically uses this width for content */
  margin: 0 auto;
  padding: 0 30px; /* Added horizontal padding */
}

.apple-edu-intro-section h2 {
  font-size: 48px;
  line-height: 1.08349;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: #ffffff; /* Changed to white for better contrast with gradient background */
  margin-bottom: 20px;
}

.apple-edu-intro-section .highlight {
  color: #ffffff; /* Changed to white */
  position: relative;
  display: inline-block;
}

.apple-edu-intro-section .highlight::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.7); /* White underline with transparency */
}

.apple-edu-intro-section p {
  font-size: 21px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: 0.011em;
  color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for better readability */
  margin: 0 auto;
  max-width: 800px;
}


.device-tools-section {
  padding: 60px 40px;
}

.device-tools-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.device-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.device-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 30px;
  max-width: 500px;
  flex: 1;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.device-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(66, 39, 90, 0.03), rgba(115, 75, 109, 0.03));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.device-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.device-card:hover::before {
  opacity: 1;
}

.blue-card:hover {
  border-left: 4px solid #007aff;
}

.gray-card:hover {
  border-left: 4px solid #5856d6;
}

.device-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.device-card:hover h3 {
  background: linear-gradient(90deg, #007aff, #5856d6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(5px);
}

.device-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.device-card ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.device-card:hover ul li {
  transform: translateX(5px);
}

.learn-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #007aff, #5856d6);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.learn-more-btn:hover {
  background: linear-gradient(45deg, #5856d6, #007aff);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 10px 25px;
}

.device-image {
  position: relative;
  max-width: 420px;
  animation: float 6s ease-in-out infinite;
}

.device-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Slow bouncing animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Offset the second image animation slightly for visual interest */
.device-row:nth-child(2) .device-image {
  animation-delay: 2s;
}

@media screen and (max-width: 768px) {
  .device-row {
    flex-direction: column;
  }
}


.responsibility-section {
  background-color: #f4f7fe;
  padding: 80px 40px;
  border-radius: 32px;
  margin: 40px auto;
  max-width: 1280px;
  text-align: center;
}

.responsibility-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 50px;
  color: #111;
}

.responsibility-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}

.responsibility-card {
  background: white;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  flex: 1 1 300px;
  max-width: 360px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.responsibility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.responsibility-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.responsibility-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111;
}

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

.built-in-apps-section {
  text-align: center;
  padding: 60px 20px;
  margin-top: 40px;
}

.built-in-apps-section h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
}

.app-card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}

.app-card {
  background-color: white;
  border-radius: 16px;
  padding: 20px;
  width: 120px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.app-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.app-card p {
  font-size: 14px;
  font-weight: 500;
}

.app-card:hover {
  transform: translateY(-5px);
}

.app-button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.app-btn {
  background: linear-gradient(to right, #1E88E5, #3F51B5);
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.app-btn:hover {
  background: linear-gradient(to right, #1565C0, #303F9F);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


.app-store-cta {
  background: linear-gradient(135deg, #0D8BFF, #4C51D3);
  color: white;
  border-radius: 24px;
  padding: 60px 40px;
  margin: 40px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.app-store-cta h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.app-store-cta p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 32px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: #0D47A1;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.cta-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}


.edu-showcase-section {
  text-align: center;
  padding: 60px 20px;
  margin-top: 40px;
}

.edu-showcase-section h2 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 12px;
}

.edu-showcase-section p {
  font-size: 16px;
  color: #555;
  margin-bottom: 48px;
}

.edu-card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.edu-card {
  width: 280px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  padding: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-icon img {
  width: 64px;
  height: 64px;
}

.card-content {
  padding: 24px;
  text-align: left;
}

.card-content h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.card-content p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}

.card-content a {
  color: #1E88E5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.card-content a:hover {
  text-decoration: underline;
}

/* 背景漸變色 */
.blue-bg {
  background: linear-gradient(to bottom right, #42A5F5, #5C6BC0);
}
.green-bg {
  background: linear-gradient(to bottom right, #26C6DA, #2E7D32);
}
.pink-bg {
  background: linear-gradient(to bottom right, #AB47BC, #EC407A);
}


.cta-section {
  text-align: center;
  padding: 80px 20px;
}

.cta-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #111;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(90deg, #007aff, #5856d6);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(88, 86, 214, 0.4);
}

.btn-secondary {
  background: white;
  border: 1px solid #ccc;
  color: #333;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #f0f0f0;
  color: #000;
}
