/* Common styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lexend", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.navbar {
  background-color: #07128a;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  margin-bottom: 20px;
  position: relative;
}

.top-bar {
  width: 100%;
  background-color: #e0e0e0;
  color: black;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .social-links a {
  margin: 0 5px;
  transition: transform 0.3s;
}

.top-bar .social-links a:hover {
  transform: translateY(-2px);
}

.socialstop {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#youtlogo1 {
  width: 75px;
}

.socialstop a img {
  width: 24px;
  height: 24px;
}

.top-bar .site-name {
  font-size: 18px;
  font-weight: bold;
}

.top-bar .site-name a {
  text-decoration: none;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
}

.top-bar .contact-link a {
  color: black;
  text-decoration: none;
}

.top-bar .contact-link a:hover {
  text-decoration: underline;
  color: white;
  background-color: black;
  padding: 2px 5px;
}

.contact-button {
  background-color: inherit;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-button:hover {
  background-color: black;
  color: white;
  text-decoration: none;
}

.logo {
  position: absolute;
  left: 15px;
  top: 15px;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 60px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 30px;
}

.nav-links li {
  list-style: none;
  padding: 0 23px;
}

.nav-links li a {
  text-decoration: none;
  color: #ffeb3b;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 18px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-links li a:hover {
  background-color: #3949ab;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbutton {
  background: none;
  border: none;
  color: #ffeb3b;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 18px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(63, 108, 190, 1);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 10%;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-content a:hover {
  background-color: #3949ab;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#comppoli {
  border-bottom: none;
}

.search-container {
  position: relative;
  margin-left: auto;
}

#searchBar {
  padding: 8px;
  border: none;
  border-radius: 4px;
  width: 170px;
  transition: width 0.3s, box-shadow 0.3s;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

#searchBar:focus {
  width: 250px;
  box-shadow: 5px 5px 23px rgba(0, 1, 36, 1);
}

.search-icon {
  width: 14px;
  height: 14px;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-section {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content {
  position: absolute;
  top: 26.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: top;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px #000;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px #000;
}

.cta-button {
  background-color: #3949ab;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #07128a;
}
button, .cta-button {
  touch-action: manipulation;
}


.carousel-button {
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  transition: background-color 0.3s;
}

.carousel-button.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.carousel-button.next {
  right: 0;
  border-radius: 0 3px 3px 0;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.collection-section,
.why-choose-us-section,
.mining-content-section,
.contact-section {
  padding: 60px 20px;
  text-align: center;
}

.collection-section h2,
.why-choose-us-section h2,
.mining-content-section h2,
.contact-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.collection-section p,
.why-choose-us-section p,
.mining-content-section p,
.contact-section p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.gallery-item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.gallery-item:hover {
  transform: translateY(-10px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item-info {
  padding: 20px;
  text-align: center;
}

.gallery-item-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.gallery-item-info p {
  font-size: 16px;
}

.videos-section {
  padding: 60px 20px;
}

.video-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: white;
}

.video-content .content {
  flex: 2.5;
  padding: 20px;
}

.video-content .video {
  flex: 1;
  padding: 20px;
}

.video-content .video img {
  width: 400px;
  height: 350px;
  object-fit: cover;
  border-radius: 100px;
}

.video-content.video-left .content {
  order: 1;
  text-align: left;
}

.video-content.video-left .video {
  order: 2;
}

.video-content.video-right .content {
  order: 2;
  text-align: right;
}

.video-content.video-right .video {
  order: 1;
}

.video-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.video-content p {
  font-size: 16px;
  line-height: 1.6;
}

#mineown1 {
  object-fit: cover;
  object-position: 40% 20%;
}

#mineown2 {
  object-fit: cover;
  object-position: 0% 0%;
}

.mining-content-section {
  background-color: #e3f2fd;
}

.mining-contents {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.mining-content {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mining-content .video {
  width: 100%;
  height: 200px;
}

.mining-content .video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.mining-content h3 {
  margin-top: 10px;
  font-size: 18px;
}

.contact-section {
  background-color: #f9fbe7;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .name-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.contact-form .input-group {
  flex: 1;
}

.contact-form label {
  font-size: 18px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-form textarea {
  resize: vertical;
  height: 100px;
}

.submit-button {
  background-color: #3949ab;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #07128a;
}

footer {
  background-color: #07128a;
  color: white;
  text-align: center;
  padding: 25px 0;
  padding-bottom: 30px;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 25px;
  padding-bottom: 3px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-address p {
  padding-bottom: 22px;
}

.footer-links a {
  color: rgb(192, 191, 191);
  text-decoration: none;
  margin: 0 15px;
  font-size: 16px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-bottom: 0px;
  height: 70px;
}

#youtlogo2 {
  width: 80px;
}
#wechat2 {
  padding-left: 0;
  margin-left: 0;
  object-fit: cover;
  width: 68px;
}
.social-links a {
  padding-bottom: 0px;
  margin-bottom: 0px;
  height: 12px;
}

.social-links a img {
  width: 26px;
  height: 26px;
}

/* General styles for small screens (mobile phones) */
@media (max-width: 600px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .socialstop {
    margin-bottom: 10px;
  }

  .contact-link {
    margin-top: 10px;
  }

  .navbar {
    padding: 10px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 0;
  }

  .menu-toggle {
    display: block;
    position: relative;
    top: auto;
    right: auto;
    margin-top: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    display: none;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-links.active li {
    width: 100%;
    text-align: center;
  }

  .nav-links.active li a {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .nav-links.active .logo {
    display: block;
    margin-bottom: 10px;
  }

  .search-container {
    margin: 10px 0;
  }
  .cimg3 {
    height: 240px;
  }
  .hero-section {
    height: auto;
    object-fit: cover;
    padding: 20px 10px;
  }

  .hero-content {
    width: 90%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    padding: 8px;
  }
  .hero-content h1 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .hero-content p {
    font-size: 15.5px;
  }
  .carousel-button {
    padding: 10px;
  }
  .dots {
    display: none;
  }
  .gallery {
    flex-direction: column;
    gap: 10px;
  }

  .gallery-item img {
    height: auto;
  }

  .video-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .video-content .content,
  .video-content .video {
    order: initial;
    width: 90%;
    padding: 10px;
  }

  .video-content .video img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .mining-contents {
    flex-direction: column;
    gap: 10px;
  }

  .mining-content {
    width: 90%;
    margin: 0 auto;
  }

  .contact-form {
    width: 100%;
  }

  .name-container {
    flex-direction: column;
    gap: 10px;
  }

  .footer-content {
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-address {
    margin-top: 10px;
  }
}

/* General styles for medium screens (tablets) */
@media (min-width: 601px) and (max-width: 1024px) {
  .top-bar {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }
  

  .socialstop {
    margin-bottom: 10px;
  }

  .contact-link {
    margin-top: 10px;
  }

  .navbar {
    padding: 10px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 0;
  }

  .menu-toggle {
    display: block;
    position: relative;
    top: auto;
    right: auto;
    margin-top: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    display: none;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-links li {
    padding: 10px 0;
  }

  .nav-links.active .logo {
    display: block;
    margin-bottom: 10px;
  }

  .search-container {
    margin: 10px 0;
  }

  .hero-section {
    height: auto;
    padding: 20px 10px;
  }

  .hero-content {
    width: 90%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
  }
  .hero-content h1 {
    font-size: 42px;
  }

  .carousel-button {
    padding: 10px;
  }

  .gallery {
    flex-direction: column;
    gap: 10px;
  }

  .gallery-item img {
    height: auto;
  }

  .video-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .video-content .content,
  .video-content .video {
    order: initial;
    width: 90%;
    padding: 10px;
  }

  .video-content .video img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .mining-contents {
    flex-direction: column;
    gap: 10px;
  }

  .mining-content {
    width: 90%;
    margin: 0 auto;
  }

  .contact-form {
    width: 100%;
  }

  .name-container {
    flex-direction: column;
    gap: 10px;
  }

  .footer-content {
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-address {
    margin-top: 10px;
  }
}

/* Custom styles for dropdown list on mobile */
.dropdown-content.show {
  display: block;
  position: relative;
  width: 100%;
  box-shadow: none;
  border-radius: 0;
  background-color: #07128a;
}

.dropdown-content a {
  padding: 10px 20px;
}

.dropdown-content a:hover {
  background-color: #3949ab;
}


/* Custom styles for nav link interactions */
.nav-links li a:active,
.top-bar .contact-link a:active {
  background-color: #07128a;
  color: white;
  transform: scale(0.98);
  transition: transform 0.1s;
}

#hx1 {
  object-fit: cover;
  height: 480px;
}
#hx2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
#hx3 {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 20px;
}
#hx4 {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}
