/* --- General & Variables --- */
:root {
  --primary-color: #00bcd4; /* Màu xanh ngọc */
  --dark-bg: #111;
  --dark-card-bg: #222831;
  --light-text: #ffffff;
  --grey-text: #eeeeee;
  --footer-bg: linear-gradient(90deg, #63d0e4, #a0e6f0);
  --dzido: #fff700;
}

body {
  background: radial-gradient(circle, #a8edea 0%, #fed6e3 100%);
  font-family: Arial, sans-serif;
  margin: 0;
  color: var(--light-text);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 15px;
}

h1,
h2,
h3 {
  font-weight: bold;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

/* --- Header --- */
.main-header {
  background-color: var(--dark-bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 0;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  text-decoration: none;
  margin-left: -150px;
  margin-right: 320px;
}
main-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}
.main-nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav ul li {
  display: flex;
  align-items: center;
}
.main-nav ul li a {
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 10px 0;
  background: none;
  border: none;
  transition: color 0.2s;
  position: relative;
}

/* 2. Hiệu ứng khi di chuột (hover) vào các mục menu */
.main-nav ul li a:hover {
  color: var(--primary-color);
}

/* 3. Hiệu ứng đặc biệt cho mục đang được chọn (active) */
.main-nav ul li a.active {
  background: linear-gradient(
    90deg,
    #833ab4,
    #fd1d1d,
    #fcb045
  ); /* Màu gradient như cũ */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

/* Thêm gạch chân chuyển động cho mục active */
.main-nav ul li a.active::after {
  content: "";
  display: block;
  margin: 6px auto 0 auto;
  width: 60%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    #833ab4,
    #fd1d1d,
    #fcb045
  ); /* Gạch chân cùng màu gradient */
}

/* 4. Hiệu ứng cho nút "Yêu cầu tư vấn" */
.cta-button {
  background: var(--primary-color);
  color: #fff !important; /* Ghi đè màu của thẻ a */
  padding: 10px 25px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px); /* Nhấc nút lên một chút */
  box-shadow: 0 10px 20px -8px var(--primary-color); /* Đổ bóng chuyên nghiệp */
}

/* Đảm bảo nút "Yêu cầu tư vấn" nằm ngoài <ul> và căn phải */
.cta-button.desktop-only-cta {
  margin-left: 32px;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 32px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.15rem;
  display: inline-block;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0, 188, 212, 0.08);
  border: none;
  text-align: center;
}
.cta-button.desktop-only-cta:hover {
  background: #0097a7;
  color: #fff;
}

/* --- Hero Section --- */
#hero {
  color: var(--light-text);
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: left;
  background-image: url("../images/hero-image.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  padding-top: 0px;
}
.hero-image {
  margin-top: 40px; /* Tăng giá trị này nếu muốn ảnh xuống thấp hơn nữa */
}

.hero-content h1 {
  font-family: "Fredoka", cursive, Arial, sans-serif;
  font-size: 4.5rem;
  margin-bottom: 20px;
  margin-top: 0;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  color: var(--light-text);
}

.hero-content p {
  font-family: "Fredoka", cursive, Arial, sans-serif;
  font-size: 1.6rem; /* Tăng kích thước một chút */
  margin-bottom: 30px;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
  color: var(--light-text);
}
.btn-welcome {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 2rem;
  font-weight: bold;
  border: none; /* Bỏ đường viền mặc định */
  cursor: pointer;
  transition: all 0.3s ease-out;
}

/* Hiệu ứng NỔI BẬT & PHÁT SÁNG khi di chuột vào */
.btn-welcome:hover {
  background-color: #000000; /* Màu xanh ngọc đậm hơn */
  transform: translateY(-4px); /* Nổi lên cao hơn một chút */
  box-shadow: 0px 8px 15px rgba(0, 188, 212, 0.4); /* Tạo bóng đổ màu xanh để có cảm giác phát sáng */
}

/* --- Sections General --- */

section h2 {
  text-align: center;
  font-size: 3rem; /* Tăng từ 2.5rem lên 3rem */
  margin-bottom: 50px; /* Tăng khoảng cách dưới một chút */
  font-weight: bold; /* Đảm bảo chữ luôn đậm */
}

/* --- Featured Post Section (ĐÃ CẬP NHẬT)--- */
#featured-post {
  background: radial-gradient(circle, #a8edea 0%, #fed6e3 100%);
  margin-top: 0;
  padding-top: 0;
}

.featured-post-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  color: white;
  height: 450px;
  display: flex;
  align-items: flex-end;
  object-fit: fill;
}

