* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: "Segoe UI", sans-serif;
    line-height: 1.6;
  }
  .header {
    background: #fff;
    padding: 1rem 2rem;
    
  }
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    height: 90px;
    width: 150px;
    border-radius: 40px;
  }
  
  .search-form {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 600px; 
  }
  
  .search-form input {
    padding: 0.8rem 1rem;
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }
  
  .search-form button {
    padding: 0.8rem 1.5rem;
    background-color: #d70000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .search-form button:hover {
    background-color: #b00000;
  }
  .user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
  }
  .user-actions button {
    background-color: red;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    gap: 5px;
    font-size: 14px;
  }
  .user-actions button:hover {
    background-color: #b00000;
  }
  .nav {
    flex-grow: 1;
  }
  
  .nav-links {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
  }
  
  .nav-links li {
    flex: 1;
    text-align: center;
  }
  
  .nav-links li a {
    display: block;
    padding: 15px 0;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
  }
  
  .nav-links li a:hover,
  .nav-links li a.active {
    background-color: rgb(140, 33, 33);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
    transform: translateY(-2px); 
    transition: all 0.3s ease;
  }
  
  .hero {
    background: url("../images/dich-vu-bg.jpg") center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
  }
  
  .hero-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
  }
  
  .services {
    padding: 3rem 2rem;
  }
  
  .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #d70000;
  }
  
  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .service-card:hover {
    transform: translateY(-5px);
  }
  
  .service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .service-card h3 {
    padding: 1rem;
    font-size: 1.2rem;
    color: #222;
  }
  
  .service-card p {
    padding: 0 1rem 1.5rem;
    font-size: 0.95rem;
    color: #555;
  }
  
  .footer {
    text-align: center;
    padding: 1rem;
    background: #eee;
    margin-top: 3rem;
  }
  .slideshow-container {
    max-width: 1300px;
    position: relative;
    margin: auto;
    height: 600px; 
    overflow: hidden;
  }
  
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: red;
  }
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  .prev:hover,
  .next:hover {
    background-color: rgb(0, 0, 0, 0.8);
  }
  
  .text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
  }
  .dot {
    display: inline-block;
    border-radius: 100%;
    width: 20px;
    height: 20px;
    background-color: #999;
    cursor: pointer;
  }
  .dot:hover {
    background-color: #555;
  }
  .dot.active {
    background-color: #555;
  }
  
  .custom-header {
    display: flex;
    background-color: red;
    color:#000;
    font-family: Arial, sans-serif;
    margin-bottom: 15px;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .dropdown {
    position: relative;
    display: inline-block;
    margin-right: 10px;
  }
  
  .dropdown-toggle {
    background-color: #000;
    color: #fff;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 18px;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    width: 300px; 
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
    border-radius: 4px;
    overflow: hidden;
    font-size: 16px;
    font-family: Arial, sans-serif;
  }
  
  .dropdown-menu.show {
    display: block;
  }
  
  .dropdown-menu li {
    list-style-type: none;
  }
  
  .dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #d70000;
  }
  .labs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;

}

.lab-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

h3 a {
    text-decoration: none;
    color: #333;
}

p a {
    text-decoration: none;
    color: black;
    margin-bottom: 5px;
    display: block;
}

p a:hover {
    text-decoration: underline;
}

.btn {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 15px;
    background-color: red;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}

.btn:hover {
    background-color: rgb(123, 29, 29);
}
@media (max-width: 1024px) {
  .header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    width: 100%;
    margin-top: 1rem;
  }

  .user-actions {
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 10px;
  }

  .custom-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links li {
    text-align: left;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .logo {
    width: 120px;
    height: auto;
  }

  .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-form input,
  .search-form button {
    width: 100%;
  }

  .service-grid,
  .labs-container {
    grid-template-columns: 1fr;
  }

  .slideshow-container {
    height: auto;
  }

  .hero {
    height: 200px;
    padding: 1rem;
  }

  .hero-text {
    padding: 1rem;
    font-size: 1rem;
  }

  .dropdown-menu {
    width: 100%;
  }

  .dropdown-toggle {
    font-size: 16px;
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.5rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .service-card img {
    height: 150px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 14px;
  }

  .text {
    font-size: 12px;
  }

  .dropdown-toggle {
    font-size: 14px;
    padding: 8px 12px;
  }

  .prev,
  .next {
    font-size: 14px;
    padding: 10px;
  }

  .dot {
    width: 14px;
    height: 14px;
  }
}

  