 /* Prevent printing */
    @media print { html, body { display: none; } }

    body {
      font-family: 'Poppins', sans-serif;
      font-size: 1rem;
      line-height: 1.7;
      color: #222;
      background-color: #fff;
      margin: 0;
      padding: 0;
    }

    main {
      max-width: 1200px;
      margin: auto;
      padding: 1rem;
    }

    h1 {
      font-size: 1.8rem;
      text-align: center;
      color: #007acc;
      margin: 2rem 0;
      border: 1px solid grey;
      padding: 6px;
      background-color: #ecebeb;
      border-radius: 6px;
    }

    /* Hero Section */
    .learn-english-index {
      background: url('https://i.ibb.co/BH3jRdqB/Apcenglish-home02.jpg') center/cover no-repeat;
      color: white;
      text-shadow: 0 0 10px black;
      padding: 100px 20px;
      text-align: center;
    }

    .learn-english-index h1 {
      font-size: 2rem;
      margin-bottom: 1rem;
      border: none;
      background: transparent;
      color: white;
    }

    .learn-english-index p {
      background-color: #222;
      padding: 6px 10px;
      border-radius: 5px;
      display: inline-block;
    }

    /* Game Grid */
    .games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .game-card {
      border: 1px solid #ddd;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      transition: transform 0.2s;
      background: #fff;
      display: flex;
      flex-direction: column;
    }

    .game-card:hover {
      transform: translateY(-5px);
    }

    .game-card a img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
      transition: opacity 0.3s;
    }

    .game-card a img:hover {
      opacity: 0.85;
    }

    .game-card-content {
      padding: 1rem;
      flex-grow: 1;
    }

    .game-card h2 {
      font-size: 1.2rem;
      margin: 0 0 0.5rem;
      color: #007acc;
    }

    .game-card p {
      font-size: 0.95rem;
      color: #444;
      margin-bottom: 1rem;
    }

    .game-card a.play-btn {
      display: inline-block;
      padding: 8px 14px;
      background: #007acc;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-size: 0.95rem;
      font-weight: 500;
      transition: background 0.3s;
    }

    .game-card a.play-btn:hover {
      background: #005999;
    }

    /* Responsive */
    @media (max-width: 600px) {
      body { font-size: 0.95rem; }
      .learn-english-index { padding: 60px 15px; }
      .learn-english-index h1 { font-size: 1.6rem; }
    }