.featured-post-bg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.7);
  transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-post-bg {
  transform: scale(1.05);
}

.featured-post-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.featured-post-content h3 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.featured-post-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 80%;
}

.btn-read-more {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.btn-read-more:hover {
  background-color: #0097a7;
}

/* --- Other Posts Section --- */
#other-posts {
  background-color: var(--primary-color);
  color: var(--light-text);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.post-card-link {
  text-decoration: none;
  color: inherit;
  display: flex; /* SỬA Ở ĐÂY: Đảm bảo thẻ a co dãn theo nội dung */
  height: 100%;
}

.post-card {
  background-color: var(--dark-card-bg);
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  background-color: #3c4f62; /* Màu nền mới khi hover */
}

.post-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 15px;
}
.post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.post-card a {
  color: var(--primary-color);
  font-weight: bold;
}

/* --- Footer --- */
.main-footer {
  background: linear-gradient(to right, #5ca9d6, #8bc6e8, #e6f4fb);
  color: #000000; /* ĐỔI: Màu chữ xám đậm, dễ đọc */
  padding-top: 60px;
  font-size: 0.95rem; /* Giảm kích thước chữ một chút cho thanh lịch hơn */
  border-top: 1px solid #e9ecef; /* Thêm một đường kẻ mỏng ở trên */
}

.main-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px 40px; /* (hàng cột) */
  margin-bottom: 50px;
}

.main-footer .footer-column h4 {
  font-size: 1.1rem; /* Kích thước tiêu đề nhỏ hơn, tinh tế hơn */
  font-weight: 600;
  color: #000000; /* Màu tiêu đề đen mờ */
  margin-bottom: 20px;
}

/* Bỏ gạch chân, giữ sự tối giản */
.main-footer .footer-column h4::after {
  display: none;
}

.main-footer p,
.main-footer .footer-column ul,
.main-footer .footer-column li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-footer .footer-column p {
  margin-bottom: 10px;
}

/* Icon không màu nền, đồng bộ với chữ */
.main-footer .footer-column i {
  margin-right: 12px;
  color: #000000; /* Màu icon xanh xám nhẹ nhàng */
  width: 20px;
  text-align: center;
}

.main-footer .footer-column ul li a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 6px 0;
  display: inline-block;
}

.main-footer .footer-column ul li a:hover {
  color: var(--primary-color, #007bff); /* Đổi sang màu chính khi di chuột */
}

/* --- Social Icons phiên bản tối giản --- */
.main-footer .social-icons {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.main-footer .social-icons a {
  color: #869ab8; /* Màu icon xám xanh */
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.main-footer .social-icons a:hover {
  color: var(--primary-color, #007bff);
  transform: scale(1.1); /* Hiệu ứng phóng to nhẹ */
}

/* --- Copyright Bar tích hợp --- */
.copyright-bar {
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid #e9ecef; /* Đường kẻ mảnh phân tách */
  margin-top: 40px;
}

.copyright-bar p {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d; /* Màu chữ xám */
}
/* --- NEW: Featured Article Section (Trang Bai-viet.php) --- */
.featured-article-card {
  display: flex;
  background-color: var(--dark-card-bg);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  padding: 25px 30px;
  gap: 30px;
  align-items: stretch;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-article-left {
  flex: 2;
  display: flex;
  gap: 20px;
  align-items: center;
}

.featured-article-left .author-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.featured-article-left .article-content {
  display: flex;
  flex-direction: column;
}

.featured-article-left h3 {
  font-size: 1.6rem;
  margin: 0 0 10px 0;
  color: var(--light-text);
}

.featured-article-left .excerpt {
  font-size: 1rem;
  color: var(--grey-text);
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.featured-article-left .read-more-link {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 20px;
}

.featured-article-left .author-credit {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  text-align: center;
}

.featured-article-left .author-credit h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--light-text);
}

.featured-article-left .author-credit p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--grey-text);
}

.featured-article-right {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 30px;
}

.featured-article-right .quote-display {
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--grey-text);
  text-align: center;
  margin: 0;
}

.featured-article-right .quote-display::before {
  content: "“";
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  opacity: 0.5;
  transform: translate(-130%, -40%);
}

/* --- Text-based Posts Section (Trang Bai-viet.php) --- */
#text-posts {
  background-color: #222831; /* Nền tối */
  padding: 60px 0;
}

