﻿/*
Theme Name: AngDuong Theme
Theme URI: http://angduong.vn/
Author: Mạnh Hùng
Description: Giao diện giới thiệu công ty Áng Dương
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: angduong-theme
*/

#header, #headerimg {
    display: none !important;
}

#body {
  font-family: Arial, sans-serif;
}
/*-- Về Áng Dương --*/
.hero {
  position: relative;
  width: 100%;
  height: 600px; /* bạn chỉnh chiều cao tùy ý */
  background: url('assets/images/homepage/nuts-and-bolts.jpg') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3); /* lớp phủ làm chữ nổi bật */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #fff;
}

.hero p {
  font-size: 30px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.btn-hero {
  display: inline-block;
  background: #4CAF50;
  color: #fff;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn-hero:hover {
  background: #45a049;
}


/*-- Mục tiêu - Nhiệm vụ - Trách nhiệm xã hội --*/
.section-goals {
  display: flex;
  gap: 20px;
  margin: 60px auto;
  justify-content: center;
  flex-wrap: wrap;
}
.goals-box {
  background: #5eb949; /* xanh lá */
  color: #fff;
  flex: 1;
  min-width: 280px;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.goals-box h3 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
  border-bottom: 2px solid #fff;
  display: inline-block;
  padding-bottom: 5px;
}
.goals-box ul {
  list-style: disc inside;
  margin: 0;
  padding: 0;
}
.goals-box li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/*-- Lịch sử hình thành --*/
:root{
  /* có thể chỉnh kích thước 1 item cho desktop tại đây */
  --item-w: 260px;
  --gap: 24px;
  --brand: #5eb949;     /* xanh chủ đạo */
  --brand-dark: #0d47a1;
  --bg: #f5f7fa;
  --card-shadow: 0 10px 20px rgba(0,0,0,.08);
}

*{ box-sizing: border-box; }

.section-title{
  text-align: center;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: clamp(22px, 2.5vw, 34px);
  margin: 40px 16px 24px;
  text-transform: uppercase;
}

.timeline-section{ padding: 10px 0 0px; }

.timeline-viewport{
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  padding: 48px 64px;     /* chừa chỗ cho nút 2 bên */
  overflow: hidden;       /* viewport */
}

.timeline-line{
  position: absolute;
  left: 64px; right: 64px;      /* khớp padding của viewport */
  top: 78px;                    /* nằm dưới “năm” */
  height: 4px;
  background: var(--brand);
  border-radius: 4px;
  z-index: 1;
}

.timeline-track{
  position: relative;
  display: flex;
  gap: var(--gap);
  transform: translateX(0);
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  z-index: 2; /* nổi trên line */
}

.timeline-item{
  flex: 0 0 var(--item-w);
  text-align: center;
  position: relative;
}

.year{
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 12px rgba(25,118,210,.25);
}

.stick{
  width: 3px;
  height: 48px;
  margin: 10px auto 0;
  background: var(--brand);
  border-radius: 3px;
}

.card{
  margin-top: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--card-shadow);
  line-height: 1.55;
  font-size: 15px;
  text-align: left;
  min-height: 120px;
}

/* nút điều hướng */
.nav-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: #fff;
  color: var(--brand);
  font-size: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  z-index: 3;
}
.nav-btn:hover{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(25,118,210,.25);
}
.nav-prev{ left: 12px; }
.nav-next{ right: 12px; }

/* Responsive: thu nhỏ item và khoảng cách */
@media (max-width: 1024px){
  :root{ --item-w: 220px; --gap: 20px; }
  .timeline-viewport{ padding: 44px 56px; }
  .timeline-line{ left: 56px; right: 56px; top: 74px; }
}
@media (max-width: 768px){
  :root{ --item-w: 200px; --gap: 16px; }
  .timeline-viewport{ padding: 40px 44px; }
  .timeline-line{ left: 44px; right: 44px; top: 72px; }
  .card{ font-size: 14px; }
}
@media (max-width: 520px){
  :root{ --item-w: 85vw; --gap: 16px; }
  .timeline-viewport{ padding: 36px 48px; }
  .timeline-line{ left: 48px; right: 48px; top: 70px; }
  .nav-btn{ width: 44px; height: 44px; }
}



/*-- Sơ đồ tổ chức --*/
.organization {
  padding: 60px 20px;
}
.organization-image img {
  max-width: 100%;
  height: auto;
}

/*-- Sản phẩm --*/
/* ===== PRODUCT SECTION ===== */
#productTab {
  justify-content: center;
  border-bottom: 2px solid #eee;
  flex-wrap: wrap;
}

#productTab .nav-link {
  margin: 5px;
  border: none;
  background: #f5f5f5;
  color: #333;
  font-weight: 600;
  border-radius: 30px;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

#productTab .nav-link:hover {
  background: #5eb949;
  color: #fff;
}

#productTab .nav-link.active {
  background: #5eb949;
  color: #fff;
}

.tab-content {
  margin-top: 20px;
}

.product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-row .col-md-3 {
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.product-row .col-md-3 img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.product-row .col-md-3 img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 992px) {
  .product-row .col-md-3 {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

@media (max-width: 768px) {
  .product-row .col-md-3 {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 576px) {
  .product-row .col-md-3 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/*-- Hệ thống máy móc sản xuất --*/
/* Ảnh máy móc */
.machine-img {
  width: 80%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}
/* Chú thích trong ảnh */
.custom-caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-transform:uppercase;
  width: 80%;
  height:70px;
  background: #5eb949;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 20px 12px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
/* Nút điều hướng carousel */
#machineCarousel .carousel-control-prev,
#machineCarousel .carousel-control-next {
  width: auto;              /* bỏ chiếm full chiều ngang */
  height:50px;
  top: 50%;
  transform: translateY(-50%);
  background: #5eb949;
  padding: 12px;
}
#machineCarousel .carousel-control-prev-icon,
#machineCarousel .carousel-control-next-icon {
  filter: invert(1); /* icon trắng */
  width: 24px;
  height: 24px;
}

/*-- CÁC DỰ ÁN TIÊU BIỂU --*/
#projects img {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#projects img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/*-- CHỨNG CHỈ VÀ CHỨNG NHẬN --*/
/* ===== CHỨNG CHỈ & CHỨNG NHẬN ===== */
.certificates {
  padding: 40px 0;
  text-align: center;
}

/* Grid 3 cột ngang */
.certificates .cert-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 50px;
}
/* Mỗi item */
.certificates .cert-item {
  flex: 1 1 30%;
  max-width: 400px;
  text-align: center;
}
/* Ảnh chứng chỉ */
.certificates .cert-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.certificates .cert-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}


/*-- Footer --*/
footer {
	background-color:#5eb949;
}
footer h5 {
	font-size:1.3rem;
	font-weight:bold;
}
footer p {
  margin-bottom: 6px;
  font-size: 17px;
}

