/* ============================================
   GLOBAL STYLES
   ============================================ */

:root {
  --primary-green: #1a8c3e;
  --primary-blue: #0d6efd;
  --dark-blue: #0a2540;
  --light-bg: #f5f7fa;
  /* Sao Viet theme addition: overridden per-request by an inline
     <style> block (saoviet_print_font_family_css_var() in
     functions.php) based on the "Font chữ toàn trang" field on Site
     Settings — this default only applies until that field is set. */
  --site-font-family: 'Montserrat';
}

body {
  font-family: var(--site-font-family), sans-serif;
  color: #333;
  overflow-x: hidden;
}

/* ============================================
   BREADCRUMB
   ============================================
   Sao Viet theme addition (not part of /reference's own styles.css):
   plain-background breadcrumb styling for pages with no dark banner
   image behind it (single-job.php, single-training.php, single.php).
   Banner pages use the separate .breadcrumb-custom variant (white
   text over a dark image, styled in each page's own CSS file) —
   :not(.breadcrumb-custom) keeps this rule from touching those.
   Without this, the links fall back to the browser's default blue/
   underline instead of the site's own palette.
*/

.breadcrumb:not(.breadcrumb-custom) .breadcrumb-item a {
  color: var(--primary-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb:not(.breadcrumb-custom) .breadcrumb-item a:hover {
  color: var(--dark-blue);
  text-decoration: underline;
}

.breadcrumb:not(.breadcrumb-custom) .breadcrumb-item.active {
  color: #6c757d;
}

/* ============================================
   NAVBAR
   ============================================ */

.nav-link-custom {
  font-size: 0.75rem;
  padding: 1rem 0.6rem !important;
  color: #333 !important;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--primary-green) !important;
}

.social-icon-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.social-icon-nav:nth-child(1) {
  background: #1877f2;
}

.social-icon-nav:nth-child(2) {
  background: var(--primary-green);
}

.social-icon-nav:nth-child(3) {
  background: var(--primary-green);
}

.social-icon-nav:hover {
  transform: scale(1.1);
  color: #fff;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.92) 0%, rgba(26, 140, 62, 0.85) 100%);
  z-index: 1;
  clip-path: polygon(0 0, 85% 0, 70% 100%, 0 100%);
}

.z-2 {
  z-index: 2;
}

.hero-title {
  font-size: 2.8rem;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  opacity: 0.95;
  font-weight: 400;
}

.hero-cta-btn {
  border: 2px solid #fff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.hero-cta-btn:hover {
  background: #fff;
  color: var(--primary-green) !important;
}

.hero-features {
  max-width: 480px;
}

.hero-feature-icon {
  font-size: 1.8rem;
}

.hero-feature-icon i {
  opacity: 0.9;
}

.min-vh-50 {
  min-height: 50vh;
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-title {
  color: var(--dark-blue);
  font-size: 1.8rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-green);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  position: relative;
}

/* ============================================
   VISION & MISSION
   ============================================ */

.section-vision {
  background: linear-gradient(180deg, #ffffff 0%, #f8fdf9 100%);
}

.vision-card {
  border-left: 4px solid var(--primary-green) !important;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.vision-card:hover {
  transform: translateY(-3px);
}

.mission-card {
  border-left: 4px solid var(--primary-blue) !important;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.mission-card:hover {
  transform: translateY(-3px);
}

.mission-list li span {
  font-size: 0.92rem;
  color: #555;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news-card {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.news-card-img {
  height: 160px;
  object-fit: cover;
}

.news-card-title {
  font-size: 0.82rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
}

/* ============================================
   JOB CARDS
   ============================================ */

.job-card {
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 3px solid var(--primary-green) !important;
}

.job-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.job-card h6 {
  font-size: 0.9rem;
}

.btn-view-all {
  font-size: 0.85rem;
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-view-all:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
}

.about-img-wrapper {
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-img-wrapper:hover .about-img {
  transform: scale(1.08);
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-section {
  background: linear-gradient(180deg, #f0f4f8 0%, #e8ecf0 100%);
}

.footer-title {
  color: var(--dark-blue);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-green);
  border-radius: 2px;
}

.footer-contact li {
  font-size: 0.85rem;
  color: #555;
}

.footer-social-btn {
  font-size: 0.85rem;
  max-width: 200px;
  transition: all 0.3s ease;
}

.footer-social-btn:hover {
  transform: translateX(5px);
}

.map-wrapper {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
}

/* ============================================
   CTA SECTION
   ============================================
   Sao Viet theme addition (not part of /reference's own styles.css):
   .cta-section/.cta-btn originally lived only in about.css. Moved
   here because template-parts/global/cta-section.php is a SHARED
   component reused on gioi-thieu, doi-tac, and lien-he — and unlike
   /reference (which loads every CSS file on every page), this theme
   enqueues page CSS conditionally, so doi-tac/lien-he never loaded
   about.css and rendered the CTA band unstyled. Living in styles.css
   (loaded on every page) fixes that for any page that uses the
   shared template-part, present or future. */

.cta-section {
  background: linear-gradient(135deg, #0a2540 0%, #1a8c3e 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.cta-btn {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 991.98px) {
  .hero-bg-overlay {
    width: 100%;
    clip-path: none;
  }
}

@media (max-width: 991.98px) {
  .hero-features {
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 991.98px) {
  .nav-social-icons {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 400px;
  }
}

@media (max-width: 767.98px) {
  .about-img-wrapper {
    height: 150px;
  }
}

@media (max-width: 767.98px) {
  .stat-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .news-card-img {
    height: 130px;
  }
}

/* Moved from about.css along with .cta-section/.cta-btn above — see that section's note. */
@media (max-width: 767.98px) {
  .cta-btn {
    display: block;
    margin-bottom: 10px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 575.98px) {
  .hero-features small {
    font-size: 0.7rem;
  }
}

@media (max-width: 575.98px) {
  .hero-feature-icon {
    font-size: 1.3rem;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #157a34;
}