.post-card.text-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Đẩy link "Xem thêm" xuống dưới */
  padding: 25px;
  color: var(--light-text);
}

.post-card.text-card h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-top: 0;
}

.post-card.text-card p {
  flex-grow: 1; /* Làm cho thẻ p chiếm không gian còn lại */
  color: var(--grey-text);
}

/* --- LinkedIn CTA Section (Trang Bai-viet.php) --- */
#linkedin-cta {
  text-align: center;
  padding: 20px 0;
}

.btn-linkedin {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn-linkedin:hover {
  background-color: #008a9a; /* Màu đậm hơn khi hover */
}

/* --- General Body & h2 Overrides for Bai-viet.php --- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  color: var(--light-text); /* Change default text color to light */
}

section h2 {
  color: black;
  padding-top: 0;
  padding-bottom: 0;
}

/* Remove background color from sections on bai-viet.php to show the body's gradient */
#featured-article,
#other-posts,
#text-posts {
  background: radial-gradient(circle, #a8edea 0%, #fed6e3 100%);
}
#all-posts {
  background: radial-gradient(circle, #a8edea 0%, #fed6e3 100%);
  padding-top: 90px;
  padding-bottom: 20px;
}
#other-posts {
  padding-bottom: 20px;
}

/* --- Grid and Card Adjustments for Bai-viet.php --- */
#all-posts .posts-grid {
  grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
}

#all-posts .post-card {
  display: flex;
  flex-direction: column;
}

#all-posts .post-card h3 {
  flex-grow: 1; /* Pushes the "Read more" link to the bottom */
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  #all-posts .posts-grid {
    /* Fallback to auto-fit for tablets and smaller */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .featured-article-card {
    flex-direction: column;
  }
  .featured-article-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 0;
    padding-top: 25px;
  }
  .featured-article-right .quote-display::before {
    display: none; /* Hide decorative quote on mobile to save space */
  }
}

@media (max-width: 600px) {
  #hero {
    background-image: url("../images/hero-image1.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 70vh !important;
    padding-top: 30px !important;
    align-items: flex-start !important;
  }
  .hero-content {
    padding: 0 10px !important;
    width: 100%;
    box-sizing: border-box;
    text-align: center !important;
  }
  .hero-content h1 {
    font-size: 0.3rem !important;
    margin-bottom: 10px !important;
    margin-top: 10px !important;
    margin-right: 20px !important;
    padding-right: 0 !important;
    word-break: break-word;
  }
  .hero-content p {
    margin-bottom: 10px !important;
    margin-right: 50px !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    text-align: center !important;
  }
  .btn-welcome {
    font-size: 1rem !important;
    padding: 10px 0 !important;
    margin-left: 20px !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    width: 100% !important;
    display: block;
  }
  #featured-post {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  #featured-post h2 {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding-top: 0 !important;
    font-size: 1.3rem !important;
  }
  .btn-read-more {
    float: none !important;
    margin: 16px auto 0 auto !important;
    display: block !important;
    font-size: 1rem !important;
  }
  .featured-post-content {
    padding: 10px !important;
    width: 100%;
  }
  .featured-post-card {
    height: 170px !important;
    border-radius: 8px;
  }
  .featured-post-bg,
  .featured-post-card img {
    width: 100% !important;
    height: 170px !important;
    object-fit: cover !important;
    display: block;
    max-width: 100%;
  }
  #other-posts h2 {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    font-size: 1.3rem !important;
  }
  #other-posts {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .posts-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .post-card {
    padding: 10px !important;
  }
}

