/* Màn hình nhỏ (mobile) */
@media (max-width: 479px) {
  .hero-section {
    display: flex;
    flex-direction: column; /* Chuyển sang hiển thị một cột */
    align-items: center; /* Căn giữa các phần tử */
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    opacity: 85%;
    padding: 15px;
    margin: 0px 0px 10px 0px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    height: auto;
    max-width: 479px;
  }

  .hero-content {
    max-width: 100%; /* Chiếm toàn bộ chiều rộng */
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%; /* Chiếm toàn bộ chiều rộng */
  }

  .hero-content p {
    margin: 0px 0px 10px 0px;
    font-size: 14px;
    line-height: 26px;
    padding-right: 0; /* Loại bỏ padding bên phải */
  }

  .hero-button {
    display: inline-block;
    padding: 10px 12px 10px 12px;
    background-color: #991c1f;
    box-shadow: 0 4px 5px 0px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .hero-button:hover {
    background-color: #000000;
  }

  .hero-image {
    max-width: 100%; /* Chiếm toàn bộ chiều rộng */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-image img {
    max-width: 90%; /* Giảm kích thước hình ảnh để phù hợp với màn hình nhỏ */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  /* Spotify Button */
  .spotify-btn {
    display: inline-block;
    margin-left: 15px;
    width: 80px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
  }

  .spotify-btn img {
      width: 100%;
  }

  /* Hiệu ứng khi hover */
  .spotify-btn:hover {
      transform: scale(1.1); /* Phóng to nhẹ */
  }

  /* Tooltip (ghi chú khi hover) */
  .spotify-btn::after {
      content: attr(title); /* Lấy nội dung từ thuộc tính title */
      position: absolute;
      bottom: -35px; /* Hiển thị ghi chú bên dưới nút */
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 12px;
      padding: 5px 10px;
      border-radius: 5px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      white-space: nowrap;
      z-index: 10;
  }

  .spotify-btn:hover::after {
      opacity: 1;
      visibility: visible;
  }

  /* YouTube Button */
  .youtube-btn {
      display: inline-block;
      margin-left: 15px;
      width: 80px;
      position: relative;
      cursor: pointer;
      transition: transform 0.2s ease-in-out;
  }

  .youtube-btn img {
      width: 100%;
  }

  /* Hover effect */
  .youtube-btn:hover {
      transform: scale(1.1);
  }

  /* Tooltip for YouTube button */
  .youtube-btn::after {
      content: attr(title); /* Lấy nội dung từ thuộc tính title */
      position: absolute;
      bottom: -35px; /* Hiển thị ghi chú bên dưới nút */
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 12px;
      padding: 5px 10px;
      border-radius: 5px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      white-space: nowrap;
      z-index: 10;
  }

  .youtube-btn:hover::after {
      opacity: 1;
      visibility: visible;
  }

  /* Toggle Switch Container */
  .toggle-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
      flex-wrap: nowrap; /* Đảm bảo các phần tử không xuống dòng */
  }

  .center-container {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column; /* Đặt các phần tử theo cột */
      gap: 8px; /* Khoảng cách giữa các phần tử */
      margin-top: 10px;;
  }
}

/* Màn hình trung bình (tablet) */
@media (min-width: 480px) and (max-width: 767px) {
  .hero-section {
    display: flex;
    flex-direction: column; /* Chuyển sang hiển thị một cột */
    align-items: center; /* Căn giữa các phần tử */
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    opacity: 85%;
    padding: 20px;
    margin: 0px 0px 10px 0px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    height: auto;
    max-width: 767px;
  }

  .hero-content {
    max-width: 100%; /* Chiếm toàn bộ chiều rộng */
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%; /* Chiếm toàn bộ chiều rộng */
  }

  .hero-content p {
    margin: 0px 0px 10px 0px;
    font-size: 16px;
    line-height: 28px;
    padding-right: 0; /* Loại bỏ padding bên phải */
  }

  .hero-button {
    display: inline-block;
    padding: 12px 14px 12px 14px;
    background-color: #991c1f;
    box-shadow: 0 4px 5px 0px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .hero-button:hover {
    background-color: #000000;
  }

  .hero-image {
    max-width: 100%; /* Chiếm toàn bộ chiều rộng */
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-image img {
    max-width: 90%; /* Giảm kích thước hình ảnh để phù hợp với màn hình nhỏ */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  /* Spotify Button */
  .spotify-btn {
    display: inline-block;
    margin-left: 15px;
    width: 80px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
  }

  .spotify-btn img {
      width: 100%;
  }

  /* Hiệu ứng khi hover */
  .spotify-btn:hover {
      transform: scale(1.1); /* Phóng to nhẹ */
  }

  /* Tooltip (ghi chú khi hover) */
  .spotify-btn::after {
      content: attr(title); /* Lấy nội dung từ thuộc tính title */
      position: absolute;
      bottom: -35px; /* Hiển thị ghi chú bên dưới nút */
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 12px;
      padding: 5px 10px;
      border-radius: 5px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      white-space: nowrap;
      z-index: 10;
  }

  .spotify-btn:hover::after {
      opacity: 1;
      visibility: visible;
  }

  /* YouTube Button */
  .youtube-btn {
      display: inline-block;
      margin-left: 15px;
      width: 80px;
      position: relative;
      cursor: pointer;
      transition: transform 0.2s ease-in-out;
  }

  .youtube-btn img {
      width: 100%;
  }

  /* Hover effect */
  .youtube-btn:hover {
      transform: scale(1.1);
  }

  /* Tooltip for YouTube button */
  .youtube-btn::after {
      content: attr(title); /* Lấy nội dung từ thuộc tính title */
      position: absolute;
      bottom: -35px; /* Hiển thị ghi chú bên dưới nút */
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 12px;
      padding: 5px 10px;
      border-radius: 5px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      white-space: nowrap;
      z-index: 10;
  }

  .youtube-btn:hover::after {
      opacity: 1;
      visibility: visible;
  }

  /* Toggle Switch Container */
  .toggle-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
      flex-wrap: nowrap; /* Đảm bảo các phần tử không xuống dòng */
  }

  .center-container {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column; /* Đặt các phần tử theo cột */
      gap: 8px; /* Khoảng cách giữa các phần tử */
      margin-top: 10px;;
  }
}

/* Màn hình lớn (tablet) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.95);
    opacity: 85%;
    padding: 20px;
    margin: 0px 0px 10px 0px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    height: auto;
    max-width: 1023px;
  }

  .hero-content {
    max-width: 50%;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content p {
    margin: 0px 0px 10px 0px;
    font-size: 16px;
    line-height: 28px;
    padding-right: 20px;
  }

  .hero-button {
    display: inline-block;
    padding: 12px 15px 12px 15px;
    background-color: #991c1f;
    box-shadow: 0 4px 5px 0px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .hero-button:hover {
    background-color: #000000;
  }

  .hero-image {
    max-width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  /* Spotify Button */
  .spotify-btn {
    display: inline-block;
    margin-left: 15px;
    width: 80px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
  }

  .spotify-btn img {
      width: 100%;
  }

  /* Hiệu ứng khi hover */
  .spotify-btn:hover {
      transform: scale(1.1); /* Phóng to nhẹ */
  }

  /* Tooltip (ghi chú khi hover) */
  .spotify-btn::after {
      content: attr(title); /* Lấy nội dung từ thuộc tính title */
      position: absolute;
      bottom: -35px; /* Hiển thị ghi chú bên dưới nút */
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 12px;
      padding: 5px 10px;
      border-radius: 5px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      white-space: nowrap;
      z-index: 10;
  }

  .spotify-btn:hover::after {
      opacity: 1;
      visibility: visible;
  }

  /* YouTube Button */
  .youtube-btn {
      display: inline-block;
      margin-left: 15px;
      width: 80px;
      position: relative;
      cursor: pointer;
      transition: transform 0.2s ease-in-out;
  }

  .youtube-btn img {
      width: 100%;
  }

  /* Hover effect */
  .youtube-btn:hover {
      transform: scale(1.1);
  }

  /* Tooltip for YouTube button */
  .youtube-btn::after {
      content: attr(title); /* Lấy nội dung từ thuộc tính title */
      position: absolute;
      bottom: -35px; /* Hiển thị ghi chú bên dưới nút */
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 12px;
      padding: 5px 10px;
      border-radius: 5px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      white-space: nowrap;
      z-index: 10;
  }

  .youtube-btn:hover::after {
      opacity: 1;
      visibility: visible;
  }

  /* Toggle Switch Container */
  .toggle-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
      flex-wrap: nowrap; /* Đảm bảo các phần tử không xuống dòng */
  }

  .center-container {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column; /* Đặt các phần tử theo cột */
      gap: 8px; /* Khoảng cách giữa các phần tử */
      margin-top: 10px;;
  }
}

/* Màn hình lớn (desktop) */
@media (min-width: 1024px) {
  .hero-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.95);
    opacity: 85%;
    padding: 20px;
    margin: 0px 0px 10px 0px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    height: auto;
    max-width: 1200px;
  }

  .hero-content {
    max-width: 50%;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content p {
    margin: 0px 0px 10px 0px;
    font-size: 18px;
    line-height: 32px;
    padding-right: 20px;
  }

  .hero-button {
    display: inline-block;
    padding: 13px 18px 13px 18px;
    background-color: #991c1f;
    box-shadow: 0 4px 5px 0px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .hero-button:hover {
    background-color: #000000;
  }

  .hero-image {
    max-width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  /* Spotify Button */
  .spotify-btn {
    display: inline-block;
    margin-left: 15px;
    width: 80px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
  }

  .spotify-btn img {
      width: 100%;
  }

  /* Hiệu ứng khi hover */
  .spotify-btn:hover {
      transform: scale(1.1); /* Phóng to nhẹ */
  }

  /* Tooltip (ghi chú khi hover) */
  .spotify-btn::after {
      content: attr(title); /* Lấy nội dung từ thuộc tính title */
      position: absolute;
      bottom: -35px; /* Hiển thị ghi chú bên dưới nút */
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 12px;
      padding: 5px 10px;
      border-radius: 5px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      white-space: nowrap;
      z-index: 10;
  }

  .spotify-btn:hover::after {
      opacity: 1;
      visibility: visible;
  }

  /* YouTube Button */
  .youtube-btn {
      display: inline-block;
      margin-left: 15px;
      width: 80px;
      position: relative;
      cursor: pointer;
      transition: transform 0.2s ease-in-out;
  }

  .youtube-btn img {
      width: 100%;
  }

  /* Hover effect */
  .youtube-btn:hover {
      transform: scale(1.1);
  }

  /* Tooltip for YouTube button */
  .youtube-btn::after {
      content: attr(title); /* Lấy nội dung từ thuộc tính title */
      position: absolute;
      bottom: -35px; /* Hiển thị ghi chú bên dưới nút */
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0, 0, 0, 0.8);
      color: #fff;
      font-size: 12px;
      padding: 5px 10px;
      border-radius: 5px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
      white-space: nowrap;
      z-index: 10;
  }

  .youtube-btn:hover::after {
      opacity: 1;
      visibility: visible;
  }

  /* Toggle Switch Container */
  .toggle-container {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 10px;
      flex-wrap: nowrap; /* Đảm bảo các phần tử không xuống dòng */
  }

  .center-container {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column; /* Đặt các phần tử theo cột */
      gap: 8px; /* Khoảng cách giữa các phần tử */
      margin-top: 10px;;
  }
}