/* ================================ General ================================ */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img, video {
  max-width: 100%;
  height: auto;
}
/* ================================ Header ================================ */
.header {
    background-color: #0d2c40;
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right .contact-info {
    background-color: #0d2c40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-right .contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.4;
    min-width: 180px;
}

.header-right .contact-card span {
    display: block;
    color: #333;
}

.header-right span {
    margin-left: 15px;
    font-size: 14px;
}

.header-contact-info {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-name,
.contact-number {
    font-style: italic;
}

.logo {
    height: 40px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
    font-weight: bold;
}

.main-nav ul li a:hover {
    background-color: #1a4d70;
}

/* ================================ Hero Section ================================ */
.hero {
    background: url('img/hero.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 150px 0;
    height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 4px 3px 0px rgba(0, 0, 0, 1);
}

.hero-content p {
    font-size: 1.2em;
    max-width: 850px;
    margin: 0 auto 30px;
    text-shadow: 2px 1px 1px rgba(0, 0, 0, 1);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

/* ================================ Common Sections ================================ */
section {
    padding: 78px 0;
	background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    color: #0d2c40;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: #007bff;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about-section {
  background: #fff;
  padding: 80px 20px;
  font-family: "Segoe UI", sans-serif;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.section-header .underline {
  display: block;
  width: 60px;
  height: 3px;
  background: #2563eb;
  margin: 0 auto;
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease;
}

.about-image img:hover {
  transform: scale(1.03);
}

.about-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0rem;
  color: #111827;
}

.about-content p {
  color: #374151;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.value-card {
  background: #fff;
  padding: 0 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-card i {
  font-size: 1.4rem;
  color: #2563eb;
  margin-bottom: 0.6rem;
}

.value-card h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: #1f2937;
}

.value-card p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ================================ Services Section ================================ */
.services {
    background: url('img/dichvu11.png') no-repeat center center/cover;
    background-color: #f9f9f9;
    text-align: center;
    padding: 150px 0;
    height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.services-content h1,
.services-content h2 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 4px 3px 0px rgba(0, 0, 0, 1);
    color: #fff;
}

.services-content p {
    font-size: 1.2em;
    max-width: 850px;
    margin: 0 auto 30px;
    text-shadow: 2px 1px 1px rgba(0, 0, 0, 1);
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.2em;
    font-weight: 500;
    color: #fff;
}

/* --- Carousel style cho #services --- */
#services, 
#services-slide {
    width: 100%;
    height: 90vh;
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-item {
    flex: 0 0 100%;
    height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-caption {
    position: absolute;
    color: #fff;
    text-align: center;
    padding: 100px;
    border-radius: 10px;
	text-shadow: 2px 1px 0px rgba(0, 0, 0, 1);
}

#services h2 {
    font-size: 48px;
    font-weight: 600;
    color: #fff;
}

#services p {
    font-size: 20px;
    color: #eee;
}

@media (max-width: 768px) {
    #services h2 {
        font-size: 28px;
    }
    #services p {
        font-size: 16px;
    }
}

/* Nút điều khiển */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 2rem;
    z-index: 10;
    user-select: none;
	margin: 78px 0;
}

.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }

/* Chấm chỉ báo */
.carousel-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators div {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.carousel-indicators .active {
    opacity: 1;
}

/* ================================ Contact Section ================================ */
.contact {
    background-color: #fff;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-form {
    flex: 2;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 303px;
}

.contact-info {
    flex: 1;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin: 10px 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-form form input,
.contact-form form textarea {
    width: 100%;
}

.map-placeholder {
    margin-top: 20px;
}

/* ================================ Footer Section ================================ */
.footer {
    background-color: #0a1a2f;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-left img {
    height: 100px;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #38bdf8;
}

.footer-contact {
    text-align: center;
    font-size: 0.875rem;
    color: #cccccc;
}

.footer-contact a {
    color: #38bdf8;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: #cccccc;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer-contact {
        text-align: right;
    }
}

/* ===== RESPONSIVE CHO MOBILE ===== */
@media (max-width: 768px) {
  /* Giảm padding cho header, logo nhỏ lại */
  header {
    padding: 10px 0;
  }
  .logo h1 {
    font-size: 1.2rem;
  }

  /* Menu xuống dạng cột */
  .main-nav ul {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #0d2c40;
    width: 220px;
    padding: 15px;
    display: none;
    box-shadow: -2px 4px 10px rgba(0,0,0,0.2);
  }
  .main-nav ul.active {
    display: flex;
  }

  /* Hiển thị nút hamburger */
  .menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
    color: white;
  }

  /* Hero co giãn, không bị cắt chữ */
  .hero {
    padding: 80px 15px;
    height: auto;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-content p {
    font-size: 1rem;
  }

  /* Carousel caption nhỏ lại */
  .carousel-caption {
    font-size: 0.9rem;
    padding: 15px;
  }

  /* Các section bớt padding để tiết kiệm không gian */
  section {
    padding: 40px 10px;
  }

  /* Contact chuyển sang xếp dọc */
  .contact-content {
    flex-direction: column;
    gap: 20px;
  }

  /* Form input full width */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
  }
}

/* ================================ Responsive ================================ */
@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
    }

    .header-right {
        display: none; /* Ẩn thông tin liên hệ ở header khi màn hình nhỏ */
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        background: #0d2c40;
        position: absolute;
        top: 60px;
        right: 0;
        width: 70%;
        padding: 20px;
        border-radius: 0 0 0 10px;
    }

    .main-nav ul.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        color: #fff;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px;
        height: auto;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: 40px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
    }

    .carousel-caption {
        padding: 20px;
        font-size: 0.9rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        font-size: 1.5rem;
    }

    .carousel-indicators {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 32px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        margin: 10px 0;
    }
}