@media (max-width: 768px) {
  .main-header .container {
    .logo {
      font-size: 2rem;
      font-weight: bold;
      color: #fff;
      letter-spacing: 1px;
      text-decoration: none;
      margin-left: 0; /* Sửa lại từ -150px thành 0 */
      margin-right: 29px;
    }
    align-items: center;
  }
  .quote-text {
    font-size: 1.2rem;
  }
  .quote-text::before,
  .quote-text::after {
    font-size: 3rem;
  }
  #hero {
    background-size: contain !important; /* Ảnh vừa với chiều rộng màn hình */
    background-repeat: no-repeat !important;
    background-position: top center !important;
    min-height: 200px !important;
    height: auto !important;
    padding-top: 10px !important;
    text-align: center !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  .hero-content h1 {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
    margin-top: 10px !important;
    padding-right: 120px !important;
  }
  .hero-content p {
    font-size: 0.8rem !important;
    margin-bottom: 20px !important;
    text-align: left !important;
    padding-right: 35px !important;
  }
  .btn-welcome {
    font-size: 1.1rem;
    padding: 12px 10px;
    margin-left: 35px !important;
    margin-right: 0px !important;
    width: 50% !important;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    display: block;
    margin: 0 auto;
  }
  #featured-post {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  #featured-post h2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    font-size: 2rem !important;
  }
  .btn-read-more {
    float: right !important;
    margin-right: 24px !important;
    margin-top: 40px !important;
  }
  .featured-post-content {
    position: relative;
    z-index: 2;
    padding: 20px !important;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  }
  .featured-post-card {
    height: 205px !important;
  }
  .featured-post-bg {
    width: 100%;
    height: auto;
    display: block;
    object-fit: fill;
    max-width: 100%;
  }
  #other-posts h2 {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    font-size: 2rem !important;
  }
  #other-posts {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .featured-post-card img {
    height: 200px;
  }
  .featured-article-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .featured-article-left .author-credit {
    align-self: stretch;
  }
  .featured-article-left .read-more-link {
    align-self: center;
  }
}

@media (max-width: 1024px) {
  .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
    margin-left: 0; /* Sửa lại từ -150px thành 0 */
    margin-right: 29px;
  }
  #hero {
    background-size: cover !important;
    background-position: center !important;
    min-height: 350px !important;
    height: auto !important;
    padding-top: 30px !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .hero-content {
    padding: 0 30px !important;
    width: 100%;
    box-sizing: border-box;
    text-align: center !important;
  }
  .hero-content h1 {
    font-size: 2.8rem !important;
    margin-bottom: 16px !important;
    margin-top: 16px !important;
    padding-right: 29% !important;
    text-align: center !important;
  }
  .hero-content p {
    font-size: 1.3rem !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    padding-right: 30% !important;
  }
  .btn-welcome {
    font-size: 1.3rem !important;
    padding: 14px 20px !important;
    margin-left: 0px !important;
    margin-right: 0 !important;
    width: 40% !important;
    display: block;
  }
  #featured-post {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  #featured-post h2 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
    font-size: 2.2rem !important;
  }
  .btn-read-more {
    float: right !important;
    margin-right: 32px !important;
    margin-top: 32px !important;
    font-size: 1.1rem !important;
  }
  .featured-post-content {
    padding: 24px !important;
    width: 100%;
  }
  .featured-post-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    color: white;
    height: 270px !important; /* Tăng từ 450px lên 520px hoặc giá trị bạn muốn */
    display: flex;
    align-items: flex-end;
  }
  .featured-post-bg,
  .featured-post-card img {
    width: 100% !important;
    height: 260px !important;
    object-fit: fill !important;
    display: block;
    max-width: 100%;
  }
  #other-posts h2 {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    font-size: 2.2rem !important;
  }
  #other-posts {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
  .post-card {
    padding: 16px !important;
  }
}
/*
==============================================
--- GIOI THIEU (ABOUT) PAGE STYLES ---
==============================================
*/

/* --- General Page Styles --- */
.about-page-content {
  background-image: url("../images/nen.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* Giữ nền cố định khi cuộn (tùy chọn) */
  min-height: 100vh;
  color: black;
}

.about-page-content .section-title {
  color: black;
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

.about-page-content .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.about-page-content section {
  padding: 70px 0;
}

/* --- Hero Section --- */
#about-hero {
  padding: 0;
  min-height: calc(
    100vh - 80px
  ); /* 100vh trừ đi chiều cao của header (ước tính 60px) */
  display: flex;
  align-items: center;
}

#about-hero .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

#about-hero .hero-left {
  flex-basis: 40%;
  text-align: center;
}

#about-hero .profile-image-large {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  border: 3px solid var(--dark-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#about-hero .name-tag {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid var(--grey-text);
  display: inline-block;
}

#about-hero .hero-right {
  flex-basis: 60%;
}

#about-hero h1 {
  font-size: 4rem;
  margin: 0 0 10px 0;
}

