/*
Theme Name:M4H Template Child
Description: This is a child theme for Flatsome Theme
Author: M4H
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

body, html{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000; 
}

/* css tăng tốc ưu tiên hiển thị slide đầu tiên  */
/* Hiển thị slide đầu tiên ngay khi HTML tải */
.ux-slider .ux-slide:first-child {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
}
.ux-slider .ux-slide {
    transition-delay: 0s !important;
    animation-delay: 0s !important;
}

.shadow-lg {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* css cho list phan  */

.steps-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
}

.step-number {
    background-color: #115c43;
    color: white;
    font-weight: 700;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 18px;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #033d2d;
}

.step-content p {
    margin: 4px 0 0;
    line-height: 1.6;
    color: #475569;
}

@media (max-width: 600px) {
    .steps-container {
        padding: 20px;
    }
    .step {
        flex-direction: column;
    }
    .step-number {
        margin-bottom: 10px;
    }
}

/* css cho out-process */
.process-steps-our-process {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Inter", Arial, sans-serif;
  color: #0b1730;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.icon-our-process {
  background: #064d32;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.steps-number {
  font-size: 13px;
  font-weight: 600;
  color: #064d32;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.steps h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.steps p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: #444;
}

/* Responsive */
@media (max-width: 600px) {
  .steps {
    flex-direction: column;
    text-align: left;
  }
  .icon-our-process {
    margin-bottom: 10px;
  }
}

/* emd css for out-process */

.menu_footer a {
    --tw-text-opacity: 1 !important;
    color: rgb(148 163 184 / var(--tw-text-opacity, 1)) !important;
}
.menu_footer>.ux-menu-link--active a {
    color: #fff !important;
}
.menu_footer a:hover{
		color: #fff !important;
}

/* project css  */

.projects-archive {
  background: #f0f6f3;
  padding: 60px 0;
}

.projects-archive .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.projects-header {
  text-align: center;
  margin-bottom: 50px;
}

.projects-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #0b1730;
  margin-bottom: 10px;
}

.projects-header p {
  font-size: 16px;
  color: #4a5568;
  max-width: 700px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  position: relative;
  display: block;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  height: 400px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.project-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}

.project-card:hover .project-thumb {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
}

.project-overlay h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}

.project-overlay .category {
  font-size: 14px;
  opacity: 0.9;
}

.project-overlay .view-link {
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
}

.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 2px;
  border-radius: 5px;
  background: #fff;
  color: #064d32;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pagination .current {
  background: #064d32;
  color: #fff;
}