#about-hero .tagline {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: black;
}

#about-hero blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin: 0;
  padding-left: 30px;
  border-left: 4px solid var(--primary-color);
  position: relative;
}

#about-hero blockquote::before {
  content: "“";
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  left: -20px;
  top: -25px;
  opacity: 0.6;
}

/* --- Experience Section --- */
#experience .experience-block {
  max-width: 900px;
  margin: 40px auto 0 auto;
  background-color: rgba(34, 40, 49, 0.7);
  padding: 40px;
  border-radius: 15px;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  color: var(--grey-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Philosophy Section --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.philosophy-card {
  background-color: var(--dark-card-bg);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-10px);
  border-color: yellow; /* Đổi màu viền thành màu xanh ngọc */
  box-shadow: 0 0 20px var(--dzido);
}

.philosophy-card .icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 25px auto;
  border-radius: 50%;
  background-color: #28a745;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.philosophy-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.philosophy-card p {
  color: var(--grey-text);
  line-height: 1.6;
}

/* --- Moments Section --- */
#moments {
  padding-bottom: 0;
}

.moments-gallery {
  display: flex;
  gap: 20px;
  background-color: rgba(34, 40, 49, 0.7);
  padding: 20px;
  border-radius: 15px;
  margin-top: 50px;
}

.moment-item {
  flex: 1;
  height: 220px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  overflow: hidden;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.moment-item:hover {
  transform: scale(1.05);
}

.moment-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
  /* NOTE: Thêm transition để hiệu ứng chuyển màu mượt mà */
  transition: background 0.4s ease;
}

/* NOTE: Đây là phần được thêm vào để tạo hiệu ứng màu đỏ khi di chuột */
.moment-item:hover::after {
  background: linear-gradient(to top, rgba(220, 20, 60, 0.7), transparent 70%);
}

.moment-item span {
  position: relative;
  z-index: 2;
}

/* --- Moments Section --- */
#moments {
  padding-bottom: 0;
}

.moments-gallery {
  display: flex;
  gap: 20px;
  background-color: rgba(34, 40, 49, 0.7);
  padding: 20px;
  border-radius: 15px;
  margin-top: 50px;
}

.moment-item {
  flex: 1;
  height: 220px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  overflow: hidden;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.moment-item:hover {
  transform: scale(1.05);
}

.moment-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
  /* Thêm transition để hiệu ứng chuyển màu mượt mà */
  transition: background 0.4s ease;
}

/* Thêm hiệu ứng lớp phủ màu đỏ khi di chuột vào */
.moment-item:hover::after {
  background: linear-gradient(to top, rgba(220, 20, 60, 0.7), transparent 70%);
}

.moment-item span {
  position: relative;
  z-index: 2;
}

/* --- CTA Section --- */
#about-cta {
  text-align: center;
  background: none;
}
#about-cta h2 {
  font-size: 2.5rem;
}
#about-cta p {
  font-size: 1.6rem; /* Chữ bự lên */
  color: var(--dark-bg);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic; /* In nghiêng */
  font-weight: bold; /* In đậm */
  line-height: 1.5;
}
#about-cta .btn-primary-cta {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid var(--primary-color);
}

#about-cta .btn-primary-cta:hover {
  background-color: yellowgreen;
  color: var(--dark-bg);
  transform: translateY(-3px);
}

/* --- Responsive for About Page --- */
@media (max-width: 992px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  #about-hero .container {
    flex-direction: column;
    text-align: center;
  }
  #about-hero .hero-left {
    order: 2;
    text-align: center;
  }
  #about-hero .hero-right {
    order: 1;
  }
  #about-hero blockquote {
    text-align: left; /* Keep quote text left-aligned */
    margin: 0 auto;
    max-width: 80%;
  }
  .moments-gallery {
    flex-direction: column;
  }
}

/*
==============================================
--- LIEN HE (CONTACT) PAGE STYLES ---
==============================================
*/
.contact-page-content {
  background: linear-gradient(160deg, #3098a8, var(--dark-bg) 40%);
  padding: 100px 20px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-container {
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--dark-card-bg);
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.contact-form-container h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--light-text);
}

.contact-form-container p {
  color: var(--grey-text);
  margin-bottom: 40px;
}

.contact-form .form-group {
  margin-bottom: 25px;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--grey-text);
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #2f3640;
  color: var(--light-text);
  font-size: 1rem;
  box-sizing: border-box; /* Important for padding and width */
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.contact-form textarea {
  resize: vertical; /* Allow vertical resizing only */
}

.btn-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #00bcd4, #008c9e);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  /* Cập nhật transition để hiệu ứng mượt mà hơn */
  transition: all 0.3s ease-out;
  margin-top: 10px;
}

.btn-submit:hover {
  background: #28a745; /* Đổi sang màu xanh lá cây */
  transform: translateY(-4px); /* Nút sẽ "nảy" lên trên */
  box-shadow: 0 10px 20px rgba(40, 167, 69, 0.5); /* Tạo bóng đổ phát sáng màu xanh lá */
}
#featured-article h2 {
  color: #222; /* Chuyển thành màu đen đậm */
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15); /* Thêm hiệu ứng bóng đổ mềm */
  position: relative;
  padding-bottom: 20px; /* Thêm khoảng trống cho đường gạch chân trang trí */
}

/* Thêm đường gạch chân trang trí để căn chỉnh đẹp hơn */
#featured-article h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(
    --primary-color
  ); /* Sử dụng màu xanh ngọc của trang web */
  border-radius: 2px;
}
.main-navigation ul li a {
  position: relative; /* Bắt buộc để tạo hiệu ứng gạch chân */
  transition: color 0.4s ease; /* Hiệu ứng chuyển màu chữ mượt mà */
  padding: 5px 0; /* Thêm khoảng đệm để không bị sát */
}

/* Gạch chân trang trí ẩn ban đầu */
.main-navigation ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: var(--primary-color, #007bff); /* Màu gạch chân */
  bottom: -5px; /* Khoảng cách từ chữ tới gạch chân */
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.4s ease; /* Hiệu ứng gạch chân chạy ra */
}

/* Hiệu ứng khi di chuột vào mục menu */
.main-navigation ul li a:hover {
  color: var(--primary-color, #007bff); /* Đổi màu chữ */
}

.main-navigation ul li a:hover::after {
  width: 100%; /* Hiển thị gạch chân */
}

/* --- Hiệu ứng cho nút "Yêu cầu tư vấn" --- */
.main-nav .btn-primary-cta {
  /* Đảm bảo các thuộc tính này đã có */
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;

  /* Hiệu ứng chuyển động */
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.main-nav .btn-primary-cta:hover {
  transform: translateY(-3px); /* Nhấc nút lên một chút */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Đổ bóng chuyên nghiệp hơn */
}

.main-nav .btn-primary-cta:active {
  transform: translateY(-1px); /* Hiệu ứng khi nhấn nút */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* --- Cài đặt ban đầu cho các thành phần mobile --- */
.hamburger-menu {
  display: none; /* Ẩn nút hamburger trên màn hình lớn */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light-text);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}

.mobile-only-cta {
  display: none;
}

@media (max-width: 992px) {
  .desktop-only-cta {
    display: none;
  }
  .mobile-only-cta {
    display: block;
    margin-top: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 0;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.15rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

/* --- Media Query: Áp dụng cho màn hình nhỏ hơn 992px --- */
/* Desktop (min-width: 993px) */
@media (min-width: 993px) {
  .main-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background: none;
    box-shadow: none;
    padding-top: 0;
    left: 0;
    z-index: auto;
  }
  .main-nav ul {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    width: auto;
  }
  .hamburger-menu,
  .mobile-only-cta {
    display: none !important;
  }
  .desktop-only-cta {
    display: inline-block;
  }
}

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  /* Ẩn menu và nút tư vấn của desktop */
  .main-nav ul {
    display: none; /* Ẩn menu ul ban đầu */
  }
  .desktop-only-cta {
    display: none;
  }

  /* Hiện nút hamburger */
  .hamburger-menu {
    display: block;
  }

  /* Thiết lập lại menu để hiển thị trên mobile/tablet */
  .main-nav {
    position: absolute;
    top: 0;
    left: -100%; /* Ẩn menu về phía bên trái */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #1a1a1a;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.35s ease-in-out;
    padding-top: 100px;
    z-index: 1000;
  }

  /* Khi menu được mở, nó sẽ trượt vào */
  .main-nav.is-open {
    left: 0;
  }

  /* Hiển thị lại danh sách menu theo chiều dọc */
  .main-nav.is-open ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .main-nav.is-open ul li {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .main-nav.is-open ul li a {
    font-size: 1.2rem;
    padding: 15px 0;
    display: block;
    width: 100%;
  }

  /* Hiện nút tư vấn trong menu mobile */
  .mobile-only-cta {
    display: block;
    margin-top: 20px;
  }

  /* Hiệu ứng đóng/mở cho nút hamburger */
  .hamburger-menu.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}
/* CSS CHO BÀI VIẾT NỔI BẬT TRÊN TRANG BAI-VIET.PHP */
#featured-article-section {
  padding: 60px 0;
  background: radial-gradient(circle, #a8edea 0%, #fed6e3 100%);
}

.featured-article-card-link {
  display: block;
  text-decoration: none;
  color: #333;
}

.featured-article-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.featured-article-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.featured-article-img-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
}

.featured-article-content {
  padding: 30px;
}

.featured-article-content h3 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0 0 15px 0;
}

.featured-article-content .excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-article-content .read-more-btn {
  font-weight: bold;
  color: var(--primary-color);
}

/*
==================================================
--- TRANG CHI TIẾT BÀI VIẾT (chi-tiet-bai-viet.php) ---
==================================================
*/

.article-page {
  padding: 60px 0;
  background: #f4f7f6;
  color: #333;
}

.article-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 40px;
}

.main-article-column {
  background-color: #ffffff;
  padding: 35px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.main-article-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.featured-image {
  margin: 0 0 30px 0;
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.featured-image figcaption {
  font-size: 0.85rem;
  color: #888;
  text-align: right;
  margin-top: 8px;
  font-style: italic;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.article-body h2 {
  font-size: 1.8rem;
  margin-top: 40px;
}
.article-body h3 {
  font-size: 1.5rem;
  margin-top: 30px;
}
.article-body p {
  margin-bottom: 1.2rem;
}
.article-body ul,
.article-body ol {
  padding-left: 25px;
  margin-bottom: 1.2rem;
}
.article-body blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 20px 0;
}

.article-source {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sidebar-column {
  position: sticky;
  top: 100px;
  align-self: start;
}
.sidebar-column h3 {
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 20px;
}

.sidebar-article-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
  padding: 10px;
  border-radius: 5px;
}
.sidebar-article-item:hover {
  background-color: #e9ecef;
}
.sidebar-article-item img {
  width: 80px;
  height: 60px;
  object-fit: fill;
  border-radius: 5px;
  flex-shrink: 0;
}
.sidebar-article-item p {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}
.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light-text);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
}
.mobile-only-cta {
  display: none;
}

/* --- Media Query: Tablet & Mobile (<= 992px) --- */
@media (max-width: 992px) {
  .main-nav ul {
    display: none;
  }
  .main-nav .cta-button {
    display: none;
  }
  .hamburger-menu {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #1a1a1a;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.35s ease-in-out;
    padding-top: 80px;
    z-index: 1000;
  }
  .main-nav.is-open {
    left: 0;
  }
  .main-nav.is-open ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
  }
  .main-nav.is-open ul li {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }
  .main-nav.is-open ul li a {
    font-size: 1.2rem;
    padding: 15px 0;
    display: block;
    width: 100%;
  }
  .mobile-only-cta {
    display: block;
    margin-top: 20px;
    background: var(--primary-color);
    color: #fff !important;
    padding: 12px 0;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.15rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-column {
    position: static;
    margin-top: 40px;
  }
  .featured-article-card {
    grid-template-columns: 1fr;
  }
  .featured-article-img-wrapper img {
    height: 300px;
  }
}

.hamburger-menu.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-menu.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* --- Media Query: Mobile (< 768px) --- */
@media (max-width: 768px) {
  #hero {
    height: 60vh;
    text-align: center;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .btn-welcome {
    font-size: 1rem;
    padding: 12px 25px;
  }

  section h2,
  .article-list-page .section-title {
    font-size: 2rem;
  }
  .featured-post-card {
    min-height: 300px;
  }

  .main-article-content h1 {
    font-size: 1.8rem;
  } /* Chỉnh cho mobile */
  .article-body {
    font-size: 1rem;
    line-height: 1.7;
  }
  .main-article-column {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .main-footer .social-icons {
    justify-content: center;
  }
  .featured-article-content h3 {
    font-size: 1.5rem;
  }
}
